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 | |
Nobuhiro Iwamatsu | 90520ab | 2011-06-09 15:03:34 +0900 | [diff] [blame] | 10 | ifdef CONFIG_SH2A |
Mike Frysinger | a632790 | 2011-10-13 00:45:47 -0400 | [diff] [blame] | 11 | PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding |
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 |
Mike Frysinger | a632790 | 2011-10-13 00:45:47 -0400 | [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 | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 17 | PLATFORM_RELFLAGS += -ffixed-r13 |
Nobuhiro Iwamatsu | b859b8c | 2011-01-06 10:23:54 +0900 | [diff] [blame] | 18 | PLATFORM_LDFLAGS += $(ENDIANNESS) |