Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / sh / config.mk
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # (C) Copyright 2000-2002
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6 ifeq ($(CROSS_COMPILE),)
7 CROSS_COMPILE := sh4-linux-
8 endif
9
10 CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
11 ifeq ($(CPU),sh2)
12 LDFLAGS_STANDALONE += -EB
13 endif
14
15 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
16 PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
17 LDFLAGS_FINAL = --gc-sections
18 PLATFORM_RELFLAGS += -ffixed-r13