38 lines
872 B
BlitzBasic
38 lines
872 B
BlitzBasic
SUMMARY = "Boot script for u-boot"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
COMPATIBLE_MACHINE = "pinecube"
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
DEPENDS = "u-boot-mkimage-native"
|
|
|
|
inherit deploy
|
|
|
|
SRC_URI += "file://boot.cmd"
|
|
FILES:${PN} += "/boot"
|
|
|
|
do_mkimage () {
|
|
uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
|
-n "${DISTRO}-${MACHINE} u-boot script" \
|
|
-d ${THISDIR}/${PN}/boot.cmd ${B}/boot.scr
|
|
}
|
|
|
|
addtask mkimage after do_compile before do_install
|
|
|
|
do_compile[noexec] = "1"
|
|
|
|
do_install () {
|
|
install -D -m 644 ${B}/boot.scr ${D}boot/boot.scr
|
|
}
|
|
|
|
do_deploy () {
|
|
install -D -m 644 ${D}boot/boot.scr ${DEPLOYDIR}/boot.scr-${MACHINE}-${PV}-${PR}
|
|
|
|
cd ${DEPLOYDIR}
|
|
rm -f boot.scr
|
|
ln -sf boot.scr-${MACHINE}-${PV}-${PR} boot.scr
|
|
}
|
|
|
|
addtask deploy after do_install before do_build
|