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

makefiles/dependencies_debug: Add target to print Kconfig features

This adds a target to print all features provided computed from Kconfig
files for a given board.
This commit is contained in:
Leandro Lanzieri 2020-02-18 19:14:28 +01:00
parent 4c74881904
commit 3716457f94
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5

View File

@ -24,7 +24,7 @@
#
# And when comparing two revisions, include the revision in the file names
.PHONY: dependency-debug
.PHONY: dependency-debug dependency-debug-features-provided-kconfig
# Only generate the dependencies when the board is not disabled
# This will allow comparing with the output of `info-boards-supported` more easily
dependency-debug:
@ -35,6 +35,17 @@ else
@echo Skipping $(BOARD) is not whitelisted or blacklisted
endif
# Generate a list of features for an specific board from Kconfig symbols. Make
# sure that SHOULD_RUN_KCONFIG variable is set
dependency-debug-features-provided-kconfig: $(KCONFIG_OUT_CONFIG)
@for i in $(sort $(FEATURES_PROVIDED_KCONFIG)); do echo $$i; done
# Variable to debug modeled features in Kconfig files. As a convention features
# are represented by symbols with the `HAS_` prefix (so
# FEATURES_PROVIDED += periph_gpio would be HAS_PERIPH_GPIO). This filters
# all the generated symbols beginning with that prefix.
FEATURES_PROVIDED_KCONFIG = $(call lowercase,$(patsubst CONFIG_HAS_%,%,$(filter CONFIG_HAS_%, $(.VARIABLES))))
DEPENDENCY_DEBUG_OUTPUT_DIR ?= $(CURDIR)
# Save variables that are used for parsing dependencies