Skip to content
Snippets Groups Projects
Commit a0a15b44 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

config.mk: specify the exact path to standalone linker script


We want to change the build system to include config.mk
only from ./Makefile and spl/Makefile.
We must prepare for that in this commit.

$(src) is a moving target and not handy for our purpose.
We must replace it with a fixed path.

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent cd2e46cb
Branches
Tags
No related merge requests found
...@@ -21,4 +21,5 @@ else ...@@ -21,4 +21,5 @@ else
PLATFORM_LDFLAGS += -m elf32ltsmip PLATFORM_LDFLAGS += -m elf32ltsmip
endif endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T $(srctree)/$(src)/mips.lds CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 \
-T $(srctree)/examples/standalone/mips.lds
...@@ -21,4 +21,5 @@ else ...@@ -21,4 +21,5 @@ else
PLATFORM_LDFLAGS += -m elf64ltsmip PLATFORM_LDFLAGS += -m elf64ltsmip
endif endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 -T $(srctree)/$(src)/mips64.lds CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 \
-T $(srctree)/examples/standalone/mips64.lds
...@@ -12,4 +12,5 @@ else ...@@ -12,4 +12,5 @@ else
PLATFORM_LDFLAGS += -m elf32ltsmip PLATFORM_LDFLAGS += -m elf32ltsmip
endif endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T $(srctree)/$(src)/mips.lds CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 \
-T $(srctree)/examples/standalone/mips.lds
...@@ -12,7 +12,8 @@ ifeq ($(CROSS_COMPILE),) ...@@ -12,7 +12,8 @@ ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := nds32le-linux- CROSS_COMPILE := nds32le-linux-
endif endif
CONFIG_STANDALONE_LOAD_ADDR = 0x300000 -T $(srctree)/$(src)/nds32.lds CONFIG_STANDALONE_LOAD_ADDR = 0x300000 \
-T $(srctree)/examples/standalone/nds32.lds
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -mrelax PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -mrelax
PLATFORM_RELFLAGS += -gdwarf-2 PLATFORM_RELFLAGS += -gdwarf-2
......
...@@ -10,6 +10,6 @@ CROSS_COMPILE := sparc-elf- ...@@ -10,6 +10,6 @@ CROSS_COMPILE := sparc-elf-
endif endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \ CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
-T $(srctree)/$(src)/sparc.lds -T $(srctree)/examples/standalone/sparc.lds
PLATFORM_CPPFLAGS += -DCONFIG_SPARC -D__sparc__ PLATFORM_CPPFLAGS += -DCONFIG_SPARC -D__sparc__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment