From 7bc3b60d36cc1bd9ca55ac93aab5655aec522776 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Fri, 10 Aug 2018 11:43:34 +0200 Subject: Makefiles: add a i.MX8 flash.bin target This is taken from the soc.mak makefile. It relies on an OE deploy dir with the relevant boot binaries. See mx8_boot_img/Makefile for where the mkimage-imx8 and the various boot binaries are taken from. use 'make flash.bin' to build U-Boot and then build the boot image. To flash use: dd if=flash.bin of=${SDCARD} conv=notrunc seek=33 bs=1K Signed-off-by: Max Krummenacher (cherry picked from commit 72d2432e6fd3166fa45204b5515e04ae1524088e) (cherry picked from commit fe7b38897ec1339e77cf80b409f659019a76fb71) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 225fa6828c..849ff12900 100644 --- a/Makefile +++ b/Makefile @@ -908,6 +908,11 @@ u-boot.bin: u-boot-nodtb.bin FORCE $(call if_changed,copy) endif +flash.bin: u-boot.bin + cd mx8_boot_img; $(MAKE) + @echo;echo "To update an SD card use e.g.:" + @echo 'sudo "sudo sh -c "dd if=flash.bin of=/dev/sdX bs=1k seek=33;sync"';echo + %.imx: %.bin $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ -- cgit v1.2.3