]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
kmake: include DTB section into u-boot.bin if CONFIG_OF_EMBED enabled
authorAlexey Ignatov <lexszero@gmail.com>
Sun, 6 Jul 2014 23:21:44 +0000 (03:21 +0400)
committerTom Rini <trini@ti.com>
Mon, 7 Jul 2014 23:47:24 +0000 (19:47 -0400)
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

index 66ecc2ee4d16d4476616204212ec7b352f3a0422..5fa182536d78c233a9bdac17034c183062e92ee3 100644 (file)
@@ -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