1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

cpu/efm32/Makefile: DIRS based on USEMODULE

This commit is contained in:
Francisco Molina 2020-02-11 22:19:15 +01:00
parent 67ec9a298d
commit 5715f13323
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -1,6 +1,26 @@
MODULE = cpu
# add a list of subdirectories, that should also be build
DIRS = periph families/$(EFM32_FAMILY) $(RIOTCPU)/cortexm_common
DIRS += periph
DIRS += $(RIOTCPU)/cortexm_common
ifneq (,$(filter cpu_efm32gg,$(USEMODULE)))
DIRS += families/efm32gg
endif
ifneq (,$(filter cpu_efm32lg,$(USEMODULE)))
DIRS += families/efm32lg
endif
ifneq (,$(filter cpu_efm32pg1b,$(USEMODULE)))
DIRS += families/efm32pg1b
endif
ifneq (,$(filter cpu_efm32pg12b,$(USEMODULE)))
DIRS += families/efm32pg12b
endif
ifneq (,$(filter cpu_efr32mg1p,$(USEMODULE)))
DIRS += families/efr32mg1p
endif
ifneq (,$(filter cpu_efr32mg12p,$(USEMODULE)))
DIRS += families/efr32mg12p
endif
include $(RIOTBASE)/Makefile.base