mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 02:02:08 +02:00
ARM: merge commonly-defined PLATFORM_RELFLAGS
Before this commit, all arch/arm/cpu/${CPU}/config.mk except ARMv8 had the same option: $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) This commit moves it into arch/arm/config.mk. If the compiler does not support the option, it is ignored by $(call cc-option,...). So this commit gives no harm to ARMv8. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Tom Rini
parent
84acd1e179
commit
bf1af3d872
@@ -18,7 +18,8 @@ endif
|
|||||||
LDFLAGS_FINAL += --gc-sections
|
LDFLAGS_FINAL += --gc-sections
|
||||||
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
|
||||||
-fno-common -ffixed-r9
|
-fno-common -ffixed-r9
|
||||||
PLATFORM_RELFLAGS += $(call cc-option, -msoft-float)
|
PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
|
||||||
|
$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
||||||
|
|
||||||
# Support generic board on ARM
|
# Support generic board on ARM
|
||||||
__HAVE_ARCH_GENERIC_BOARD := y
|
__HAVE_ARCH_GENERIC_BOARD := y
|
||||||
|
@@ -7,13 +7,6 @@
|
|||||||
|
|
||||||
# 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
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_IMX_CONFIG),)
|
ifneq ($(CONFIG_IMX_CONFIG),)
|
||||||
ifdef CONFIG_SPL
|
ifdef CONFIG_SPL
|
||||||
|
@@ -7,11 +7,3 @@
|
|||||||
|
|
||||||
# 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
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,\
|
|
||||||
$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -7,11 +7,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
|
PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,\
|
|
||||||
$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -6,10 +6,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv4
|
PLATFORM_CPPFLAGS += -march=armv4
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -6,13 +6,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv5te
|
PLATFORM_CPPFLAGS += -march=armv5te
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_IMX_CONFIG),)
|
ifneq ($(CONFIG_IMX_CONFIG),)
|
||||||
ifdef CONFIG_SPL
|
ifdef CONFIG_SPL
|
||||||
|
@@ -6,10 +6,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv4
|
PLATFORM_CPPFLAGS += -march=armv4
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -6,10 +6,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv4
|
PLATFORM_CPPFLAGS += -march=armv4
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -10,14 +10,6 @@
|
|||||||
PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
|
PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
|
||||||
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
|
PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
|
||||||
|
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
|
||||||
# SEE README.arm-unaligned-accesses
|
# SEE README.arm-unaligned-accesses
|
||||||
PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
|
PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
|
||||||
PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
|
PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
|
||||||
|
@@ -14,11 +14,3 @@ PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
|
|||||||
|
|
||||||
PLATFORM_LDFLAGS += -EB
|
PLATFORM_LDFLAGS += -EB
|
||||||
USE_PRIVATE_LIBGCC = yes
|
USE_PRIVATE_LIBGCC = yes
|
||||||
|
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# =========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
@@ -7,13 +7,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -mcpu=xscale
|
PLATFORM_CPPFLAGS += -mcpu=xscale
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# ========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# !WARNING!
|
# !WARNING!
|
||||||
|
@@ -7,10 +7,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100
|
PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100
|
||||||
# =========================================================================
|
|
||||||
#
|
|
||||||
# Supply options according to compiler version
|
|
||||||
#
|
|
||||||
# ========================================================================
|
|
||||||
PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
|
||||||
PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
|
|
||||||
|
Reference in New Issue
Block a user