From 6460f024a255c85135233e10df334b693e351237 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 29 Mar 2014 12:35:05 +0200 Subject: image: Apalis iMX6, Colibri VF: deploy imx loader - build and deploy imx_usb, imx_uart - currently it builds for the build host arch, i.e x86-64 or i386 --- recipes/images/trdx-image-fstype.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'recipes') diff --git a/recipes/images/trdx-image-fstype.inc b/recipes/images/trdx-image-fstype.inc index f1717d9..9279782 100644 --- a/recipes/images/trdx-image-fstype.inc +++ b/recipes/images/trdx-image-fstype.inc @@ -17,6 +17,7 @@ do_rootfs_prepend() { #we need some native tools for deployment DEPENDS_colibri-vf = "mtd-utils-native imx-loader-native" +DEPENDS_mx6 = "imx-loader-native" do_rootfs_append_colibri-vf() { IMAGE_ROOT="${IMAGE_ROOTFS}/../vf_flash/" @@ -33,6 +34,17 @@ do_rootfs_append_colibri-vf() { cp ${STAGING_ETCDIR_NATIVE}/imx-loader.d/* ${IMAGE_ROOT}/ } +do_rootfs_append_mx6() { + IMAGE_ROOT="${IMAGE_ROOTFS}/../imx_flash/" + rm -f ${IMAGE_ROOT}/imx_flash/imx_usb ${IMAGE_ROOT}/imx_flash/*.conf + mkdir -p ${IMAGE_ROOT} + + # add imx-loader and its configuration files + cp ${STAGING_BINDIR_NATIVE}/imx_usb ${IMAGE_ROOT}/ + ${BUILD_STRIP} ${IMAGE_ROOT}/imx_usb* + cp ${STAGING_ETCDIR_NATIVE}/imx-loader.d/* ${IMAGE_ROOT}/ +} + do_rootfs_append() { # put u-boot, kernel into the bin directories, remove the kernel from the rootfs/boot rm ${IMAGE_ROOTFS}/boot/uImage* -- cgit v1.2.3