summaryrefslogtreecommitdiff
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-07-31 15:15:14 -0700
committerEric Anholt <eric@anholt.net>2017-08-15 13:23:54 -0700
commitba8533b6ea6a3e0121da4ab73be1dd18580b4d9b (patch)
tree1fb5f4981a76aaf8320f50ebbe950678e3941c6f /Android.common.mk
parentb94ddc181bc514bd32c1d4103aa1c7582a7a60ff (diff)
configure.ac: Introduce HAVE_ARM_ASM/HAVE_AARCH64_ASM and the -D flags.
I've been trying to get away without these conditionals in vc4's NEON code, but it meant compiling extra unused code on x86, and build failing on ARMv6. v2: Use the _arm/_arm64 flags to simplify detection (suggested by Rob), but hide the _arm version under ARCH_ARM_HAVE_NEON to keep from trying to build this stuff for armv5te. Tested-by: Rob Herring <robh@kernel.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 6bd30816bc4..e5416c4e383 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -88,6 +88,10 @@ LOCAL_CFLAGS += \
endif
endif
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
+LOCAL_CFLAGS_arm += -DUSE_ARM_ASM
+endif
+LOCAL_CFLAGS_arm64 += -DUSE_AARCH64_ASM
ifneq ($(LOCAL_IS_HOST_MODULE),true)
LOCAL_CFLAGS += -DHAVE_LIBDRM