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 | |||||
Masahiro Yamada | 7d23666 | 2014-11-06 15:55:21 +0900 | [diff] [blame] | 10 | ifdef CONFIG_CPU_SH2A |
Masahiro Yamada | aceba5a | 2014-02-26 14:51:02 +0900 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb |
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 |
Masahiro Yamada | 7d23666 | 2014-11-06 15:55:21 +0900 | [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 | 8aba9dc | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 17 | PLATFORM_LDFLAGS += $(ENDIANNESS) |