Kbuild: add LDFLAGS_STANDALONE

Introduce a new Makefile variable for passing LDFLAGS to standalone
programs. Currently the variable CONFIG_STANDALONE_LOAD_ADDR is
misued on some archs to pass a specific linker script.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Rick Chen <rick@andestech.com>
This commit is contained in:
Daniel Schwierzeck
2018-09-23 19:15:15 +02:00
parent 101860ef69
commit 1d3b97c94e
7 changed files with 14 additions and 10 deletions

View File

@@ -3,5 +3,5 @@
# (C) Copyright 2003
# Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 \
-T $(srctree)/examples/standalone/mips.lds
CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000
LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/mips.lds

View File

@@ -3,5 +3,5 @@
# (C) Copyright 2003
# Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 \
-T $(srctree)/examples/standalone/mips64.lds
CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000
LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/mips64.lds