1
0
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:
Alexandre Abadie 2020-09-29 10:45:27 +02:00 committed by GitHub
commit 2d80bbf7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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))