Makefile.include: initial features check before dependency resolution#15013
Makefile.include: initial features check before dependency resolution#15013aabadie merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
Thank you for the fix! |
|
@benpicco I ended up running the script, please wait before merging. |
|
How about this instead? diff --git a/makefiles/dependency_resolution.inc.mk b/makefiles/dependency_resolution.inc.mk
index 827a1e17a6..52de81bf9e 100644
--- a/makefiles/dependency_resolution.inc.mk
+++ b/makefiles/dependency_resolution.inc.mk
@@ -5,12 +5,12 @@
# Back up current state to detect changes
OLD_STATE := $(USEMODULE) $(USEPKG) $(FEATURES_USED)
-# pull in dependencies of the currently used modules and pkgs
-include $(RIOTBASE)/Makefile.dep
-
# check if required features are provided and update $(FEATURES_USED)
include $(RIOTMAKE)/features_check.inc.mk
+# pull in dependencies of the currently used modules and pkgs
+include $(RIOTBASE)/Makefile.dep
+
# translate used features into used module, where needed
include $(RIOTMAKE)/features_modules.inc.mk |
If this is done then: Would need to be changed to include |
OK, that would be a pitty. However, I think that the additional feature check should be moved into the |
Also that cange makes And I agree with the Kconfig part, I forgot about that, think I'move the |
Yes. |
8a7a381 to
90a4d77
Compare
Huh? why is it done in |
The build system needs to know which |
Ah right, sorry for the noise. |
|
Anyone willing to hit the green button? :) |
|
Me ? |
|
Thanks! |
Contribution description
In #13349 the initial inclusion of features was inadvertently removed, it was kept in
info-boards-supportedbut removed inMakefile.include. This PR re-introduces it.Testing procedure
Found in #15011, with this PR you can check against
FEATURES_USED:Rebase on #15011 and apply this patch:
For good measure
./dist/tools/buildsystem_sanity_check/save_all_dependencies_resolution_variables.shcould be run, but IMOthe fix is necessary and obvious.
Issues/PRs references
Introduced in #13349
Found in #15011