Makefile: Add target for combined spl/u-boot.bin & u-boot.img
[oweals/u-boot.git] / Makefile
index bf9a9378dafd622ffcdf995f97c80b5650701405..2132ebf10f23e89b830749d00bbb6f0d71b163cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -544,6 +544,9 @@ $(obj)u-boot-$(nodtb)-tegra.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin $(dtb
                rm $(obj)spl/u-boot-spl-pad.bin
 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 \