Commit 9972db5cf0d438ac885405278b02d19139154d16

Authored by Stephen Warren
Committed by Tom Warren
1 parent a51f7de161

tegra: always build u-boot-nodtb-tegra.bin

Even when eventually building u-boot-dtb-tegra.bin, separately building
u-boot-nodtb-tegra.bin can be useful, since building it encapsulates the
SPL padding step. If you want to tweak u-boot.dtb and regenerate
u-boot-dtb-tegra.bin, it is then a simple cat operation.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>

Showing 1 changed file with 7 additions and 10 deletions Side-by-side Diff

... ... @@ -543,18 +543,15 @@
543 543 cat $(obj)spl/u-boot-spl-pad.img $(obj)u-boot.img > $@
544 544  
545 545 ifneq ($(CONFIG_TEGRA),)
546   -ifeq ($(CONFIG_OF_SEPARATE),y)
547   -nodtb=dtb
548   -dtbfile=$(obj)u-boot.dtb
549   -else
550   -nodtb=nodtb
551   -dtbfile=
552   -endif
553   -
554   -$(obj)u-boot-$(nodtb)-tegra.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin $(dtbfile)
  546 +$(obj)u-boot-nodtb-tegra.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
555 547 $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(CONFIG_SYS_TEXT_BASE) -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin
556   - cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin $(dtbfile) > $@
  548 + cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin > $@
557 549 rm $(obj)spl/u-boot-spl-pad.bin
  550 +
  551 +ifeq ($(CONFIG_OF_SEPARATE),y)
  552 +$(obj)u-boot-dtb-tegra.bin: $(obj)u-boot-nodtb-tegra.bin $(obj)u-boot.dtb
  553 + cat $(obj)u-boot-nodtb-tegra.bin $(obj)u-boot.dtb > $@
  554 +endif
558 555 endif
559 556  
560 557 $(obj)u-boot-img.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.img