Эх сурвалжийг харах

sh: add support the CONFIG_SYS_LDSCRIPT

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Yoshihiro Shimoda 14 жил өмнө
parent
commit
36781e4897
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      arch/sh/config.mk

+ 6 - 0
arch/sh/config.mk

@@ -31,4 +31,10 @@ endif
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
 PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
 LDFLAGS_u-boot = --gc-sections
+
+ifdef CONFIG_SYS_LDSCRIPT
+LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT))
+else
 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
+endif
+