From 6d905d7683daeb9dfcfaaf993923f384abe6505e Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 31 Mar 2014 14:18:46 +0200 Subject: burnflash: deploy the serial loader with the rootfs --- recipes/images/trdx-image-fstype.inc | 14 +++++++++----- 1 file 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 -- cgit v1.2.3