mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-03 17:43:45 +08:00
PowerPC: merge commonly-defined flags
PLATFORM_RELFLAGS += -meabi PLATFORM_CPPFLAGS += -ffixed-r2 were defined in all arch/powerpc/${CPU}/config.mk. This commit moves them to arch/powerpc/config.mk. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
e2ce81696a
commit
de04d64eda
@ -9,8 +9,9 @@ CROSS_COMPILE ?= ppc_8xx-
|
||||
|
||||
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
|
||||
LDFLAGS_FINAL += --gc-sections
|
||||
PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__
|
||||
PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections \
|
||||
-meabi
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__ -ffixed-r2
|
||||
PLATFORM_LDFLAGS += -n
|
||||
|
||||
# Support generic board on PPC
|
||||
|
@ -5,6 +5,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_74xx_7xx -ffixed-r2 -mstring
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_74xx_7xx -mstring
|
||||
|
@ -4,7 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC512X -DCONFIG_E300 \
|
||||
-ffixed-r2 -msoft-float -mcpu=603e
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC512X -DCONFIG_E300 -msoft-float -mcpu=603e
|
||||
|
@ -5,6 +5,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_5xx -ffixed-r2 -mpowerpc -msoft-float
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_5xx -mpowerpc -msoft-float
|
||||
|
@ -5,7 +5,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC5xxx -ffixed-r2 \
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC5xxx \
|
||||
-mstring -mcpu=603e -mmultiple
|
||||
|
@ -5,6 +5,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC824X -ffixed-r2 -mstring -mcpu=603e -msoft-float
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC824X -mstring -mcpu=603e -msoft-float
|
||||
|
@ -5,7 +5,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2 \
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_8260 -DCONFIG_CPM2 \
|
||||
-mstring -mcpu=603e -mmultiple
|
||||
|
@ -4,7 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC83xx -DCONFIG_E300 \
|
||||
-ffixed-r2 -msoft-float
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC83xx -DCONFIG_E300 -msoft-float
|
||||
|
@ -5,13 +5,10 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -ffixed-r2 -Wa,-me500 -msoft-float -mno-string
|
||||
PLATFORM_CPPFLAGS += -Wa,-me500 -msoft-float -mno-string
|
||||
|
||||
# -mspe=yes is needed to have -mno-spe accepted by a buggy GCC;
|
||||
# see "[PATCH,rs6000] make -mno-spe work as expected" on
|
||||
# http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00311.html
|
||||
PF_CPPFLAGS_SPE := $(call cc-option,-mspe=yes) \
|
||||
PLATFORM_CPPFLAGS += $(call cc-option,-mspe=yes) \
|
||||
$(call cc-option,-mno-spe)
|
||||
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_SPE)
|
||||
|
@ -5,7 +5,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -ffixed-r2 -mstring
|
||||
PLATFORM_CPPFLAGS += -maltivec -mabi=altivec -msoft-float
|
||||
PLATFORM_CPPFLAGS += -mstring -maltivec -mabi=altivec -msoft-float
|
||||
|
@ -5,6 +5,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_8xx -ffixed-r2 -mstring -mcpu=860 -msoft-float
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_8xx -mstring -mcpu=860 -msoft-float
|
||||
|
@ -5,8 +5,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -meabi
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
|
||||
|
||||
cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
|
||||
is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
|
||||
|
Loading…
Reference in New Issue
Block a user