mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #15109 from aabadie/pr/make/features_bootloader_stm32_cleanup
cpu/stm32: cleanup bootloader_stm32 build system management
This commit is contained in:
commit
2d80bbf7b9
@ -1,5 +1,9 @@
|
||||
MODULE = cpu
|
||||
|
||||
DIRS = $(RIOTCPU)/cortexm_common periph stmclk vectors bootloader
|
||||
DIRS = $(RIOTCPU)/cortexm_common periph stmclk vectors
|
||||
|
||||
ifneq (,$(filter bootloader_stm32,$(USEMODULE)))
|
||||
DIRS += bootloader
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -8,10 +8,6 @@ ifneq (,$(filter periph_usbdev,$(FEATURES_USED)))
|
||||
USEMODULE += xtimer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter bootloader_stm32,$(FEATURES_USED)))
|
||||
USEMODULE += bootloader_stm32
|
||||
endif
|
||||
|
||||
ifneq (,$(filter periph_uart_nonblocking,$(USEMODULE)))
|
||||
USEMODULE += tsrb
|
||||
endif
|
||||
|
@ -21,6 +21,9 @@ endif
|
||||
# select cpu_check_address pseudomodule if the corresponding feature is used
|
||||
USEMODULE += $(filter cpu_check_address, $(FEATURES_USED))
|
||||
|
||||
# select bootloader_stm32 module if the feature is used
|
||||
USEMODULE += $(filter bootloader_stm32, $(FEATURES_USED))
|
||||
|
||||
# include puf_sram if used
|
||||
USEMODULE += $(filter puf_sram, $(FEATURES_USED))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user