Skip to contentSkip to conversation

nios2: allow link script overriding from boards

PATCH New Thomas Chou 2 participants 2 messages Apr 17, 2010 – Apr 22, 2010 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nios2: allow link script overriding from boards

This patch allow boards to override the default link script.

---
 arch/nios2/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/nios2/config.mk +1 -1
index f455982..8e5d6ef 100644
@@ -29,4 +29,4 @@ STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir)
 PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
 PLATFORM_CPPFLAGS += -ffixed-r15 -G0
 
-LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
+LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
Signature · 1 line
1.6.6.1
Applied
#1 lore raw

PATCH 1/1 nios2: allow link script overriding from boards

Applied. Thanks.
--Scott

Quoted 17 lines · Thomas Chou

This patch allow boards to override the default link script.

---
 arch/nios2/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/nios2/config.mk +1 -1
index f455982..8e5d6ef 100644
@@ -29,4 +29,4 @@ STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir)
 PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
 PLATFORM_CPPFLAGS += -ffixed-r15 -G0
 
-LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
+LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds