]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
kbuild: Do not append dtb for OF_EMBED case
authorMichal Simek <michal.simek@xilinx.com>
Thu, 28 Apr 2016 07:08:18 +0000 (09:08 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 2 May 2016 22:37:11 +0000 (18:37 -0400)
dtb is already included in binary that's why there is no need to replace
u-boot-spl.bin with u-boot-spl-dtb.bin. This is only needed for
OF_SEPARATE is enabled. Only copy -nodtb.bin version which is straight
output from objcopy -O binary.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/Makefile.spl

index 44242842db31f0af7ffe85fad3ede79356395354..ec8d8f1b72ad10579c4c59226337e13e11545dc2 100644 (file)
@@ -165,7 +165,7 @@ cmd_cat = cat $(filter-out $(PHONY), $^) > $@
 quiet_cmd_copy = COPY    $@
       cmd_copy = cp $< $@
 
-ifeq ($(CONFIG_SPL_OF_CONTROL),y)
+ifeq ($(CONFIG_SPL_OF_CONTROL)$(CONFIG_OF_SEPARATE),yy)
 $(obj)/$(SPL_BIN)-dtb.bin: $(obj)/$(SPL_BIN)-nodtb.bin $(obj)/$(SPL_BIN)-pad.bin \
                $(obj)/$(SPL_BIN).dtb FORCE
        $(call if_changed,cat)