diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-07-14 11:26:34 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-14 19:22:56 +0000 |
commit | 1225fa58f96396781e6895bce2dc3e80d86d0f1c (patch) | |
tree | b3eaf161328854b282619d7255a474bca3e34f15 /util/kconfig_check.py | |
parent | 4e38e0394f6c60120198a3bca08585562a3697cf (diff) | |
download | chrome-ec-1225fa58f96396781e6895bce2dc3e80d86d0f1c.tar.gz |
kconfig_check: Exclude board, project, test files
Instead of ignoring BOARD_ and VARIANT_ configs from the list of CONFIGs
allowed to use in legacy EC, just don't parse the Kconfig files from
board, test, project, or chip dirs.
That gives better parity between the kconfiglib based logic and the grep
based logic. This also prevents simple refactors like crrev/c/3745106
from breaking the unit test.
BRANCH=None
BUG=b:238773780
TEST=util/run_tests.sh && make -j40 buildall
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Idf1d6a2ede86c587c092df1cf060200d178a881b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763781
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'util/kconfig_check.py')
-rwxr-xr-x | util/kconfig_check.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/kconfig_check.py b/util/kconfig_check.py index db2bc09a5b..74dfcf183d 100755 --- a/util/kconfig_check.py +++ b/util/kconfig_check.py @@ -254,6 +254,14 @@ class KconfigCheck: ] if "Kconfig" in dirs: dirs.remove("Kconfig") + if "boards" in dirs: + dirs.remove("boards") + if "projects" in dirs: + dirs.remove("projects") + if "test" in dirs: + dirs.remove("test") + if "chip" in dirs: + dirs.remove("chip") return kconfig_files @classmethod |