This is useful for the DFU use case for updaing zImage and DTBs. Without this image, we have to either update with the full image, or update (replace) the files using fatwrite individually.
Signed-off-by: Tzu-Jung Lee <[email protected]> diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index d351348..47e7390 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -83,6 +83,8 @@ IMAGE_DEPENDS_sdcard = "parted-native:do_populate_sysroot \ virtual/kernel:do_deploy \ ${@d.getVar('IMAGE_BOOTLOADER', True) and d.getVar('IMAGE_BOOTLOADER', True) + ':do_deploy' or ''}" +BOOTIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.bootimg.vfat" + SDCARD = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sdcard" SDCARD_GENERATION_COMMAND_mxs = "generate_mxs_sdcard" @@ -204,6 +206,7 @@ generate_imx_sdcard () { # Burn Partition dd if=${WORKDIR}/boot.img of=${SDCARD} conv=notrunc,fsync seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) dd if=${SDCARD_ROOTFS} of=${SDCARD} conv=notrunc,fsync seek=1 bs=$(expr ${BOOT_SPACE_ALIGNED} \* 1024 + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) + cp ${WORKDIR}/boot.img ${BOOTIMG} } # -- 2.6.2 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
