All of lore.kernel.org
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 11/22] opencv: support machines based on oe-core tune-corei7.inc
Date: Sat,  9 Jan 2016 16:59:34 -0800	[thread overview]
Message-ID: <95e274a63d02e03dd9156c7d9d60ffb14b381e0d.1452386603.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1452386602.git.akuster808@gmail.com>
In-Reply-To: <cover.1452386602.git.akuster808@gmail.com>

From: Andre McCurdy <armccurdy@gmail.com>

oe-core tune-corei7.inc enables -msse4.2 (rather than -msse3, which is
only enabled by tune-core2.inc). Add test for -msse4.2 to ensure that
SSE is enabled for machines based on tune-corei7.inc (also add a test
for -msse4.1 for completeness).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta-oe/recipes-support/opencv/opencv_2.4.bb | 2 ++
 meta-oe/recipes-support/opencv/opencv_3.0.bb | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/meta-oe/recipes-support/opencv/opencv_2.4.bb b/meta-oe/recipes-support/opencv/opencv_2.4.bb
index 508655e..a74853c 100644
--- a/meta-oe/recipes-support/opencv/opencv_2.4.bb
+++ b/meta-oe/recipes-support/opencv/opencv_2.4.bb
@@ -28,6 +28,8 @@ EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}
                  -DWITH_1394=OFF \
                  -DCMAKE_SKIP_RPATH=ON \
                  ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
+                 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \
+                 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \
                  ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
                  ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
 "
diff --git a/meta-oe/recipes-support/opencv/opencv_3.0.bb b/meta-oe/recipes-support/opencv/opencv_3.0.bb
index 8ffe1cf..1948a16 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.0.bb
+++ b/meta-oe/recipes-support/opencv/opencv_3.0.bb
@@ -27,6 +27,8 @@ EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DI
                  -DWITH_1394=OFF \
                  -DCMAKE_SKIP_RPATH=ON \
                  ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
+                 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \
+                 ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \
                  ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
                  ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
 "
-- 
1.9.1



  parent reply	other threads:[~2016-01-10  1:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-10  0:59 [PATCH 00/22] Jethro-next pull request 2016-2 Armin Kuster
2016-01-10  0:59 ` [PATCH 01/22] edac-utils: add patches for initscript Armin Kuster
2016-01-10  0:59 ` [PATCH 02/22] kexec-tools-klibc: add explicit SRC_URI Armin Kuster
2016-01-10  0:59 ` [PATCH 03/22] VLC: PACKAGECONFIG for new dependency on libvncserver Armin Kuster
2016-01-10  0:59 ` [PATCH 04/22] VLC: depend on jpeg rather than libjpeg-turbo Armin Kuster
2016-01-10  0:59 ` [PATCH 05/22] strongswan: add additional PACKAGECONFIG flags Armin Kuster
2016-01-10  0:59 ` [PATCH 06/22] strongswan: add configure patch fix for systemd Armin Kuster
2016-01-10  0:59 ` [PATCH 07/22] strongswan: install strongswan-swanctl systemd service by default Armin Kuster
2016-01-10  0:59 ` [PATCH 08/22] mpg123: add textrel to INSANE_SKIP Armin Kuster
2016-01-10  0:59 ` [PATCH 09/22] opencv: sort PACKAGECONFIG options Armin Kuster
2016-01-10  0:59 ` [PATCH 10/22] opencv: limit ARM_INSTRUCTION_SET = "arm" over-ride to armv4/armv5 Armin Kuster
2016-01-10  0:59 ` Armin Kuster [this message]
2016-01-10  0:59 ` [PATCH 12/22] iperf3: fix build-deps qa warning Armin Kuster
2016-01-10  0:59 ` [PATCH 13/22] samba: Fix typo in PACKAGECONFIG for "acl" and "aio" Armin Kuster
2016-01-10  0:59 ` [PATCH 14/22] contrib: ensure that oe-stylize.py works with python versions < 3.0 Armin Kuster
2016-01-10  0:59 ` [PATCH 15/22] contrib: add missing common OE variables Armin Kuster
2016-01-10  0:59 ` [PATCH 16/22] contrib: print oldline within single quotes Armin Kuster
2016-01-10  0:59 ` [PATCH 17/22] iscsitarget: resolve build error if CONFIG_IPV6 config is not enabled Armin Kuster
2016-01-10  0:59 ` [PATCH 18/22] polkit-gnome: remove unrecognized configure options Armin Kuster
2016-01-10  0:59 ` [PATCH 19/22] samba: fix typo distinguishing between plain sysv init and lsb init Armin Kuster
2016-01-10  0:59 ` [PATCH 20/22] gnome-desktop: Fix QA issue Armin Kuster
2016-01-10  0:59 ` [PATCH 21/22] fltk: fix build issue Armin Kuster
2016-01-10  0:59 ` [PATCH 22/22] fltk: Fix license warning Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95e274a63d02e03dd9156c7d9d60ffb14b381e0d.1452386603.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.