From 439310a2422769f1d0d02f25d7aacce64f82c399 Mon Sep 17 00:00:00 2001
From: Gary Bisson <gary.bisson@boundarydevices.com>
Date: Thu, 9 Aug 2018 10:22:17 +0200
Subject: [PATCH] make_boundary: update mx8m build to include imx-mkimage

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 make_boundary | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/make_boundary b/make_boundary
index 95d09cfdf99..d67eb5f94c1 100755
--- a/make_boundary
+++ b/make_boundary
@@ -26,11 +26,16 @@ for board in $boards ; do
 		read line;
 	else
 		if [ "${ARCH}" == "arm64" ] ; then
-		        cp -fv spl/u-boot-spl.bin $savedir/u-boot-spl.bin.${board};
-		        cp -fv u-boot-nodtb.bin $savedir/u-boot-nodtb.bin.${board};
-		        cp -fv u-boot.bin $savedir/u-boot.bin.${board};
-		        cp -fv arch/arm/dts/imx8mq-${board}.dtb $savedir/
-		        ls -l $savedir/u-boot.bin.${board};
+			cd ../imx-mkimage ;
+			UBOOT_PATH=${WORKSPACE} UBOOT_DTB=imx8mq-${board}.dtb ./make_boundary.sh ;
+			cp -v iMX8M/flash.bin ${savedir}/u-boot.${board} ;
+			cd - ;
+		        ls -l ${savedir}/u-boot.${board};
+			mkdir ${savedir}/${board}
+		        cp -fv arch/arm/dts/imx8mq-${board}.dtb ${savedir}/${board}/
+		        cp -fv spl/u-boot-spl.bin ${savedir}/${board}/;
+		        cp -fv u-boot.bin ${savedir}/${board}/;
+		        cp -fv u-boot-nodtb.bin ${savedir}/${board}/;
 		else
 		        cp -fv u-boot.imx $savedir/u-boot.${board};
 		        ls -l $savedir/u-boot.${board};
-- 
GitLab