diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-03-29 12:35:05 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-04-01 10:11:35 +0200 |
commit | 9f50665feff9cda1fec8e3faa789dba5c88f6384 (patch) | |
tree | 474fcfc67467fb684145545bcdaf89b9bdde969d | |
parent | c64b1b4a02dc702856eca820ddcf1c01543bb62a (diff) |
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
-rw-r--r-- | recipes/images/trdx-image-fstype.inc | 12 |
1 files changed, 12 insertions, 0 deletions
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* |