summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2018-09-23 19:15:15 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2018-11-18 16:02:23 +0100
commit1d3b97c94eb562fa1071abd50b3a4cb4cca7f203 (patch)
treec7b24702fc3970326f1f012f3decf7f1f62fd50a /arch/sh
parent101860ef69887f12cd5cc8d0e1512a37f4ffb8d7 (diff)
downloadu-boot-1d3b97c94eb562fa1071abd50b3a4cb4cca7f203.tar.gz
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/config.mk b/arch/sh/config.mk
index 92abee17ad..6ef44638ab 100644
--- a/arch/sh/config.mk
+++ b/arch/sh/config.mk
@@ -9,7 +9,7 @@ endif
CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
ifeq ($(CPU),sh2)
-CONFIG_STANDALONE_LOAD_ADDR += -EB
+LDFLAGS_STANDALONE += -EB
endif
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__