diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2025-04-17 07:52:37 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 07:52:37 -0300 |
commit | 93ad3d265a0a95986f4e47e7001e0b1f1c6edbf1 (patch) | |
tree | 431c5a18d2641fdc0ecca650967a1bc1b1bb4a6d | |
parent | aa1a3c026bab756bb8a5643a810db4ea4139eb8f (diff) | |
parent | 177dc38c198e5a3049ad01d0b0a0dae1030105ed (diff) | |
download | meta-freescale-93ad3d265a0a95986f4e47e7001e0b1f1c6edbf1.tar.gz |
Merge pull request #2202 from Freescale/backport-2201-to-scarthgap
[Backport scarthgap] fix(opencv): do not try to install sample files
-rw-r--r-- | recipes-support/opencv/opencv_4.6.0.imx.bb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-support/opencv/opencv_4.6.0.imx.bb b/recipes-support/opencv/opencv_4.6.0.imx.bb index 6d13d107..3b455534 100644 --- a/recipes-support/opencv/opencv_4.6.0.imx.bb +++ b/recipes-support/opencv/opencv_4.6.0.imx.bb | |||
@@ -302,10 +302,12 @@ EXTRA_OECMAKE:append = " -DBUILD_opencv_cvv=OFF" | |||
302 | 302 | ||
303 | do_install:append() { | 303 | do_install:append() { |
304 | ln -sf opencv4/opencv2 ${D}${includedir}/opencv2 | 304 | ln -sf opencv4/opencv2 ${D}${includedir}/opencv2 |
305 | install -d ${D}${datadir}/OpenCV/samples/data | 305 | if ${@bb.utils.contains('PACKAGECONFIG', 'samples', 'true', 'false', d)}; then |
306 | cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data | 306 | install -d ${D}${datadir}/OpenCV/samples/data |
307 | install -d ${D}${datadir}/OpenCV/samples/bin/ | 307 | cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data |
308 | cp -f bin/example_* ${D}${datadir}/OpenCV/samples/bin/ | 308 | install -d ${D}${datadir}/OpenCV/samples/bin/ |
309 | cp -f bin/example_* ${D}${datadir}/OpenCV/samples/bin/ | ||
310 | fi | ||
309 | if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then | 311 | if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then |
310 | cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/ | 312 | cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/ |
311 | fi | 313 | fi |