]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/config.mk
support CONFIG_SYS_LDSCRIPT on ARM
[karo-tx-uboot.git] / arch / arm / config.mk
index fcc26a2f3006023ad74ce77c51614b9f076c00e6..788d4c12b7a4e17aa6a767822230c126a899ecf1 100644 (file)
@@ -61,7 +61,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