blob: 71a98f05c9021ef2e9647387462a7b689ebdcd35 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk9c53f402003-10-15 23:53:47 +00002#
3# (C) Copyright 2002,2003 Motorola Inc.
4# Xianghua Xiao, X.Xiao@motorola.com
wdenk9c53f402003-10-15 23:53:47 +00005
Pali Rohárc89a3b62022-12-19 22:41:52 +01006PLATFORM_CPPFLAGS += -msoft-float -mno-string
Joakim Tjernlundf2c2c302018-12-06 17:20:53 +01007PLATFORM_RELFLAGS += -msingle-pic-base -fno-jump-tables
Leon Woestenberg15bf2832009-10-26 10:03:32 +01008
Pali Rohárf4b1df52022-12-11 15:14:59 +01009# No SPE instruction when building u-boot
10# (We use all available options to help semi-broken compilers)
Leon Woestenberg15bf2832009-10-26 10:03:32 +010011# see "[PATCH,rs6000] make -mno-spe work as expected" on
12# http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html
Pali Rohárf4b1df52022-12-11 15:14:59 +010013PLATFORM_CPPFLAGS += $(call cc-option,-mno-spe) \
14 $(call cc-option,-mspe=no)
Pali Rohárc89a3b62022-12-19 22:41:52 +010015
Pali Rohár0d6e0c92022-12-19 22:46:22 +010016# No AltiVec or VSX instructions when building u-boot
17PLATFORM_CPPFLAGS += $(call cc-option,-mno-altivec)
18PLATFORM_CPPFLAGS += $(call cc-option,-mno-vsx)
19
Pali Rohárc89a3b62022-12-19 22:41:52 +010020ifdef CONFIG_E6500
21PLATFORM_CPPFLAGS += -mcpu=e6500
22else ifdef CONFIG_E5500
23PLATFORM_CPPFLAGS += -mcpu=e5500
24else ifdef CONFIG_E500MC
25PLATFORM_CPPFLAGS += -mcpu=e500mc
26else
27PLATFORM_CPPFLAGS += -mcpu=8540
28endif