meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-script-gateworks-imx.bb
Jean-François Têtu 04a0a43364 u-boot-script-gateworks-imx: fix bootscript source
Currently, the recipe uses the script found relative to ${THISDIR}.
Using ${THISDIR} prevents other recipes from using FILESEXTRAPATHS to
overwrite the default boot script. This commit fixes this by using
${WORKDIR} instead.

Signed-off-by: Jean-François Têtu <jean-francois.tetu@savoirfairelinux.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit e7b82f00de)
2018-09-07 16:28:38 -03:00

31 lines
789 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="${WORKDIR}/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)"