summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/check_allowed.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/util/check_allowed.sh b/util/check_allowed.sh
index 5ed6f36df7..5120b69ce2 100755
--- a/util/check_allowed.sh
+++ b/util/check_allowed.sh
@@ -54,9 +54,8 @@ sed -n 's/^\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' "${config}" | sort | uniq \
comm -23 "${new_configs}" "${allow}" > "${suspects}"
# Find all the Kconfig options so far defined
-find "${srctree}" -name "Kconfig*" -exec cat {} \; | sed -n \
- -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
- -e 's/^\s*menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+find "${srctree}" -name "Kconfig*" -exec cat {} \; | sed -n -e \
+ 's/^\s*\(config\|menuconfig\) PLATFORM_EC_\([A-Za-z0-9_]*\)$/CONFIG_\2/p' \
| sort | uniq > "${ok}"
# Complain about any new ad-hoc CONFIGs