summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-05-27 15:49:15 -0600
committerCommit Bot <commit-bot@chromium.org>2022-01-28 23:56:08 +0000
commit5b4c6473a341ebbd88463c908b39bb2820e5c43b (patch)
treee6e5c87b9164cbbec214d389fa8752977d0c89d0 /Makefile.rules
parentd680d3972ab9c3060165ef8a39445ff2e132efd1 (diff)
downloadchrome-ec-5b4c6473a341ebbd88463c908b39bb2820e5c43b.tar.gz
Makefile: Switch to the Python script for CONFIG checking
Now that the Python script seems to do what we need, switch over to use that for checking for allowed ad-hoc CONFIGs. Sadly we need a work-around for the very old Python 3 version used in the chroot. The new script is better at finding Kconfig options, so this allows some reductions in the config_allowed.txt file. Delete the now-unused shell scripts. BUG=b:181323955 BRANCH=none TEST=python3 util/test_kconfig_check.py Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I2dafc9dfe9d9020638f4e49b5c5ee0fc0b10000b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2923233 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9808fa712d..6e15b67860 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -230,7 +230,9 @@ print-boards:
$(sort $(boards)))
ifeq ($(ALLOW_CONFIG),)
-cmd_check_allowed = ./util/check_allowed.sh ${config} util/config_allowed.txt .
+cmd_check_allowed = ./util/kconfig_check.py -c ${config} \
+ -a util/config_allowed.txt -p PLATFORM_EC_ -s zephyr/ \
+ -I $(abspath ../../../src/third_party/zephyr/main) check
else
cmd_check_allowed = true
endif