diff options
| author | Andrej Valek <andrej.v@skyrain.eu> | 2025-04-17 08:56:52 +0200 |
|---|---|---|
| committer | Andrej Valek <andrej.v@skyrain.eu> | 2025-04-17 09:02:07 +0200 |
| commit | d025faa488801bdcf4ea0366f6ed19b07f408d5b (patch) | |
| tree | f504c5d385f8a091f1ead14eda8d75c78ced8adf /recipes-support | |
| parent | b2b2621827a93e4fb7efbd71f0005b91a710edce (diff) | |
| download | meta-freescale-d025faa488801bdcf4ea0366f6ed19b07f408d5b.tar.gz | |
fix(opencv): do not try to install sample files
- don't install sample files if PACKAGECONFIG:samples is disabled
Signed-off-by: Andrej Valek <andrej.v@skyrain.eu>
Diffstat (limited to 'recipes-support')
| -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 da5752d28..43d651135 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 |
