summaryrefslogtreecommitdiffstats
path: root/core/combo
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-04-10 16:17:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-10 16:17:52 +0000
commit69bd465b6e14294ce0678e8a18d28eb55abbe2c7 (patch)
treecaee170a0a910d40245565dfa35b19add1604dca /core/combo
parent8c76d1e07a819b0a127ae0df533b627995cf49ff (diff)
parent4da707176bd554eeca183527b9260acb64ca9123 (diff)
downloadbuild-69bd465b6e14294ce0678e8a18d28eb55abbe2c7.zip
build-69bd465b6e14294ce0678e8a18d28eb55abbe2c7.tar.gz
build-69bd465b6e14294ce0678e8a18d28eb55abbe2c7.tar.bz2
Merge "Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver"
Diffstat (limited to 'core/combo')
-rw-r--r--core/combo/arch/arm/armv7-a-neon.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/combo/arch/arm/armv7-a-neon.mk b/core/combo/arch/arm/armv7-a-neon.mk
index d535afc..99f17aa 100644
--- a/core/combo/arch/arm/armv7-a-neon.mk
+++ b/core/combo/arch/arm/armv7-a-neon.mk
@@ -16,14 +16,23 @@ ifneq (,$(filter cortex-a15 krait denver,$(TARGET_$(combo_2nd_arch_prefix)CPU_VA
# Fake an ARM compiler flag as these processors support LPAE which GCC/clang
# don't advertise.
arch_variant_cflags += -D__ARM_FEATURE_LPAE=1
+ arch_variant_ldflags := \
+ -Wl,--no-fix-cortex-a8
else
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a8)
arch_variant_cflags := -mcpu=cortex-a8
+ arch_variant_ldflags := \
+ -Wl,--fix-cortex-a8
else
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a7)
arch_variant_cflags := -mcpu=cortex-a7
+ arch_variant_ldflags := \
+ -Wl,--no-fix-cortex-a8
else
arch_variant_cflags := -march=armv7-a
+ # Generic ARM might be a Cortex A8 -- better safe than sorry
+ arch_variant_ldflags := \
+ -Wl,--fix-cortex-a8
endif
endif
endif
@@ -31,6 +40,3 @@ endif
arch_variant_cflags += \
-mfloat-abi=softfp \
-mfpu=neon
-
-arch_variant_ldflags := \
- -Wl,--fix-cortex-a8