mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 09:48:16 +00:00
1d3b97c94e
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>
18 lines
406 B
Makefile
18 lines
406 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2002
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
CROSS_COMPILE := sh4-linux-
|
|
endif
|
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
|
|
ifeq ($(CPU),sh2)
|
|
LDFLAGS_STANDALONE += -EB
|
|
endif
|
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
|
|
PLATFORM_RELFLAGS += -fpic
|
|
LDFLAGS_FINAL = --gc-sections
|
|
PLATFORM_RELFLAGS += -ffixed-r13
|