diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-03-31 14:18:46 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-03-31 14:18:46 +0200 |
commit | 6d905d7683daeb9dfcfaaf993923f384abe6505e (patch) | |
tree | 4dbc49fe705204392bd8523c7183b8e151a056d4 /recipes | |
parent | aca0ad875a91128d1d1bd12e2cb50202c03908bf (diff) |
burnflash: deploy the serial loader with the rootfs
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/images/trdx-image-fstype.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/recipes/images/trdx-image-fstype.inc b/recipes/images/trdx-image-fstype.inc index eeb39b1..b584c9a 100644 --- a/recipes/images/trdx-image-fstype.inc +++ b/recipes/images/trdx-image-fstype.inc @@ -15,9 +15,13 @@ do_rootfs_prepend() { } #we need the native ubi tools for machines using ubifs -DEPENDS_colibri-vf = "mtd-utils-native" -CP_MKUBIFS="" -CP_MKUBIFS_colibri-vf="MKUBIFS=`which mkfs.ubifs` ; mkdir ${IMAGE_ROOTFS}/../vf_flash/ ; cp ${MKUBIFS} ${IMAGE_ROOTFS}/../vf_flash/ ; ${BUILD_STRIP} ${IMAGE_ROOTFS}/../vf_flash/mkfs.ubifs" +DEPENDS_colibri-vf = "mtd-utils-native imx-loader-native" +CP_TOOLS="" +CP_TOOLS_colibri-vf= \ +"mkdir -p ${IMAGE_ROOTFS}/../vf_flash; \ + MKUBIFS=`which mkfs.ubifs`; cp ${MKUBIFS} ${IMAGE_ROOTFS}/../vf_flash/; ${BUILD_STRIP} ${IMAGE_ROOTFS}/../vf_flash/mkfs.ubifs; \ + IMXLOADER=`which imx_uart`; cp ${IMXLOADER} ${IMAGE_ROOTFS}/../vf_flash/; ${BUILD_STRIP} ${IMAGE_ROOTFS}/../vf_flash/imx_uart; \ + IMXCONF=`dirname ${IMXLOADER}`; cp ${IMXCONF}/../../etc/imx-loader.d/*.conf ${IMAGE_ROOTFS}/../vf_flash/ " do_rootfs_append() { # put u-boot, kernel into the bin directories, remove the kernel from the rootfs/boot @@ -33,8 +37,8 @@ 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} + # add tools binaries if needed + ${CP_TOOLS} # remove intermediate file rootfs.lock rm ${WORKDIR}/${IMAGE_NAME}${PV}/rootfs.lock |