1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2002,2003 Motorola Inc.
4 # Xianghua Xiao, X.Xiao@motorola.com
6 PLATFORM_CPPFLAGS += -msoft-float -mno-string
7 PLATFORM_RELFLAGS += -msingle-pic-base -fno-jump-tables
9 # No SPE instruction when building u-boot
10 # (We use all available options to help semi-broken compilers)
11 # see "[PATCH,rs6000] make -mno-spe work as expected" on
12 # http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html
13 PLATFORM_CPPFLAGS += $(call cc-option,-mno-spe) \
14 $(call cc-option,-mspe=no)
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)
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
27 PLATFORM_CPPFLAGS += -mcpu=8540