[meta-freescale] [meta-fsl-arm-extra][PATCH] u-boot-script-boundary: handle the case where MACHINE=imx6sabrelite
Otavio Salvador
otavio at ossystems.com.br
Thu Jul 18 06:01:47 PDT 2013
On Thu, Jul 18, 2013 at 9:58 AM, Eric Bénard <eric at eukrea.com> wrote:
> Le Thu, 18 Jul 2013 09:57:22 -0300,
> Otavio Salvador <otavio at ossystems.com.br> a écrit :
>
>> On Thu, Jul 18, 2013 at 9:39 AM, Eric Bénard <eric at eukrea.com> wrote:
>> > else the build fails with :
>> > uboot-mkimage: Can't open board/boundary/imx6qsabrelite/6x_bootscript: No such file or directory
>> >
>> > Signed-off-by: Eric Bénard <eric at eukrea.com>
>> > Cc: Eric Nelson <eric.nelson at boundarydevices.com>
>>
>> Good catch!
>>
>> > ---
>> > recipes-bsp/u-boot/u-boot-script-boundary_git.bb | 8 ++++++--
>> > 1 file changed, 6 insertions(+), 2 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 4d5e7db..2088a4f 100644
>> > --- a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
>> > +++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
>> > @@ -14,12 +14,16 @@ S = "${WORKDIR}/git"
>> > inherit deploy
>> >
>> > do_mkimage () {
>> > + # workaround the case where MACHINE=imx6qsabrelite
>> > + if [ ! -d board/boundary/${MACHINE} ]; then
>> > + mkdir board/boundary/${MACHINE}
>> > + fi
>>
>> I just didn't understand why you create this directory as below you
>> use nitrogen one?
>>
> because I use the nitrogen one for the .txt but the ${MACHINE} one for
> the results in order not to make many changes to the .bb as I assume
> imx6sabrelite is due to disapear in a short future.
Makes sense :-)
>> > uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
>> > - -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
>> > + -n "boot script" -d board/boundary/nitrogen6x/6x_bootscript.txt \
>> > board/boundary/${MACHINE}/6x_bootscript
>> >
>> > uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
>> > - -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
>> > + -n "upgrade script" -d board/boundary/nitrogen6x/6x_upgrade.txt \
>> > board/boundary/${MACHINE}/6x_upgrade
>> > }
>>
>> Seem fine.
>>
>> --
>> Otavio Salvador O.S. Systems
>> http://www.ossystems.com.br http://projetos.ossystems.com.br
>> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
>
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the meta-freescale
mailing list