diff options
| author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2016-04-01 23:36:28 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-04-12 11:07:47 +0200 |
| commit | 5abe2dcc531e597d896fb919b9e825d003c35f24 (patch) | |
| tree | 1113fc224c3882e23944ae12e811436c06f2c942 | |
| parent | 730d8884f37b50ce9a8369ade773cec0bba25c83 (diff) | |
| download | meta-openembedded-5abe2dcc531e597d896fb919b9e825d003c35f24.tar.gz | |
opencv: Use pre-downloaded ipp
We should not rely on cmake downloading ipp at configure time.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv_3.1.bb | 12 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch new file mode 100644 index 0000000000..d568018b8d --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 049f931207631aa54af55a2917318d032b2ef3fa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | ||
| 3 | Date: Thu, 31 Mar 2016 00:20:15 +0200 | ||
| 4 | Subject: [PATCH] 3rdparty/ippicv: Use pre-downloaded ipp | ||
| 5 | |||
| 6 | Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | ||
| 7 | --- | ||
| 8 | 3rdparty/ippicv/downloader.cmake | 2 ++ | ||
| 9 | 1 file changed, 2 insertions(+) | ||
| 10 | |||
| 11 | diff --git a/3rdparty/ippicv/downloader.cmake b/3rdparty/ippicv/downloader.cmake | ||
| 12 | index a6016dbe10bc..af4062c8e95e 100644 | ||
| 13 | --- a/3rdparty/ippicv/downloader.cmake | ||
| 14 | +++ b/3rdparty/ippicv/downloader.cmake | ||
| 15 | @@ -31,8 +31,10 @@ function(_icv_downloader) | ||
| 16 | return() # Not supported | ||
| 17 | endif() | ||
| 18 | |||
| 19 | + if(NOT DEFINED OPENCV_ICV_PATH) | ||
| 20 | set(OPENCV_ICV_UNPACK_PATH "${CMAKE_CURRENT_LIST_DIR}/unpack") | ||
| 21 | set(OPENCV_ICV_PATH "${OPENCV_ICV_UNPACK_PATH}${OPENCV_ICV_PACKAGE_SUBDIR}") | ||
| 22 | + endif() | ||
| 23 | |||
| 24 | if(DEFINED OPENCV_ICV_PACKAGE_DOWNLOADED | ||
| 25 | AND OPENCV_ICV_PACKAGE_DOWNLOADED STREQUAL OPENCV_ICV_PACKAGE_HASH | ||
| 26 | -- | ||
| 27 | 2.8.0.rc3 | ||
| 28 | |||
diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb index de6d8d9fe3..63955a862d 100644 --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb | |||
| @@ -14,19 +14,31 @@ DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libw | |||
| 14 | 14 | ||
| 15 | SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a" | 15 | SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a" |
| 16 | SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c" | 16 | SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c" |
| 17 | SRCREV_party3 = "81a676001ca8075ada498583e4166079e5744668" | ||
| 18 | IPP_MD5 = "808b791a6eac9ed78d32a7666804320e" | ||
| 19 | |||
| 17 | SRCREV_FORMAT = "opencv" | 20 | SRCREV_FORMAT = "opencv" |
| 18 | SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \ | 21 | SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \ |
| 19 | git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib \ | 22 | git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib \ |
| 23 | git://github.com/Itseez/opencv_3rdparty.git;branch=ippicv/master_20151201;destsuffix=party3;name=party3 \ | ||
| 24 | file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \ | ||
| 20 | file://fixpkgconfig.patch" | 25 | file://fixpkgconfig.patch" |
| 21 | 26 | ||
| 22 | PV = "3.1+git${SRCPV}" | 27 | PV = "3.1+git${SRCPV}" |
| 23 | 28 | ||
| 24 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |
| 25 | 30 | ||
| 31 | do_unpack_extra() { | ||
| 32 | tar xzf ${WORKDIR}/party3/ippicv/ippicv_linux_20151201.tgz -C ${WORKDIR} | ||
| 33 | } | ||
| 34 | addtask unpack_extra after do_unpack before do_patch | ||
| 35 | |||
| 26 | EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \ | 36 | EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \ |
| 27 | -DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \ | 37 | -DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \ |
| 28 | -DWITH_1394=OFF \ | 38 | -DWITH_1394=OFF \ |
| 29 | -DCMAKE_SKIP_RPATH=ON \ | 39 | -DCMAKE_SKIP_RPATH=ON \ |
| 40 | -DOPENCV_ICV_PACKAGE_DOWNLOADED=${IPP_MD5} \ | ||
| 41 | -DOPENCV_ICV_PATH=${WORKDIR}/ippicv_lnx \ | ||
| 30 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \ | 42 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \ |
| 31 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ | 43 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ |
| 32 | ${@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)} \ | 44 | ${@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)} \ |
