Prepare v2023.10
[platform/kernel/u-boot.git] / arch / powerpc / cpu / mpc85xx / config.mk
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # (C) Copyright 2002,2003 Motorola Inc.
4 # Xianghua Xiao, X.Xiao@motorola.com
5
6 PLATFORM_CPPFLAGS += -msoft-float -mno-string
7 PLATFORM_RELFLAGS += -msingle-pic-base -fno-jump-tables
8
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)
15
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
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