From f338b8128a157157045c3aee1a5a60c9923f4dec Mon Sep 17 00:00:00 2001 From: Manoharan Vijaya Raghavan Date: Thu, 6 Oct 2016 22:44:38 +0530 Subject: [PATCH] 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 --- config.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.mk b/config.mk index b77d58903c..25c59a7eba 100644 --- a/config.mk +++ b/config.mk @@ -36,6 +36,14 @@ endif ifneq ($(CONFIG_SYS_SOC),) SOC := $(CONFIG_SYS_SOC:"%"=%) 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, # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files.