mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] image: am335x: Generate SPI MLO images
@ 2015-06-02  8:01 Wadim Egorov
  2015-06-04  9:06 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Wadim Egorov @ 2015-06-02  8:01 UTC (permalink / raw)
  To: barebox

Signed-off-by: Wadim Egorov <w.egorov@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-05 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02  8:01 [PATCH] image: am335x: Generate SPI MLO images Wadim Egorov
2015-06-04  9:06 ` Sascha Hauer
2015-06-05  6:37   ` Wadim Egorov
2015-06-05 11:30     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox