From: Masahiro Yamada Date: Thu, 4 Sep 2014 13:16:15 +0000 (+0900) Subject: kconfig: show an error message when defconfig is not found X-Git-Tag: accepted/tizen/common/20141006.142441~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8caaec62602453cf2a24ccc0799c59bf4e3d74f9;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Stephen Warren --- diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh index a579042..49fcfad 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