Skip to content
Snippets Groups Projects
Commit 3102274d authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Albert ARIBAUD
Browse files

ARM: refactor compiler options in config.mk


Every ARM cpu config.mk (arch/arm/cpu/{CPUDIR}/config.mk) defines:

PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float

So, this patch moves the common compiler options to arch/arm/config.mk.

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent 7ba69b7d
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,8 @@ endif ...@@ -16,7 +16,8 @@ endif
endif endif
LDFLAGS_FINAL += --gc-sections LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
-fno-common -ffixed-r8 -msoft-float
# Support generic board on ARM # Support generic board on ARM
__HAVE_ARCH_GENERIC_BOARD := y __HAVE_ARCH_GENERIC_BOARD := y
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# #
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
# Make ARMv5 to allow more compilers to work, even though its v6. # Make ARMv5 to allow more compilers to work, even though its v6.
PLATFORM_CPPFLAGS += -march=armv5 PLATFORM_CPPFLAGS += -march=armv5
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# #
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
# Make ARMv5 to allow more compilers to work, even though its v6. # Make ARMv5 to allow more compilers to work, even though its v6.
PLATFORM_CPPFLAGS += -march=armv5t PLATFORM_CPPFLAGS += -march=armv5t
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
# ========================================================================= # =========================================================================
# #
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 PLATFORM_CPPFLAGS += -march=armv4
# ========================================================================= # =========================================================================
# #
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 PLATFORM_CPPFLAGS += -march=armv4
# ========================================================================= # =========================================================================
# #
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv5te PLATFORM_CPPFLAGS += -march=armv5te
# ========================================================================= # =========================================================================
# #
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 PLATFORM_CPPFLAGS += -march=armv4
# ========================================================================= # =========================================================================
# #
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 PLATFORM_CPPFLAGS += -march=armv4
# ========================================================================= # =========================================================================
# #
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# #
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
# If armv7-a is not supported by GCC fall-back to armv5, which is # If armv7-a is not supported by GCC fall-back to armv5, which is
# supported by more tool-chains # supported by more tool-chains
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# #
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
# Make ARMv5 to allow more compilers to work, even though its v7a. # Make ARMv5 to allow more compilers to work, even though its v7a.
PLATFORM_CPPFLAGS += -march=armv5 PLATFORM_CPPFLAGS += -march=armv5
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
BIG_ENDIAN = y BIG_ENDIAN = y
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian PLATFORM_RELFLAGS += -mbig-endian
PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100 PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -mcpu=xscale PLATFORM_CPPFLAGS += -mcpu=xscale
# ========================================================================= # =========================================================================
# #
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100 PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100
# ========================================================================= # =========================================================================
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment