meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-script-gateworks-imx.bb
Pushpal Sidhu 01b0d345e6 u-boot: gateworks: fix bootscript location
A bug persisted when building this as the location didn't exist. Fix it.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-27 17:47:41 -02:00

31 lines
817 B
BlitzBasic

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
DEPENDS = "u-boot-mkimage-native"
SRC_URI = "file://6x_bootscript-yocto.txt"
DESTDIR = "/boot"
S = "${WORKDIR}"
do_compile() {
bootscript="${THISDIR}/u-boot-script-gateworks-imx/6x_bootscript-yocto.txt"
echo "bootscript == $bootscript"
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "boot script" -d $bootscript \
6x_bootscript
}
do_install() {
install -d ${D}/${DESTDIR}
install ${S}/6x_bootscript ${D}${DESTDIR}/6x_bootscript-${MACHINE}-${PV}-${PR}
cd ${D}${DESTDIR}
ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE}
}
FILES_${PN} = "${DESTDIR}/*"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(ventana)"