Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2002,2003 Motorola Inc. |
| 4 | # Xianghua Xiao, X.Xiao@motorola.com |
wdenk | 9c53f40 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 5 | |
Pali Rohár | c89a3b6 | 2022-12-19 22:41:52 +0100 | [diff] [blame^] | 6 | PLATFORM_CPPFLAGS += -msoft-float -mno-string |
Joakim Tjernlund | f2c2c30 | 2018-12-06 17:20:53 +0100 | [diff] [blame] | 7 | PLATFORM_RELFLAGS += -msingle-pic-base -fno-jump-tables |
Leon Woestenberg | 15bf283 | 2009-10-26 10:03:32 +0100 | [diff] [blame] | 8 | |
| 9 | # -mspe=yes is needed to have -mno-spe accepted by a buggy GCC; |
| 10 | # see "[PATCH,rs6000] make -mno-spe work as expected" on |
| 11 | # http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html |
Masahiro Yamada | 0573359 | 2013-11-26 10:53:58 +0900 | [diff] [blame] | 12 | PLATFORM_CPPFLAGS += $(call cc-option,-mspe=yes) \ |
Wolfgang Denk | 9209ed5 | 2011-11-01 20:54:02 +0000 | [diff] [blame] | 13 | $(call cc-option,-mno-spe) |
Pali Rohár | c89a3b6 | 2022-12-19 22:41:52 +0100 | [diff] [blame^] | 14 | |
| 15 | ifdef CONFIG_E6500 |
| 16 | PLATFORM_CPPFLAGS += -mcpu=e6500 |
| 17 | else ifdef CONFIG_E5500 |
| 18 | PLATFORM_CPPFLAGS += -mcpu=e5500 |
| 19 | else ifdef CONFIG_E500MC |
| 20 | PLATFORM_CPPFLAGS += -mcpu=e500mc |
| 21 | else |
| 22 | PLATFORM_CPPFLAGS += -mcpu=8540 |
| 23 | endif |