summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-03-29 12:35:05 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-04-01 10:11:35 +0200
commit6460f024a255c85135233e10df334b693e351237 (patch)
tree97d3031aaf3e9853ae774753ca598902cd6b2874
parent516458900eda91785b13ba4f18a8c3e359ad2320 (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.inc12
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*