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

Makefile.dep: Fix dependency resolution

The addition of the `ecc` dependency was done after the recursion is done to
catch transient dependencies. This could potentially miss transient deps.
This commit moves the affected code before the recursion is triggered.
This commit is contained in:
Marian Buschsieweke 2020-02-11 19:25:55 +01:00
parent de89f3a459
commit 9e38f5caa3
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -1043,13 +1043,13 @@ ifneq (,$(filter periph_%, $(USEMODULE)))
USEMODULE += periph_common
endif
ifneq (,$(filter ecc_%,$(USEMODULE)))
USEMODULE += ecc
endif
# recursively catch transitive dependencies
USEMODULE := $(sort $(USEMODULE))
USEPKG := $(sort $(USEPKG))
ifneq ($(OLD_USEMODULE) $(OLD_USEPKG),$(USEMODULE) $(USEPKG))
include $(RIOTBASE)/Makefile.dep
endif
ifneq (,$(filter ecc_%,$(USEMODULE)))
USEMODULE += ecc
endif