Skip to content

Commit

Permalink
Add cortex-a9 to armv7-a-neon, allow specifying FPU.
Browse files Browse the repository at this point in the history
Change-Id: I2527e8971cae62ddb35339ea0f5627ea46ee8239
  • Loading branch information
MWisBest authored and andi34 committed Sep 17, 2016
1 parent 2801151 commit ab5ece9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions core/combo/arch/arm/armv7-a-neon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ ifneq (,$(filter cortex-a15 krait denver,$(TARGET_$(combo_2nd_arch_prefix)CPU_VA
arch_variant_ldflags := \
-Wl,--no-fix-cortex-a8
else
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a9)
arch_variant_cflags := -mcpu=cortex-a9
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 := \
Expand All @@ -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
Expand All @@ -50,5 +56,12 @@ endif
local_arch_has_lpae :=

arch_variant_cflags += \
-mfloat-abi=softfp \
-mfpu=neon
-mfloat-abi=softfp

ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)FPU_VARIANT)),)
arch_variant_cflags += \
-mfpu=neon
else
arch_variant_cflags += \
-mfpu=$(TARGET_$(combo_2nd_arch_prefix)FPU_VARIANT)
endif

0 comments on commit ab5ece9

Please sign in to comment.