[PATCH] image: am335x: Generate SPI MLO images

Wadim Egorov w.egorov at phytec.de
Tue Jun 2 01:01:07 PDT 2015


Signed-off-by: Wadim Egorov <w.egorov at phytec.de>
---
 images/Makefile        | 2 +-
 images/Makefile.am33xx | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/images/Makefile b/images/Makefile
index 587cb26..36c1a57 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -123,6 +123,6 @@ images: $(addprefix $(obj)/, $(image-y)) FORCE
 	@for i in $(image-y); do echo $$i; done
 
 clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \
-	start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \
+	start_*.kwbuartimg *.socfpgaimg *.mlo *.spi *.t20img *.t20img.cfg *.t30img \
 	*.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd
 clean-files += pbl.lds
diff --git a/images/Makefile.am33xx b/images/Makefile.am33xx
index eae2a6a..ddf4f2b 100644
--- a/images/Makefile.am33xx
+++ b/images/Makefile.am33xx
@@ -4,8 +4,14 @@
 quiet_cmd_mlo_image = MLO     $@
       cmd_mlo_image = scripts/omap_signGP -o $@ -l 0x402f0400 -c $<
 
+quiet_cmd_mlo_spi_image = SPI-IMG $@.spi
+      cmd_mlo_spi_image = scripts/mk-omap-image -s -a 0x402f0400 $<.mlo > $@.spi
+
 $(obj)/%.mlo: $(obj)/% FORCE
 	$(call if_changed,mlo_image)
+ifdef CONFIG_OMAP_BUILD_SPI
+	$(call if_changed,mlo_spi_image)
+endif
 
 pblx-$(CONFIG_MACH_AFI_GF) += start_am33xx_afi_gf_sdram
 FILE_barebox-am33xx-afi-gf.img = start_am33xx_afi_gf_sdram.pblx
-- 
1.9.1




More information about the barebox mailing list