Skip to content

Commit 61df974

Browse files
committed
[nrf fromlist] compliance: Allow phony Kconfigs BAR, FLAG_A and FLAG_B for examples
-This avoids compliance-errors when using the term CONFIG_BAR e.g. in API documentation. -This avoids compliance-errors when using the terms CONFIG_FLAG_A and CONFIG_FLAG_B in API documentation. NOTE: CONFIG_BAR, CONFIG_FLAG_A, and CONFIG_FLAG_B are not real configurations Upstream PR #: 87026 Signed-off-by: Frank Audun Kvamtrø <[email protected]> (cherry picked from commit 7847bf210af5de3b09c0eb40f4cdf30c284ce79a7)
1 parent 9ec6585 commit 61df974

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/ci/check_compliance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ def check_no_undef_outside_kconfig(self, kconf):
946946
# toolchain Kconfig which is sourced based on
947947
# Zephyr toolchain variant and therefore not
948948
# visible to compliance.
949+
"BAR",
949950
"BINDESC_", # Used in documentation as a prefix
950951
"BOARD_", # Used as regex in scripts/utils/board_v1_to_v2.py
951952
"BOARD_MPS2_AN521_CPUTEST", # Used for board and SoC extension feature tests
@@ -994,6 +995,8 @@ def check_no_undef_outside_kconfig(self, kconf):
994995
"EXTRA_FIRMWARE_DIR", # Linux, in boards/xtensa/intel_adsp_cavs25/doc
995996
"FFT", # Used as an example in cmake/extensions.cmake
996997
"FLAG", # Used as an example
998+
"FLAG_A", # Used as an example
999+
"FLAG_B", # Used as an example
9971000
"FOO",
9981001
"FOO_LOG_LEVEL",
9991002
"FOO_SETTING_1",

0 commit comments

Comments
 (0)