armv7-a-neon.mk revision 453afb242cdce8004ace5c6e4acea0db107142c9
1# Configuration for Linux on ARM.
2# Generating binaries for the ARMv7-a architecture and higher with NEON
3#
4ARCH_ARM_HAVE_ARMV7A            := true
5ARCH_ARM_HAVE_VFP               := true
6ARCH_ARM_HAVE_VFP_D32           := true
7ARCH_ARM_HAVE_NEON              := true
8
9ifneq (,$(filter cortex-a15 krait denver,$(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)))
10	arch_variant_cflags := -mcpu=cortex-a15
11else
12ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a8)
13	arch_variant_cflags := -mcpu=cortex-a8
14else
15ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a7)
16	arch_variant_cflags := -mcpu=cortex-a7
17else
18	arch_variant_cflags := -march=armv7-a
19endif
20endif
21endif
22
23arch_variant_cflags += \
24    -mfloat-abi=softfp \
25    -mfpu=neon
26
27arch_variant_ldflags := \
28	-Wl,--fix-cortex-a8
29