Skip to content

Commit

Permalink
build system: deprecate RIOT_MCU predefined macro
Browse files Browse the repository at this point in the history
This re-adds `RIOT_MCU` as alias for `RIOT_CPU` and marks it as
deprecated. That should make life easier for downstream apps that may
still use `RIOT_CPU`.
  • Loading branch information
maribu committed Apr 11, 2024
1 parent b2116bb commit 89790a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dist/tools/genconfigheader/riotbuild-prefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@
*/
#define MACRO_DEPRECATED /* implementation */

/**
* @brief Name of the MCU the app is compiled for as string literal
*
* @deprecated Use @ref RIOT_CPU instead. This will be removed soonest in
* release 2025.04
*
* This has been renamed to `RIOT_CPU` for consistency. Even though MCU would
* technically be the better name, CPU is used every else in the source code
* and folder structure.
*/
#define RIOT_MCU RIOT_CPU

#else /* DOXYGEN */

#if defined(__GNUC__) || defined(__clang__)
Expand All @@ -82,5 +94,7 @@
# define MACRO_DEPRECATED
#endif

#define RIOT_MCU MACRO_DEPRECATED RIOT_CPU

#endif /* DOXYGEN */
/** @} */

0 comments on commit 89790a3

Please sign in to comment.