2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-09-22 17:12:30 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2002
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2014-02-28 05:33:30 +00:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
CROSS_COMPILE := sh4-linux-
|
|
|
|
endif
|
2009-06-15 03:33:14 +00:00
|
|
|
|
2011-02-04 13:25:17 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
|
2009-09-04 03:12:47 +00:00
|
|
|
ifeq ($(CPU),sh2)
|
2011-02-04 13:25:17 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR += -EB
|
2009-09-04 03:12:47 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-22 17:12:30 +00:00
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
|
2016-11-27 22:15:35 +00:00
|
|
|
PLATFORM_RELFLAGS += -fpic
|
2011-02-22 21:38:05 +00:00
|
|
|
LDFLAGS_FINAL = --gc-sections
|
2014-02-26 05:51:03 +00:00
|
|
|
PLATFORM_RELFLAGS += -ffixed-r13
|