u-boot-script-boundary: handle the case where MACHINE=imx6sabrelite

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@eukrea.com>
Cc: Eric Nelson <eric.nelson@boundarydevices.com>
This commit is contained in:
Eric BENARD 2013-07-18 12:39:22 +00:00 committed by Otavio Salvador
parent 2f9a59f54b
commit fd0255b339

View File

@ -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
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
}