diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/images/trdx-image-fstype.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/images/trdx-image-fstype.inc b/recipes/images/trdx-image-fstype.inc index b4b036a..e91ee65 100644 --- a/recipes/images/trdx-image-fstype.inc +++ b/recipes/images/trdx-image-fstype.inc @@ -6,7 +6,7 @@ S = "${WORKDIR}/burnflash" IMAGE_ROOTFS = "${WORKDIR}/${IMAGE_NAME}${PV}/rootfs" U_BOOT_EXT = "bin" -U_BOOT_EXT_twr-vf65gs10 = "imx" +U_BOOT_EXT_colibri-vf50 = "imx" do_rootfs_prepend() { tar -C ${WORKDIR} -xf ${BURNFLASH} @@ -14,6 +14,11 @@ do_rootfs_prepend() { cp -pPr ${S}/* ${IMAGE_ROOTFS}/../ } +#we need the native ubi tools for machines using ubifs +DEPENDS_colibri-vf50 = "mtd-utils-native" +CP_MKUBIFS="" +CP_MKUBIFS_colibri-vf50="MKUBIFS=`which mkfs.ubifs` ; mkdir ${IMAGE_ROOTFS}/../vf_flash/ ; cp ${MKUBIFS} ${IMAGE_ROOTFS}/../vf_flash/ ; ${BUILD_STRIP} ${IMAGE_ROOTFS}/../vf_flash/mkfs.ubifs" + do_rootfs_append() { # put u-boot, kernel into the bin directories, remove the kernel from the rootfs/boot rm ${IMAGE_ROOTFS}/boot/uImage* @@ -28,6 +33,9 @@ do_rootfs_append() { echo "${IMAGE_NAME}${PV}_${DATE}" >> ${IMAGE_ROOTFS}/etc/issue echo "" >> ${IMAGE_ROOTFS}/etc/issue + # add the mkfs.ubifs binary if needed + ${CP_MKUBIFS} + # remove intermediate file rootfs.lock rm ${WORKDIR}/${IMAGE_NAME}${PV}/rootfs.lock |