blob: b6b5d2053aea8be0fd2a44619cdf7e197b0bdf53 [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
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 Yamada05733592013-11-26 10:53:58 +090012PLATFORM_CPPFLAGS += $(call cc-option,-mspe=yes) \
Wolfgang Denk9209ed52011-11-01 20:54:02 +000013 $(call cc-option,-mno-spe)
Pali Rohárc89a3b62022-12-19 22:41:52 +010014
15ifdef CONFIG_E6500
16PLATFORM_CPPFLAGS += -mcpu=e6500
17else ifdef CONFIG_E5500
18PLATFORM_CPPFLAGS += -mcpu=e5500
19else ifdef CONFIG_E500MC
20PLATFORM_CPPFLAGS += -mcpu=e500mc
21else
22PLATFORM_CPPFLAGS += -mcpu=8540
23endif