From ae847ec92f7b8228dbda863144366035a4617b46 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 1c658cfa350b..6eabddab5b8e 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 + /** @} */