Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 547b67f | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2000-2002 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Nobuhiro Iwamatsu | 547b67f | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 5 | |
Wolfgang Denk | 33a5734 | 2011-02-04 14:25:17 +0100 | [diff] [blame] | 6 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000 |
Mike Frysinger | 5b66044 | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 7 | ifeq ($(CPU),sh2) |
Daniel Schwierzeck | 9dc13da | 2018-09-23 19:15:15 +0200 | [diff] [blame] | 8 | LDFLAGS_STANDALONE += -EB |
Mike Frysinger | 5b66044 | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 9 | endif |
| 10 | |
Nobuhiro Iwamatsu | 547b67f | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ |
Marek Vasut | c55ff07 | 2020-05-03 17:22:43 +0200 | [diff] [blame] | 12 | PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections |
Haiying Wang | 3935873 | 2011-02-22 16:38:05 -0500 | [diff] [blame] | 13 | LDFLAGS_FINAL = --gc-sections |
Masahiro Yamada | b3bd004 | 2014-02-26 14:51:03 +0900 | [diff] [blame] | 14 | PLATFORM_RELFLAGS += -ffixed-r13 |