* [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy
@ 2017-05-25 16:23 Pantelis Antoniou
2017-05-25 18:01 ` Tom Rini
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pantelis Antoniou @ 2017-05-25 16:23 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
arch/arm/config.mk | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index a5eebb9..1a77779 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -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
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy
2017-05-25 16:23 [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy Pantelis Antoniou
@ 2017-05-25 18:01 ` Tom Rini
2017-06-01 3:11 ` Simon Glass
2017-06-06 0:22 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2017-05-25 18:01 UTC (permalink / raw)
To: u-boot
On Thu, May 25, 2017 at 07:23:58PM +0300, Pantelis Antoniou wrote:
> 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.
>
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy
2017-05-25 16:23 [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy Pantelis Antoniou
2017-05-25 18:01 ` Tom Rini
@ 2017-06-01 3:11 ` Simon Glass
2017-06-06 0:22 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2017-06-01 3:11 UTC (permalink / raw)
To: u-boot
Hi,
On 25 May 2017 at 10:23, Pantelis Antoniou
<pantelis.antoniou@konsulko.com> wrote:
> 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)
Reviewed-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> ---
> arch/arm/config.mk | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/config.mk b/arch/arm/config.mk
> index a5eebb9..1a77779 100644
> --- a/arch/arm/config.mk
> +++ b/arch/arm/config.mk
> @@ -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
> --
> 2.1.4
>
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] arm: Always keep the dtb section on objcopy
2017-05-25 16:23 [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy Pantelis Antoniou
2017-05-25 18:01 ` Tom Rini
2017-06-01 3:11 ` Simon Glass
@ 2017-06-06 0:22 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2017-06-06 0:22 UTC (permalink / raw)
To: u-boot
On Thu, May 25, 2017 at 07:23:58PM +0300, Pantelis Antoniou wrote:
> 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.
>
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-06 0:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 16:23 [U-Boot] [PATCH] arm: Always keep the dtb section on objcopy Pantelis Antoniou
2017-05-25 18:01 ` Tom Rini
2017-06-01 3:11 ` Simon Glass
2017-06-06 0:22 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.