From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Christoph Settgast <christoph.settgast@methodpark.de>,
meta-freescale@yoctoproject.org
Subject: Re: [meta-fsl-arm-extra][PATCH] u-boot-script-boundary: Use bb vars for overrides
Date: Fri, 11 Jul 2014 06:41:34 -0700 [thread overview]
Message-ID: <53BFE98E.6090804@boundarydevices.com> (raw)
In-Reply-To: <1405081756-24440-1-git-send-email-christoph.settgast@methodpark.de>
Thanks Christoph,
On 07/11/2014 05:29 AM, Christoph Settgast wrote:
> When using bitbake variables, overrides in bbappends are possible.
> The embedded shell variables did not allow this.
>
> Signed-off-by: Christoph Settgast <christoph.settgast@methodpark.de>
> ---
> recipes-bsp/u-boot/u-boot-script-boundary_git.bb | 32 ++++++++--------------
> 1 file changed, 11 insertions(+), 21 deletions(-)
>
> diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
> index b39d963..df4b76f 100644
> --- a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
> +++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
> @@ -12,35 +12,25 @@ S = "${WORKDIR}/git"
>
> inherit deploy
>
> -do_mkimage () {
> +BOOTSCRIPT = "${S}/board/boundary/${MACHINE}/6x_bootscript-yocto.txt"
> +BOOTSCRIPT_nitrogen6x-lite = "${S}/board/boundary/nit6xlite/6x_bootscript-yocto.txt"
>
> - boarddir=nitrogen6x;
> - if test "${MACHINE}" = "nitrogen6x-lite"; then
> - boarddir=nit6xlite;
> - fi
> +UPGRADESCRIPT = "${S}/board/boundary/${MACHINE}/6x_upgrade.txt"
> +UPGRADESCRIPT_nitrogen6x-lite = "${S}/board/boundary/nitrogen6x/6x_upgrade.txt"
>
> +do_mkimage () {
> # allow deploy to use the ${MACHINE} name to simplify things
> if [ ! -d board/boundary/${MACHINE} ]; then
> mkdir board/boundary/${MACHINE}
> fi
> - bootscript=board/boundary/${boarddir}/6x_bootscript-yocto.txt;
> - if ! [ -f $bootscript ]; then
> - bootscript=board/boundary/${boarddir}/6x_bootscript-yocto.txt;
> - fi
> - echo "bootscript == $bootscript"
> -
> - upgradescript=board/boundary/${boarddir}/6x_upgrade.txt;
> - if ! [ -f $upgradescript ]; then
> - upgradescript=board/boundary/nitrogen6x/6x_upgrade.txt;
> - fi
>
> - uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
> - -n "boot script" -d $bootscript \
> - board/boundary/${MACHINE}/6x_bootscript
> + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
> + -n "boot script" -d ${BOOTSCRIPT} \
> + board/boundary/${MACHINE}/6x_bootscript
>
> - uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
> - -n "upgrade script" -d $upgradescript \
> - board/boundary/${MACHINE}/6x_upgrade
> + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
> + -n "upgrade script" -d ${UPGRADESCRIPT} \
> + board/boundary/${MACHINE}/6x_upgrade
> }
>
> addtask mkimage after do_compile before do_install
>
Reviewed-by: Eric Nelson <eric.nelson@boundarydevices.com>
prev parent reply other threads:[~2014-07-11 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 12:29 [meta-fsl-arm-extra][PATCH] u-boot-script-boundary: Use bb vars for overrides Christoph Settgast
2014-07-11 13:41 ` Eric Nelson [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=53BFE98E.6090804@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=christoph.settgast@methodpark.de \
--cc=meta-freescale@yoctoproject.org \
/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.