From 89790a3338d258fb68f07d19b6fde7856386685b Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 11 Apr 2024 13:36:02 +0200 Subject: [PATCH] build system: deprecate RIOT_MCU predefined macro 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`. --- dist/tools/genconfigheader/riotbuild-prefix.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dist/tools/genconfigheader/riotbuild-prefix.h b/dist/tools/genconfigheader/riotbuild-prefix.h index dc00e87ad280..57dbdc79c7b2 100644 --- a/dist/tools/genconfigheader/riotbuild-prefix.h +++ b/dist/tools/genconfigheader/riotbuild-prefix.h @@ -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__) @@ -82,5 +94,7 @@ # define MACRO_DEPRECATED #endif +#define RIOT_MCU MACRO_DEPRECATED RIOT_CPU + #endif /* DOXYGEN */ /** @} */