diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-10-10 18:51:56 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-10-10 18:51:56 +0200 |
commit | fb82373a6a598af7bf018db93fa9b8d298441f0f (patch) | |
tree | 0b6c5b4e49b820f847ce507b61e07963f7c388ef /recipes | |
parent | 536a1c1a35297130c3a4fd118e1f28a3449aca7b (diff) |
image-fstype: add colibri-vfxx module
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 |