All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 7/7] sunxi: kconfig: Add %_felconfig rule to enable FEL build of sunxi platforms.
Date: Mon, 27 Oct 2014 12:08:54 +0100	[thread overview]
Message-ID: <544E27C6.3000209@redhat.com> (raw)
In-Reply-To: <1414182050-6798-7-git-send-email-ijc@hellion.org.uk>

Hi,

On 10/24/2014 10:20 PM, Ian Campbell wrote:
>     $ make BOARD_felconfig
> is more convenient than
>     $ make BOARD_defconfig
>     $ echo CONFIG_SPL_FEL=y >> .config
>     $ echo CONFIG_SPL_FEL=y >> spl/.config
> 
> Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
> ---
> v2: New patch.
> 
>     Is this a good idea?

Yes!

All patches look good to me and are:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

I've pushed this series to u-boot-sunxi/next

Regards,

Hans



> ---
>  scripts/multiconfig.sh | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh
> index 3e3040b..70f3a5d 100644
> --- a/scripts/multiconfig.sh
> +++ b/scripts/multiconfig.sh
> @@ -162,6 +162,16 @@ do_defconfig () {
>  	fi
>  }
>  
> +do_board_felconfig () {
> +    do_board_defconfig ${1%%_felconfig}_defconfig
> +    if ! grep -q CONFIG_ARCH_SUNXI=y .config || ! grep -q CONFIG_SPL=y .config ; then
> +	echo "$progname: Cannot felconfig a non-sunxi or non-SPL platform" >&2
> +	exit 1
> +    fi
> +    sed -i -e 's/\# CONFIG_SPL_FEL is not set/CONFIG_SPL_FEL=y/g' \
> +	.config spl/.config
> +}
> +
>  do_savedefconfig () {
>  	if [ -r "$KCONFIG_CONFIG" ]; then
>  		subimages=$(get_enabled_subimages)
> @@ -323,6 +333,8 @@ target=$1
>  case $target in
>  *_defconfig)
>  	do_board_defconfig $target;;
> +*_felconfig)
> +	do_board_felconfig $target;;
>  *_config)
>  	# backward compatibility
>  	do_board_defconfig ${target%_config}_defconfig;;
> 

      reply	other threads:[~2014-10-27 11:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 20:20 [U-Boot] [PATCH v2 0/7] sunxi: Kconfig consolidation and cleanup Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 1/7] sunxi: kconfig: Add top-level ARCH_SUNXI Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 2/7] sunxi: kconfig: Rename TARGET_SUN[45678]I to MACH_SUN[45678]I Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 3/7] sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig option Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 4/7] sunxi: Use CONFIG_MACH_SUN?I from Kconfig instead of CONFIG_SUN?I Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 5/7] sunxi: Drop FEL variants of defconfigs Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 6/7] sunxi: kconfig: Introduce CONFIG_TARGET_<BOARD> Ian Campbell
2014-10-24 20:20 ` [U-Boot] [PATCH v2 7/7] sunxi: kconfig: Add %_felconfig rule to enable FEL build of sunxi platforms Ian Campbell
2014-10-27 11:08   ` Hans de Goede [this message]

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=544E27C6.3000209@redhat.com \
    --to=hdegoede@redhat.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.