From 355e04a64d8ce7b59c95e745d51c3a28ca05610b Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Thu, 10 Oct 2013 18:51:56 +0200 Subject: image-fstype: add colibri-vfxx module --- recipes/images/trdx-image-fstype.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3