From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 1 Oct 2014 08:29:25 -0700 Subject: [U-Boot] [PATCH v2] kconfig: show an error message when defconfig is not found In-Reply-To: <1409836575-6476-1-git-send-email-yamada.m@jp.panasonic.com> References: <1409836575-6476-1-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <542C1DD5.9090505@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/04/2014 06:16 AM, Masahiro Yamada wrote: > 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 > --- > > Changes in v2: > - Echo the error message to stderr > > scripts/multiconfig.sh | 7 +++++++ > 1 file changed, 7 insertions(+) > > 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\"!" s/confis/configs/ York