diff options
author | Jeremy Bettis <jbettis@google.com> | 2023-04-03 18:45:56 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-04 17:21:52 +0000 |
commit | 47161f4ecaf63221b2513f088ae0bc9cfdfecaad (patch) | |
tree | 3d1fbf5b8affd8a9ce84a887205c2d99eb7b0fa9 /Makefile.rules | |
parent | 096df9199e102fac34ab23e5cd16ce53f89b2114 (diff) | |
download | chrome-ec-47161f4ecaf63221b2513f088ae0bc9cfdfecaad.tar.gz |
ec: Prevent #undef or #define of zephyr Kconfigs
Block all #undef or #define of Kconfigs in include/config.h. This will
allow removing the #include <autoconf.h> from
zephyr/shim/include/config_chip.h, which will in turn allow removing
all of the #line directives we've sprinkled throughout the headers.
BRANCH=None
BUG=b:272518464
TEST=make buildall_only -j$(nproc), fails before crrev/c/4396143
TEST=CQ, fails before crrev/c/4396143, passes after
Change-Id: I09649cf778e339fb45dc05c6ebdffc9aaa5778d2
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4396142
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index aa6822b747..5f1783e758 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -203,8 +203,12 @@ build_boards: | $(FAILED_BOARDS_DIR) @rm -f $(FAILED_BOARDS_DIR)/* $(MAKE) try_build_boards +.PHONY: check_undef +check_undef: + $(call quiet,check_undef) + .PHONY: buildall_only -buildall_only: build_boards build_cros_ec_commands +buildall_only: build_boards build_cros_ec_commands check_undef $(MAKE) BOARD=host utils $(MAKE) build_cts $(MAKE) buildfuzztests @@ -269,10 +273,14 @@ cmd_check_allowed = ./util/kconfig_check.py -c ${config} \ -a util/config_allowed.txt -p PLATFORM_EC_ -s "" \ -I "${ZEPHYR_BASE}" \ $(foreach opt,$(conflicting_options),-i $(opt)) check +cmd_check_undef = ./util/kconfig_check.py -s "" -I "${ZEPHYR_BASE}" \ + check_undef else cmd_check_allowed = true +cmd_check_undef = true endif quiet_cmd_check_allowed = CHECK_ALLOWED ${config} +quiet_cmd_check_undef = CHECK_UNDEF # Print any important notices at the end of the build. .PHONY: notice |