blob: 758c0701e5d70da89c9af63c298331c60a2283df [file] [log] [blame]
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +09001#
2# (C) Copyright 2000-2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +09006#
7
Mike Frysinger8378ba42009-06-14 23:33:14 -04008CROSS_COMPILE ?= sh4-linux-
9
Wolfgang Denk33a57342011-02-04 14:25:17 +010010CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger5b660442009-09-03 23:12:47 -040011ifeq ($(CPU),sh2)
Wolfgang Denk33a57342011-02-04 14:25:17 +010012CONFIG_STANDALONE_LOAD_ADDR += -EB
Mike Frysinger5b660442009-09-03 23:12:47 -040013endif
14
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +090015PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Nobuhiro Iwamatsu5e8886c2010-10-19 17:07:07 +090016PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
Haiying Wang39358732011-02-22 16:38:05 -050017LDFLAGS_FINAL = --gc-sections