Patchwork [U-Boot,06/17] support CONFIG_SYS_LDSCRIPT on ARM

login
register
mail settings
Submitter Michael Schwingen
Date Feb. 4, 2011, 11:05 p.m.
Message ID <1296860763-16149-7-git-send-email-michael@schwingen.org>
Download mbox | patch
Permalink /patch/81973/
State Superseded
Headers show

Comments

Michael Schwingen - Feb. 4, 2011, 11:05 p.m.
Signed-off-by: Michael Schwingen <michael@schwingen.org>
---
 arch/arm/config.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index a6a4742..a7c4d27 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -63,7 +63,13 @@  ifeq (,$(findstring arch/arm/lib/eabi_compat.o,$(PLATFORM_LIBS)))
 PLATFORM_LIBS += $(OBJTREE)/arch/arm/lib/eabi_compat.o
 endif
 endif
+
+ifdef CONFIG_SYS_LDSCRIPT
+# need to strip off double quotes
+LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT))
+else
 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
+endif
 
 # needed for relocation
 ifndef CONFIG_NAND_SPL