1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

dist/tools/genconfig: check the APPLICATION symbols only when testing

This changes the Kconfig check to only perform it when testing Kconfig
dependency modlling for now (TEST_KCONFIG=1).
This commit is contained in:
Leandro Lanzieri 2020-11-05 13:33:13 +01:00
parent 5e0ce392d1
commit 71a3aa081e
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 9 additions and 1 deletions

View File

@ -241,7 +241,13 @@ def check_configs(kconf):
- A configuration parameter could not be set to value defined by the
user.
"""
app_check = check_application_symbol(kconf)
test_kconfig = os.getenv("TEST_KCONFIG")
if (test_kconfig):
app_check = check_application_symbol(kconf)
else:
app_check = True
sym_check = check_config_symbols(kconf)
choice_check = check_config_choices(kconf)
return app_check and sym_check and choice_check

View File

@ -18,6 +18,8 @@ KCONFIGLIB_DIR="$(readlink -f "$(dirname "$0")/..")"
TESTS_DIR=${KCONFIGLIB_DIR}/tests
GENCONFIG=${KCONFIGLIB_DIR}/genconfig.py
export TEST_KCONFIG=1
KCONFIG_FILE="${TESTS_DIR}/Kconfig.test"
CONFIG_FOO_Y="${TESTS_DIR}/foo_y.config"
CONFIG_BAR_Y="${TESTS_DIR}/bar_y.config"