Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2007-2008 |
| 4 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 5 | # |
Nobuhiro Iwamatsu | 8aba9dc | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 6 | ENDIANNESS += -EB |
| 7 | |
Masahiro Yamada | 7d23666 | 2014-11-06 15:55:21 +0900 | [diff] [blame] | 8 | ifdef CONFIG_CPU_SH2A |
Tom Rini | 036c967 | 2018-02-17 17:30:38 -0500 | [diff] [blame] | 9 | PLATFORM_CPPFLAGS += -m2a-nofpu -mb |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 10 | else # SH2 |
Nobuhiro Iwamatsu | 6ad43d0 | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -m3e -mb |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 12 | endif |
Masahiro Yamada | 7d23666 | 2014-11-06 15:55:21 +0900 | [diff] [blame] | 13 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic) |
Nobuhiro Iwamatsu | 8cc4441 | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 14 | |
Nobuhiro Iwamatsu | 8aba9dc | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 15 | PLATFORM_LDFLAGS += $(ENDIANNESS) |