Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (32 sloc) 802 Bytes
DESCRIPTION = "Various uboot scripts"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r11"
DEPENDS = "u-boot-mkimage-native"
SRC_URI = "file://*.cmd"
do_configure() {
cp ${WORKDIR}/*.cmd ${S}
for i in *.cmd ; do
mv $i uboot-$i
done
}
do_compile() {
for i in *.cmd ; do
uboot-mkimage -A ${TARGET_ARCH} -O linux -T script -C none -a 0 -e 0 -n "Angstrom $i" -d $i $i.scr
done
}
do_install() {
install -d ${D}/boot/u-boot-scripts
for i in *.cmd *.scr ; do
install -m 0644 $i ${D}/boot/u-boot-scripts
done
}
FILES_${PN} += "/boot"
addtask deploy before do_package after do_install
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}
for i in *.scr ; do
cp $i ${DEPLOY_DIR_IMAGE}
done
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
You can’t perform that action at this time.