summaryrefslogtreecommitdiff
path: root/scripts/multiconfig.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-09-04 22:16:15 +0900
committerTom Rini <trini@ti.com>2014-09-16 12:23:58 -0400
commit8caaec62602453cf2a24ccc0799c59bf4e3d74f9 (patch)
treeca23882eef212a84dfb3446bf8ffd57368dc2f97 /scripts/multiconfig.sh
parentec3b48201d0338efa7f3ce4173ffe69e573e2511 (diff)
kconfig: show an error message when defconfig is not found
When a non-existing defconfig is specified, display an easy-to-understand message (fake the error message on Linux Kernel): $ make foo_defconfig *** *** Can't find default configuration "confis/foo_defconfig"! *** Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'scripts/multiconfig.sh')
-rw-r--r--scripts/multiconfig.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh
index a5790428c8..49fcfad3c1 100644
--- a/scripts/multiconfig.sh
+++ b/scripts/multiconfig.sh
@@ -118,6 +118,13 @@ do_board_defconfig () {
defconfig_path=$srctree/configs/$1
tmp_defconfig_path=configs/.tmp_defconfig
+ if [ ! -r $defconfig_path ]; then
+ echo >&2 "***"
+ echo >&2 "*** Can't find default configuration \"confis/$1\"!"
+ echo >&2 "***"
+ exit 1
+ fi
+
mkdir -p arch configs
# defconfig for Normal:
# pick lines without prefixes and lines starting '+' prefix