diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-09-02 18:23:47 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-09-22 12:20:55 +0200 |
commit | 6d62357e88e9a8c0f868e8a9b5505d3e69f9fe7e (patch) | |
tree | 2e3ba8a3af00e40309c698420519d643a700b8a2 /recipes/images/trdx-image-fstype.inc | |
parent | 0341f40208b9c7e72cf00fc4247911edcae6b666 (diff) |
image: add handling for imx u-boot extension
Diffstat (limited to 'recipes/images/trdx-image-fstype.inc')
-rw-r--r-- | recipes/images/trdx-image-fstype.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes/images/trdx-image-fstype.inc b/recipes/images/trdx-image-fstype.inc index e26c63e..b4b036a 100644 --- a/recipes/images/trdx-image-fstype.inc +++ b/recipes/images/trdx-image-fstype.inc @@ -5,6 +5,8 @@ BURNFLASH := "${THISDIR}/files/${MACHINE}/burnflash.tar.bz2" S = "${WORKDIR}/burnflash" IMAGE_ROOTFS = "${WORKDIR}/${IMAGE_NAME}${PV}/rootfs" +U_BOOT_EXT = "bin" +U_BOOT_EXT_twr-vf65gs10 = "imx" do_rootfs_prepend() { tar -C ${WORKDIR} -xf ${BURNFLASH} @@ -19,8 +21,8 @@ do_rootfs_append() { mv ${IMAGE_ROOTFS}/../${MACHINE}_bin/uImage-${MACHINE}.bin ${IMAGE_ROOTFS}/../${MACHINE}_bin/uImage cp -pP ${DEPLOY_DIR_IMAGE}/u-boot* ${IMAGE_ROOTFS}/../${MACHINE}_bin/ - rm -f ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-hsmmc-${MACHINE}.bin - mv ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-${MACHINE}.bin ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot.bin + rm -f ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-hsmmc-${MACHINE}.${U_BOOT_EXT} + mv ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot-${MACHINE}.${U_BOOT_EXT} ${IMAGE_ROOTFS}/../${MACHINE}_bin/u-boot.${U_BOOT_EXT} # add the rootfs version to the welcome banner echo "${IMAGE_NAME}${PV}_${DATE}" >> ${IMAGE_ROOTFS}/etc/issue |