summaryrefslogtreecommitdiffstats
path: root/scripts/check-config.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-31 20:11:33 +0900
committerTom Rini <trini@konsulko.com>2017-02-08 15:56:30 -0500
commit1bdd942b6da8a9e8686defe431380754cccb9b5a (patch)
treeed3874c5c0ae7f7709f6bc1879d15f34003d92e3 /scripts/check-config.sh
parentf0a3f3492ac197ea89be58a29aed7500aad5542d (diff)
downloadu-boot-1bdd942b6da8a9e8686defe431380754cccb9b5a.tar.gz
u-boot-1bdd942b6da8a9e8686defe431380754cccb9b5a.tar.xz
u-boot-1bdd942b6da8a9e8686defe431380754cccb9b5a.zip
kbuild: beautify the log of config whitelist check
Use the kbuild style log. Prior to this commit: ./scripts/check-config.sh u-boot.cfg \ ./scripts/config_whitelist.txt . 1>&2 With this commit: CFGCHK u-boot.cfg Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts/check-config.sh')
-rwxr-xr-xscripts/check-config.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/check-config.sh b/scripts/check-config.sh
index 6618dfb679..97e52dce83 100755
--- a/scripts/check-config.sh
+++ b/scripts/check-config.sh
@@ -37,12 +37,12 @@ cat `find ${srctree} -name "Kconfig*"` |sed -n \
-e 's/^menuconfig \([A-Za-z0-9_]*\).*$/CONFIG_\1/p' |sort |uniq > ${ok}
comm -23 ${suspects} ${ok} >${new_adhoc}
if [ -s ${new_adhoc} ]; then
- echo "Error: You must add new CONFIG options using Kconfig"
- echo "The following new ad-hoc CONFIG options were detected:"
- cat ${new_adhoc}
- echo
- echo "Please add these via Kconfig instead. Find a suitable Kconfig"
- echo "file and add a 'config' or 'menuconfig' option."
+ echo >&2 "Error: You must add new CONFIG options using Kconfig"
+ echo >&2 "The following new ad-hoc CONFIG options were detected:"
+ cat >&2 ${new_adhoc}
+ echo >&2
+ echo >&2 "Please add these via Kconfig instead. Find a suitable Kconfig"
+ echo >&2 "file and add a 'config' or 'menuconfig' option."
# Don't delete the temporary files in case they are useful
exit 1
else