summaryrefslogtreecommitdiffstats
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorAlexey Ignatov <lexszero@gmail.com>2014-07-07 03:21:44 +0400
committerTom Rini <trini@ti.com>2014-07-07 19:47:24 -0400
commit072b2d88723a75c5fd83f5ca7dac8e0a6510849b (patch)
treeb24582416a5a9d57a09c3f8aa335ea50ce2ed120 /arch/arm/config.mk
parent2835d993e1df1a2aef77c6f5047ebabd2ff3c7b2 (diff)
downloadblackbird-obmc-uboot-072b2d88723a75c5fd83f5ca7dac8e0a6510849b.tar.gz
blackbird-obmc-uboot-072b2d88723a75c5fd83f5ca7dac8e0a6510849b.zip
kmake: include DTB section into u-boot.bin if CONFIG_OF_EMBED enabled
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.
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 66ecc2ee4d..5fa182536d 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
OpenPOWER on IntegriCloud