qca: Fixes objcopy flags to include device tree into u-boot.bin

With CONFIG_OF_COMBINE enabled, device tree was part of u-boot elf.
objcopy was missing this device tree section when copying into u-boot.bin.
This patch fixes this issue.

Change-Id: I604050023fa9fc572f77a450b0f1db472e785129
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
This commit is contained in:
Manoharan Vijaya Raghavan 2016-10-06 22:44:38 +05:30 committed by Gerrit - the friendly Code Review server
parent f5c7ca631b
commit f338b8128a

View file

@ -36,6 +36,14 @@ endif
ifneq ($(CONFIG_SYS_SOC),) ifneq ($(CONFIG_SYS_SOC),)
SOC := $(CONFIG_SYS_SOC:"%"=%) SOC := $(CONFIG_SYS_SOC:"%"=%)
endif endif
ifeq ($(CONFIG_OF_COMBINE),)
ifneq ($(CONFIG_OF_SEPERATE),)
OBJCOPYFLAGS += -j .text -j .secure_text -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list
endif
else
OBJCOPYFLAGS += -j .text -j .secure_text -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list -j .dtb
endif
# Some architecture config.mk files need to know what CPUDIR is set to, # Some architecture config.mk files need to know what CPUDIR is set to,
# so calculate CPUDIR before including ARCH/SOC/CPU config.mk files. # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.