diff options
Diffstat (limited to 'recipes-bsp/u-boot-otascript/u-boot-otascript.bb')
| -rw-r--r-- | recipes-bsp/u-boot-otascript/u-boot-otascript.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot-otascript/u-boot-otascript.bb b/recipes-bsp/u-boot-otascript/u-boot-otascript.bb new file mode 100644 index 0000000..9f5f0ca --- /dev/null +++ b/recipes-bsp/u-boot-otascript/u-boot-otascript.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | DESCRIPTION = "Boot script for launching OTA-enabled images on raspberrypi" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 4 | |||
| 5 | DEPENDS = "u-boot-mkimage-native" | ||
| 6 | |||
| 7 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 8 | |||
| 9 | SRC_URI = "file://boot.scr \ | ||
| 10 | file://uEnv.txt" | ||
| 11 | |||
| 12 | S = "${WORKDIR}" | ||
| 13 | |||
| 14 | inherit deploy | ||
| 15 | |||
| 16 | do_deploy() { | ||
| 17 | install -d ${DEPLOYDIR}/bcm2835-bootfiles | ||
| 18 | |||
| 19 | mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Ostree boot script" -d ${S}/boot.scr ${DEPLOYDIR}/bcm2835-bootfiles/boot.scr | ||
| 20 | install -m 0755 ${S}/uEnv.txt ${DEPLOYDIR}/bcm2835-bootfiles/uEnv.txt | ||
| 21 | } | ||
| 22 | |||
| 23 | addtask deploy before do_package after do_install | ||
| 24 | do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" | ||
| 25 | |||
| 26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
