2007-09-22 17:12:30 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2002
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-09-22 17:12:30 +00:00
|
|
|
#
|
|
|
|
|
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__
|
2011-02-22 21:38:05 +00:00
|
|
|
LDFLAGS_FINAL = --gc-sections
|
2014-02-26 05:51:03 +00:00
|
|
|
PLATFORM_RELFLAGS += -ffixed-r13
|