Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007-2008 |
| 3 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 6 | # |
| 7 | # |
Nobuhiro Iwamatsu | 8aba9dc | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 8 | ENDIANNESS += -EB |
| 9 | |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 10 | ifdef CONFIG_SH2A |
Mike Frysinger | 4cde174 | 2011-10-13 00:45:47 -0400 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 12 | else # SH2 |
Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 13 | PLATFORM_CPPFLAGS += -m3e -mb |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 14 | endif |
Mike Frysinger | 4cde174 | 2011-10-13 00:45:47 -0400 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic) |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 16 | |
Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 17 | PLATFORM_RELFLAGS += -ffixed-r13 |
Nobuhiro Iwamatsu | 8aba9dc | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 18 | PLATFORM_LDFLAGS += $(ENDIANNESS) |