Patchwork [meta-oe,1/2] opencv: enable SSE1/2/3 and SSSE3 when finding '-msse3' in TARGET_CC_ARCH

login
register
mail settings
Submitter Koen Kooi
Date March 17, 2013, 10:33 a.m.
Message ID <1363516413-32548-1-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/46291/
State Accepted, archived
Commit 193c4ad89cf7ab43ff03f849bf47f2cbad99bf3b
Headers show

Comments

Koen Kooi - March 17, 2013, 10:33 a.m.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-oe/recipes-support/opencv/opencv_2.4.3.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-support/opencv/opencv_2.4.3.bb b/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
index 77d75da..2114e77 100644
--- a/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
+++ b/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
@@ -16,7 +16,7 @@  SRC_URI = "${SOURCEFORGE_MIRROR}/opencvlibrary/opencv-unix/${PV}/OpenCV-${PV}.ta
 SRC_URI[md5sum] = "c0a5af4ff9d0d540684c0bf00ef35dbe"
 SRC_URI[sha256sum] = "f8fbe985978d4eae73e8c3b526ed40a37d4761d2029a5b035233f58146f6f59b"
 
-PR = "r1"
+PR = "r2"
 
 S = "${WORKDIR}/OpenCV-${PV}"
 
@@ -27,6 +27,7 @@  EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}
                  -DWITH_V4L=ON \
                  -DWITH_GTK=ON \
                  -DCMAKE_SKIP_RPATH=ON \
+                 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
                 "
 
 inherit distutils-base pkgconfig cmake