Skip to contentSkip to conversation

kbuild: Do not append dtb for OF_EMBED case

PATCH New Michal Simek 4 participants 4 messages Apr 28, 2016 – May 2, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kbuild: Do not append dtb for OF_EMBED case

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.

---

Changes in v2:
- Refactor based on Masahiro comments

 scripts/Makefile.spl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.spl +1 -1
index 33f1a3f3939c..5df860e7ed11 100644
@@ -174,7 +174,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)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 kbuild: Do not append dtb for OF_EMBED case

2016-04-28 16:08 GMT+09:00 Michal Simek <[email protected]>:

Quoted 6 lines

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.

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

PATCH v2 1/1 kbuild: Do not append dtb for OF_EMBED case

In reply to Michal Simek
Quoted 6 lines · Michal Simek

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.

Quoted 8 lines

---

Changes in v2:
- Refactor based on Masahiro comments

 scripts/Makefile.spl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw

PATCH v2 1/1 kbuild: Do not append dtb for OF_EMBED case

In reply to Michal Simek
Quoted 8 lines · Michal Simek

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160502/a6754920/attachment.sig>