All of lore.kernel.org
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] kconfig: show an error message when defconfig is not found
Date: Wed, 1 Oct 2014 08:29:25 -0700	[thread overview]
Message-ID: <542C1DD5.9090505@freescale.com> (raw)
In-Reply-To: <1409836575-6476-1-git-send-email-yamada.m@jp.panasonic.com>

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 <yamada.m@jp.panasonic.com>
> ---
> 
> 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

  parent reply	other threads:[~2014-10-01 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 13:16 [U-Boot] [PATCH v2] kconfig: show an error message when defconfig is not found Masahiro Yamada
2014-09-04 15:01 ` Stephen Warren
2014-09-17  0:46 ` [U-Boot] [U-Boot, " Tom Rini
2014-10-01 15:29 ` York Sun [this message]
2014-10-01 15:40   ` [U-Boot] [PATCH " Masahiro YAMADA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542C1DD5.9090505@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.