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