diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2025-09-27 04:47:42 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-09-27 16:18:16 -0700 |
commit | 91e428d4cd5a1c0de7d2ca4826705eb5eee7ec29 (patch) | |
tree | 37a546013adc3679624b2448dcd1e20a3c9f1ad2 | |
parent | 2f22ec651dfd143f915b1f139a25d382299af2bd (diff) | |
download | meta-openembedded-91e428d4cd5a1c0de7d2ca4826705eb5eee7ec29.tar.gz |
opencv: Support building for native
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/opencv/opencv_4.12.0.bb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb index d1ab87b06f..27499caa92 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb | |||
@@ -200,11 +200,6 @@ do_install:append() { | |||
200 | mv ${D}/usr/lib/* ${D}/${libdir}/ | 200 | mv ${D}/usr/lib/* ${D}/${libdir}/ |
201 | rm -rf ${D}/usr/lib | 201 | rm -rf ${D}/usr/lib |
202 | fi | 202 | fi |
203 | # remove build host path to improve reproducibility | ||
204 | if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then | ||
205 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
206 | -i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake | ||
207 | fi | ||
208 | # remove setup_vars_opencv4.sh as its content is confusing and useless | 203 | # remove setup_vars_opencv4.sh as its content is confusing and useless |
209 | if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then | 204 | if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then |
210 | rm -rf ${D}${bindir}/setup_vars_opencv4.sh | 205 | rm -rf ${D}${bindir}/setup_vars_opencv4.sh |
@@ -222,3 +217,13 @@ do_install:append() { | |||
222 | mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape | 217 | mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape |
223 | fi | 218 | fi |
224 | } | 219 | } |
220 | |||
221 | do_install:append:class-target() { | ||
222 | # remove build host path to improve reproducibility | ||
223 | if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then | ||
224 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
225 | -i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake | ||
226 | fi | ||
227 | } | ||
228 | |||
229 | BBCLASSEXTEND = "native" | ||