Merge "Do not apply -Wl,--fix-cortex-a8 to Cortex-A9" am: 3027e5fca9 am: 180d60a086 am: cb268e126f

am: 4e148a2cfd

* commit '4e148a2cfdc399976e11f95bfe819c088fb26e7c':
  Do not apply -Wl,--fix-cortex-a8 to Cortex-A9

Change-Id: I1074fc2149e20ca2456826dc632ca8401da0e52e
This commit is contained in:
Dan Willemsen 2016-05-10 23:47:55 +00:00 committed by android-build-merger
commit 7a48f2df3f
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,11 @@ ifneq (,$(filter cortex-a7 cortex-a53 cortex-a53.a57,$(TARGET_$(combo_2nd_arch_p
local_arch_has_lpae := true
arch_variant_ldflags := \
-Wl,--no-fix-cortex-a8
else
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a9)
arch_variant_cflags := -march=armv7-a
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
@ -38,6 +43,7 @@ else
endif
endif
endif
endif
ifeq (true,$(local_arch_has_lpae))
# Fake an ARM compiler flag as these processors support LPAE which GCC/clang