Patchwork [meta-oe,2/2] opencv: switch to out-of-tree builds

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

Comments

Koen Kooi - March 17, 2013, 10:33 a.m.
This eliminates a few warnings from the configure step and makes sense in general.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-oe/recipes-support/opencv/opencv_2.4.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
Martin Jansa - March 22, 2013, 9:17 a.m.
On Sun, Mar 17, 2013 at 11:33:33AM +0100, Koen Kooi wrote:
> This eliminates a few warnings from the configure step and makes sense in general.

Both applied, thanks!

> 
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  meta-oe/recipes-support/opencv/opencv_2.4.3.bb | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> 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 2114e77..916c8c5 100644
> --- a/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
> +++ b/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
> @@ -20,6 +20,10 @@ PR = "r2"
>  
>  S = "${WORKDIR}/OpenCV-${PV}"
>  
> +# Do an out-of-tree build
> +OECMAKE_SOURCEPATH = "${S}"
> +OECMAKE_BUILDPATH = "${WORKDIR}/build-${TARGET_ARCH}"
> +
>  EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \
>                   -DBUILD_PYTHON_SUPPORT=ON \
>                   -DWITH_FFMPEG=ON \
> -- 
> 1.8.1.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

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 2114e77..916c8c5 100644
--- a/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
+++ b/meta-oe/recipes-support/opencv/opencv_2.4.3.bb
@@ -20,6 +20,10 @@  PR = "r2"
 
 S = "${WORKDIR}/OpenCV-${PV}"
 
+# Do an out-of-tree build
+OECMAKE_SOURCEPATH = "${S}"
+OECMAKE_BUILDPATH = "${WORKDIR}/build-${TARGET_ARCH}"
+
 EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \
                  -DBUILD_PYTHON_SUPPORT=ON \
                  -DWITH_FFMPEG=ON \