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 | |
Pali Rohár | f4b1df5 | 2022-12-11 15:14:59 +0100 | [diff] [blame] | 9 | # No SPE instruction when building u-boot |
| 10 | # (We use all available options to help semi-broken compilers) |
Leon Woestenberg | 15bf283 | 2009-10-26 10:03:32 +0100 | [diff] [blame] | 11 | # see "[PATCH,rs6000] make -mno-spe work as expected" on |
| 12 | # http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html |
Pali Rohár | f4b1df5 | 2022-12-11 15:14:59 +0100 | [diff] [blame] | 13 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-spe) \ |
| 14 | $(call cc-option,-mspe=no) |
Pali Rohár | c89a3b6 | 2022-12-19 22:41:52 +0100 | [diff] [blame] | 15 | |
Pali Rohár | 0d6e0c9 | 2022-12-19 22:46:22 +0100 | [diff] [blame] | 16 | # No AltiVec or VSX instructions when building u-boot |
| 17 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-altivec) |
| 18 | PLATFORM_CPPFLAGS += $(call cc-option,-mno-vsx) |
| 19 | |
Pali Rohár | c89a3b6 | 2022-12-19 22:41:52 +0100 | [diff] [blame] | 20 | ifdef CONFIG_E6500 |
| 21 | PLATFORM_CPPFLAGS += -mcpu=e6500 |
| 22 | else ifdef CONFIG_E5500 |
| 23 | PLATFORM_CPPFLAGS += -mcpu=e5500 |
| 24 | else ifdef CONFIG_E500MC |
| 25 | PLATFORM_CPPFLAGS += -mcpu=e500mc |
| 26 | else |
| 27 | PLATFORM_CPPFLAGS += -mcpu=8540 |
| 28 | endif |