summaryrefslogtreecommitdiff
path: root/arch/arm
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
parent2835d993e1df1a2aef77c6f5047ebabd2ff3c7b2 (diff)
downloadu-boot-imx-072b2d88723a75c5fd83f5ca7dac8e0a6510849b.zip
u-boot-imx-072b2d88723a75c5fd83f5ca7dac8e0a6510849b.tar.gz
u-boot-imx-072b2d88723a75c5fd83f5ca7dac8e0a6510849b.tar.bz2
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')
-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 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