Skip to contentSkip to conversation

arm: Always keep the dtb section on objcopy

PATCH In review Pantelis Antoniou 3 participants 4 messages May 25, 2017 – Jun 6, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Always keep the dtb section on objcopy

The dtb blob section must always be present in the resulting image. Either if OF_EMBEDED is used or if unit tests include dtb blobs.

---
 arch/arm/config.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/config.mk +4 -2
index a5eebb9..1a77779 100644
@@ -142,9 +142,11 @@ OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
 		-j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
 endif
 
-ifdef CONFIG_OF_EMBED
+# if a dtb section exists we always have to include it
+# there are only two cases where it is generated
+# 1) OF_EMBEDED is turned on
+# 2) unit tests include device tree blobs
 OBJCOPYFLAGS += -j .dtb.init.rodata
-endif
 
 ifdef CONFIG_EFI_LOADER
 OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 arm: Always keep the dtb section on objcopy

Quoted 4 lines · Pantelis Antoniou

The dtb blob section must always be present in the resulting image. Either if OF_EMBEDED is used or if unit tests include dtb blobs.

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/20170525/8062bb7d/attachment.sig>
#2 lore raw

PATCH 1/1 arm: Always keep the dtb section on objcopy

In reply to Pantelis Antoniou

Hi,

Quoted 3 lines · Pantelis Antoniou

The dtb blob section must always be present in the resulting image. Either if OF_EMBEDED is used or if unit tests include dtb blobs.

OF_EMBED (and below)

Quoted 24 lines
---
 arch/arm/config.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/config.mk +4 -3
index a5eebb9..1a77779 100644
@@ -142,9 +142,11 @@ OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
                -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
 endif
 
-ifdef CONFIG_OF_EMBED
+# if a dtb section exists we always have to include it
+# there are only two cases where it is generated
+# 1) OF_EMBEDED is turned on
+# 2) unit tests include device tree blobs
 OBJCOPYFLAGS += -j .dtb.init.rodata
-endif
 
 ifdef CONFIG_EFI_LOADER
 OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel
--
Quoted 2 lines

2.1.4

Regards,
Simon

#3 lore raw
In reply to Pantelis Antoniou
Quoted 6 lines · Pantelis Antoniou

The dtb blob section must always be present in the resulting image. Either if OF_EMBEDED is used or if unit tests include dtb blobs.

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/20170605/81a1299b/attachment.sig>