summaryrefslogtreecommitdiff
path: root/scripts/check-config.sh
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-02-25 08:20:54 -0500
committerTom Rini <trini@konsulko.com>2021-02-25 08:20:54 -0500
commit53e0fef5a74ac10618da083a01bbf97b4387a3dd (patch)
tree2e3d22c903796c967a4855a27f996b7705603c74 /scripts/check-config.sh
parentcbe607b920bc0827d8fe379ed4f5ae4e2058513e (diff)
parent2f7aa89703738b0c37e34120319bab567a8672bd (diff)
Merge branch '2021-02-24-assorted-fixes'
- squashfs, btrfs fixes - Kconfig CONFIG logic fixes - hikey DM migration - Some portability fixes for the build system - Assorted code cleanups
Diffstat (limited to 'scripts/check-config.sh')
-rwxr-xr-xscripts/check-config.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/check-config.sh b/scripts/check-config.sh
index 583f7d0963c..cc1c9a54d95 100755
--- a/scripts/check-config.sh
+++ b/scripts/check-config.sh
@@ -39,14 +39,14 @@ new_adhoc="${path}.adhoc"
export LC_ALL=C
export LC_COLLATE=C
-cat ${path} |sed -n 's/^#define \(CONFIG_[A-Za-z0-9_]*\).*/\1/p' |sort |uniq \
+cat ${path} |sed -nr 's/^#define (CONFIG_[A-Za-z0-9_]*).*/\1/p' |sort |uniq \
>${configs}
comm -23 ${configs} ${whitelist} > ${suspects}
-cat `find ${srctree} -name "Kconfig*"` |sed -n \
- -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
- -e 's/^\s*menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
+cat `find ${srctree} -name "Kconfig*"` |sed -nr \
+ -e 's/^[[:blank:]]*config *([A-Za-z0-9_]*).*$/CONFIG_\1/p' \
+ -e 's/^[[:blank:]]*menuconfig ([A-Za-z0-9_]*).*$/CONFIG_\1/p' \
|sort |uniq > ${ok}
comm -23 ${suspects} ${ok} >${new_adhoc}
if [ -s ${new_adhoc} ]; then