diff options
Diffstat (limited to 'support/make/target-config.mk')
-rw-r--r-- | support/make/target-config.mk | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/support/make/target-config.mk b/support/make/target-config.mk index fcedd3e..48a33de 100644 --- a/support/make/target-config.mk +++ b/support/make/target-config.mk @@ -13,12 +13,13 @@ TARGET_FLAGS += -DBOARD_$(BOARD) -DMCU_$(MCU) \ # STM32 series-specific configuration values. -# NB: these only work for STM32F1 performance line chips, but those -# are the only ones we support at this time. If you add support for -# STM32F1 connectivity line MCUs or other STM32 families, this section -# will need to change. -LD_SERIES_PATH := $(LDDIR)/stm32/series/f1/performance -LIBMAPLE_MODULE_SERIES := $(LIBMAPLE_PATH)/stm32f1 +LD_SERIES_PATH := $(LDDIR)/stm32/series/$(MCU_SERIES) +ifeq ($(MCU_SERIES), stm32f1) + # Hack: force F1 to performance line; this will need to change if + # you add connectivity etc. line support. + LD_SERIES_PATH := $(LD_SERIES_PATH)/performance +endif +LIBMAPLE_MODULE_SERIES := $(LIBMAPLE_PATH)/$(MCU_SERIES) # Memory target-specific configuration values |