Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 1 | # |
2 | # (C) Copyright 2007-2008 | ||||
3 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | ||||
4 | # | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 6 | # |
7 | # | ||||
Nobuhiro Iwamatsu | b859b8c | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 8 | ENDIANNESS += -EB |
9 | |||||
Masahiro Yamada | 4770e41 | 2014-11-06 15:55:21 +0900 | [diff] [blame] | 10 | ifdef CONFIG_CPU_SH2A |
Masahiro Yamada | c1b7ddd | 2014-02-26 14:51:02 +0900 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb |
Nobuhiro Iwamatsu | 90520ab | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 12 | else # SH2 |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 13 | PLATFORM_CPPFLAGS += -m3e -mb |
Nobuhiro Iwamatsu | 90520ab | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 14 | endif |
Masahiro Yamada | 4770e41 | 2014-11-06 15:55:21 +0900 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic) |
Nobuhiro Iwamatsu | 90520ab | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 16 | |
Nobuhiro Iwamatsu | b859b8c | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 17 | PLATFORM_LDFLAGS += $(ENDIANNESS) |