From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Ignatov Date: Mon, 7 Jul 2014 03:21:44 +0400 Subject: [U-Boot] [PATCH] kmake: include DTB section into u-boot.bin if CONFIG_OF_EMBED enabled Message-ID: <1404688904-11963-1-git-send-email-lexszero@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fixes a bug when objcopy doesn't put .dtb.init.rodata section to resulting u-boot.bin, so u-boot was unable to find embedded DTB. --- arch/arm/config.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 66ecc2e..5fa1825 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -116,6 +116,10 @@ else OBJCOPYFLAGS += -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn endif +ifdef CONFIG_OF_EMBED +OBJCOPYFLAGS += -j .dtb.init.rodata +endif + ifneq ($(CONFIG_IMX_CONFIG),) ifdef CONFIG_SPL ifndef CONFIG_SPL_BUILD -- 1.8.5.3