From b128df7b6ba89e3a2a9ffa25c52d4e679c48e70a Mon Sep 17 00:00:00 2001
From: elvis <elvisilde@gmail.com>
Date: Sun, 11 Aug 2019 21:51:46 +0200
Subject: [PATCH] [Alderaan] Add possibility to define other defines from
 outside the Makefile.inc

---
 miosix/config/Makefile.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/miosix/config/Makefile.inc b/miosix/config/Makefile.inc
index ea3f665b..8658b205 100644
--- a/miosix/config/Makefile.inc
+++ b/miosix/config/Makefile.inc
@@ -1139,8 +1139,8 @@ else ifeq ($(ARCH),cortexM3_stm32)
         $(BOARD_INC)/interfaces-impl/bsp.cpp        
 
         ## Add a #define to allow querying board name
-        CFLAGS_BASE   += -D_BOARD_STM32F103CB_SKYWARD_ALDERAAN -DSTM32F10X_MD
-        CXXFLAGS_BASE += -D_BOARD_STM32F103CB_SKYWARD_ALDERAAN -DSTM32F10X_MD
+        CFLAGS_BASE   += -D_BOARD_STM32F103CB_SKYWARD_ALDERAAN -DSTM32F10X_MD $(OPT_ALDERAAN_FLAGS)
+        CXXFLAGS_BASE += -D_BOARD_STM32F103CB_SKYWARD_ALDERAAN -DSTM32F10X_MD $(OPT_ALDERAAN_FLAGS)
        
         ## Select programmer command line
         ## This is the program that is invoked when the user types
-- 
GitLab