|
@@ -543,18 +543,15 @@ $(obj)u-boot.spr: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin
|
|
cat $(obj)spl/u-boot-spl-pad.img $(obj)u-boot.img > $@
|
|
cat $(obj)spl/u-boot-spl-pad.img $(obj)u-boot.img > $@
|
|
|
|
|
|
ifneq ($(CONFIG_TEGRA),)
|
|
ifneq ($(CONFIG_TEGRA),)
|
|
-ifeq ($(CONFIG_OF_SEPARATE),y)
|
|
|
|
-nodtb=dtb
|
|
|
|
-dtbfile=$(obj)u-boot.dtb
|
|
|
|
-else
|
|
|
|
-nodtb=nodtb
|
|
|
|
-dtbfile=
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-$(obj)u-boot-$(nodtb)-tegra.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin $(dtbfile)
|
|
|
|
|
|
+$(obj)u-boot-nodtb-tegra.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
|
|
$(OBJCOPY) ${OBJCFLAGS} --pad-to=$(CONFIG_SYS_TEXT_BASE) -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin
|
|
$(OBJCOPY) ${OBJCFLAGS} --pad-to=$(CONFIG_SYS_TEXT_BASE) -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin
|
|
- cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin $(dtbfile) > $@
|
|
|
|
|
|
+ cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin > $@
|
|
rm $(obj)spl/u-boot-spl-pad.bin
|
|
rm $(obj)spl/u-boot-spl-pad.bin
|
|
|
|
+
|
|
|
|
+ifeq ($(CONFIG_OF_SEPARATE),y)
|
|
|
|
+$(obj)u-boot-dtb-tegra.bin: $(obj)u-boot-nodtb-tegra.bin $(obj)u-boot.dtb
|
|
|
|
+ cat $(obj)u-boot-nodtb-tegra.bin $(obj)u-boot.dtb > $@
|
|
|
|
+endif
|
|
endif
|
|
endif
|
|
|
|
|
|
$(obj)u-boot-img.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.img
|
|
$(obj)u-boot-img.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.img
|