Merge pull request #2202 from Freescale/backport-2201-to-scarthgap
Some checks failed
Update LICENSE file / update-license (push) Has been cancelled

[Backport scarthgap] fix(opencv): do not try to install sample files
This commit is contained in:
Otavio Salvador 2025-04-17 07:52:37 -03:00 committed by GitHub
commit 93ad3d265a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,10 +302,12 @@ EXTRA_OECMAKE:append = " -DBUILD_opencv_cvv=OFF"
do_install:append() { do_install:append() {
ln -sf opencv4/opencv2 ${D}${includedir}/opencv2 ln -sf opencv4/opencv2 ${D}${includedir}/opencv2
install -d ${D}${datadir}/OpenCV/samples/data if ${@bb.utils.contains('PACKAGECONFIG', 'samples', 'true', 'false', d)}; then
cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data install -d ${D}${datadir}/OpenCV/samples/data
install -d ${D}${datadir}/OpenCV/samples/bin/ cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data
cp -f bin/example_* ${D}${datadir}/OpenCV/samples/bin/ install -d ${D}${datadir}/OpenCV/samples/bin/
cp -f bin/example_* ${D}${datadir}/OpenCV/samples/bin/
fi
if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then if ${@bb.utils.contains('PACKAGECONFIG', 'tests-imx', 'true', 'false', d)}; then
cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/ cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/
fi fi