From 29e963bd952a0344d5ee58f4f88e03b33b620145 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.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dist/tools/genconfigheader/riotbuild-prefix.h.in b/dist/tools/genconfigheader/riotbuild-prefix.h.in index 71023a5bb281..d3562b06c5c5 100644 --- a/dist/tools/genconfigheader/riotbuild-prefix.h.in +++ b/dist/tools/genconfigheader/riotbuild-prefix.h.in @@ -81,4 +81,16 @@ # define MACRO_DEPRECATED #endif +/** + * @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 MACRO_DEPRECATED RIOT_CPU + /** @} */