1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.dep: include new DEFAULT_MODULEs

Currently default modules resolution is only performed in
Makefile.include. This avoids DEFAULT_MODULES being declared
in Makefile.dep since they never become USEMODULE.

Duplicate at the end of the dependency resolutiion after recursive
cach of transitive depdencies since at this stage DEFAULT_MODULES
can't and SHOULD NOT trigger depedency resolutions.
This commit is contained in:
Francisco Molina 2020-01-16 13:21:24 +01:00
parent ab9551840e
commit 370998cc3e
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -1056,3 +1056,9 @@ USEPKG := $(sort $(USEPKG))
ifneq ($(OLD_USEMODULE) $(OLD_USEPKG),$(USEMODULE) $(USEPKG))
include $(RIOTBASE)/Makefile.dep
endif
# Add auto_init_% DEFAULT_MODULES. This is done after the recursive cach since
# none of these modules can trigger dependency resolution.
ifneq (,$(filter auto_init,$(USEMODULE)))
USEMODULE += $(filter auto_init_%,$(filter-out $(DISABLE_MODULE),$(DEFAULT_MODULE)))
endif