xref: /openbmc/u-boot/arch/sh/config.mk (revision 730d2544)
1#
2# (C) Copyright 2000-2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := sh4-linux-
10endif
11
12CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
13ifeq ($(CPU),sh2)
14CONFIG_STANDALONE_LOAD_ADDR += -EB
15endif
16
17PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
18PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
19LDFLAGS_FINAL = --gc-sections
20PLATFORM_RELFLAGS += -ffixed-r13
21