diff options
author | Mykyta Dorokhin <mykyta.dorokhin@globallogic.com> | 2016-09-27 22:29:21 +0300 |
---|---|---|
committer | Brandon Bayer <bbayer@multitech.com> | 2016-10-26 15:36:30 -0500 |
commit | 8d54b0ff470aaa53cae0640f9093eff0b781202c (patch) | |
tree | 2ad34d6c4b592be0d7a1f4cad00d4d4120b6267e /recipes-core/images | |
parent | 6a9a67e34aca63caff77fd2f430cdbeaa1be3551 (diff) | |
download | meta-mlinux-8d54b0ff470aaa53cae0640f9093eff0b781202c.tar.gz meta-mlinux-8d54b0ff470aaa53cae0640f9093eff0b781202c.tar.bz2 meta-mlinux-8d54b0ff470aaa53cae0640f9093eff0b781202c.zip |
mtp: add firmware upgrade support for mlinux builds
Diffstat (limited to 'recipes-core/images')
-rw-r--r-- | recipes-core/images/mlinux-firmware-upgrade.inc | 25 | ||||
-rw-r--r-- | recipes-core/images/mlinux-picocell-image.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-core/images/mlinux-firmware-upgrade.inc b/recipes-core/images/mlinux-firmware-upgrade.inc new file mode 100644 index 0000000..c3c7c8d --- /dev/null +++ b/recipes-core/images/mlinux-firmware-upgrade.inc @@ -0,0 +1,25 @@ +# generate mlinux firmware upgrade files + +FIRMWARE_UPGRADE_FILE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}-upgrade.bin" + +do_firmware () { + cd ${DEPLOY_DIR_IMAGE} + rm -f bstrap.bin* uboot.bin* uImage.bin* rootfs.jffs2* model + + cp at91bootstrap_pmecc_padded.bin bstrap.bin + cp u-boot-${MACHINE}.bin uboot.bin + cp uImage-${MACHINE}.bin uImage.bin + cp ${IMAGE_BASENAME}-${MACHINE}.jffs2 rootfs.jffs2 + + cat bstrap.bin | md5sum > bstrap.bin.md5 + cat uboot.bin | md5sum > uboot.bin.md5 + cat uImage.bin | md5sum > uImage.bin.md5 + cat rootfs.jffs2 | md5sum > rootfs.jffs2.md5 + + echo "${MACHINE}" > model + + tar cvf ${FIRMWARE_UPGRADE_FILE_NAME} bstrap.bin* uboot.bin* uImage.bin* rootfs.jffs2* model + rm -f bstrap.bin* uboot.bin* uImage.bin* rootfs.jffs2* model +} + +addtask firmware after do_rootfs before do_build diff --git a/recipes-core/images/mlinux-picocell-image.bb b/recipes-core/images/mlinux-picocell-image.bb index 49670a9..f59793d 100644 --- a/recipes-core/images/mlinux-picocell-image.bb +++ b/recipes-core/images/mlinux-picocell-image.bb @@ -1,6 +1,7 @@ DESCRIPTION = "mLinux PicoCell image" require mlinux-minimal-image.bb +require mlinux-firmware-upgrade.inc FILESYSTEM_FEATURES = "dosfstools \ cifs-utils \ |