aboutsummaryrefslogtreecommitdiff
path: root/package/opencv3/opencv3.mk
diff options
context:
space:
mode:
authorGravatar Mathieu Maret <mathieu.maret@gmail.com>2018-06-07 10:38:57 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-06-07 15:55:12 +0200
commita17402e42d8c996af239cfdb536e74188d6c6245 (patch)
tree8a48b9d557944237db342345af0cf459b366f527 /package/opencv3/opencv3.mk
parentded50f69c691e4b4a391ee23ec466abaad4bed99 (diff)
downloadbuildroot-a17402e42d8c996af239cfdb536e74188d6c6245.tar.gz
buildroot-a17402e42d8c996af239cfdb536e74188d6c6245.tar.bz2
opencv3: conditionally enable NEON and VFPv3 optimizations
Signed-off-by: Mathieu Maret <mathieu.maret@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/opencv3/opencv3.mk')
-rw-r--r--package/opencv3/opencv3.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk
index 15e4eadfe3..53b771ef25 100644
--- a/package/opencv3/opencv3.mk
+++ b/package/opencv3/opencv3.mk
@@ -99,7 +99,9 @@ OPENCV3_CONF_OPTS += \
# * PowerPC support is turned off since its only effect is altering CFLAGS,
# adding '-mcpu=G3 -mtune=G5' to them, which is already handled by Buildroot.
OPENCV3_CONF_OPTS += \
- -DENABLE_POWERPC=OFF
+ -DENABLE_POWERPC=OFF \
+ -DENABLE_NEON=$(if $(BR2_ARM_CPU_HAS_NEON),ON,OFF) \
+ -DENABLE_VFPV3=$(if $(BR2_ARM_CPU_HAS_VFPV3),ON,OFF)
# Cuda stuff
OPENCV3_CONF_OPTS += \