summaryrefslogtreecommitdiffstats
path: root/package/opencv
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2015-06-25 21:59:52 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-26 20:46:01 +0200
commit7a76c358fae668db53de13e9ace6f90e03ef3d3a (patch)
tree22569408cdd4440800b1ce553ddc6dd4f4b2c24a /package/opencv
parentc96fb31aa1fa1cd0ee7e4546c11d0a18a3bca044 (diff)
downloadbuildroot-7a76c358fae668db53de13e9ace6f90e03ef3d3a.tar.gz
buildroot-7a76c358fae668db53de13e9ace6f90e03ef3d3a.zip
package/opencv: add openmp support
Note that this situation is not ideal because it only add openmp support to the Buildroot toolchain, not the external ones; but a couple of packages already are in this situation. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/opencv')
-rw-r--r--package/opencv/opencv.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/opencv/opencv.mk b/package/opencv/opencv.mk
index a43de0c621..633c2bf68e 100644
--- a/package/opencv/opencv.mk
+++ b/package/opencv/opencv.mk
@@ -250,6 +250,8 @@ else
OPENCV_CONF_OPTS += -DWITH_JPEG=OFF
endif
+OPENCV_CONF_OPTS += -DWITH_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF)
+
ifeq ($(BR2_PACKAGE_OPENCV_WITH_PNG),y)
OPENCV_CONF_OPTS += -DWITH_PNG=ON
OPENCV_DEPENDENCIES += libpng
OpenPOWER on IntegriCloud