arm: Always keep the dtb section on objcopy
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
@@ -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
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_EMBEDEDis used or if unit tests include dtb blobs.Signed-off-by Pantelis Antoniou <[email protected]>
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>
PATCH 1/1 arm: Always keep the dtb section on objcopy
In reply to Pantelis AntoniouHi,
Quoted 3 lines · Pantelis Antoniou
The dtb blob section must always be present in the resulting image. Either if
OF_EMBEDEDis used or if unit tests include dtb blobs.
OF_EMBED (and below)
Quoted 24 lines
Signed-off-by Pantelis Antoniou <[email protected]>--- arch/arm/config.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)arch/arm/config.mk +4
-3@@ -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
Quoted 6 lines · Pantelis Antoniou
The dtb blob section must always be present in the resulting image. Either if
OF_EMBEDEDis used or if unit tests include dtb blobs.Signed-off-by Pantelis Antoniou <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
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>