Skip to contentSkip to conversation

Makefile: Add target for combined spl/u-boot.bin & u-boot.img

PATCH New Stefan Roese 1 participant 1 message Sep 26, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v3 8/8 Makefile: Add target for combined spl/u-boot.bin & u-boot.img

This new make target "u-boot-img.bin" consists of the U-Boot SPL image with the real, full-blown U-Boot image directly attached to it. The full-blown U-Boot image has the mkimage header included, with its load-address and entry-point.

This will be used by the upcoming a3m071 MPC5200 board port.

---

 Makefile | 3 +++
 1 file changed, 3 insertions(+)
Makefile +3 -0
index f11d030..4475774 100644
@@ -510,6 +510,9 @@ $(obj)u-boot-nodtb-tegra.bin:	$(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
 endif
 endif
 
+$(obj)u-boot-img.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.img
+		cat $(obj)spl/u-boot-spl.bin $(obj)u-boot.img > $@
+
 ifeq ($(CONFIG_SANDBOX),y)
 GEN_UBOOT = \
 		cd $(LNDIR) && $(CC) $(SYMS) -T $(obj)u-boot.lds \
Signature · 1 line
1.7.12.1