blob: 0578fa3fd81254c8fb968962e2b199b174fdad31 [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
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := sh4-linux-
10endif
Mike Frysinger8378ba42009-06-14 23:33:14 -040011
Wolfgang Denk33a57342011-02-04 14:25:17 +010012CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger5b660442009-09-03 23:12:47 -040013ifeq ($(CPU),sh2)
Wolfgang Denk33a57342011-02-04 14:25:17 +010014CONFIG_STANDALONE_LOAD_ADDR += -EB
Mike Frysinger5b660442009-09-03 23:12:47 -040015endif
16
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +090017PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Nobuhiro Iwamatsu5e8886c2010-10-19 17:07:07 +090018PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
Haiying Wang39358732011-02-22 16:38:05 -050019LDFLAGS_FINAL = --gc-sections
Masahiro Yamadab3bd0042014-02-26 14:51:03 +090020PLATFORM_RELFLAGS += -ffixed-r13