diff mbox

[U-Boot,v5,7/7] Makefile: Add target for combined spl/u-boot.bin & u-boot.img

Message ID 1350980915-27940-8-git-send-email-sr@denx.de
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Stefan Roese Oct. 23, 2012, 8:28 a.m. UTC
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.

Signed-off-by: Stefan Roese <sr@denx.de>

---
Changes in v4:
- Drop patch fdt: cmd_fdt: Call fdt_chosen() from "fdt boardsetup"

 Makefile | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 280d7c0..d472060 100644
--- a/Makefile
+++ b/Makefile
@@ -536,6 +536,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 \