mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2025-07-19 21:09:04 +02:00
Merge pull request #2202 from Freescale/backport-2201-to-scarthgap
Some checks failed
Update LICENSE file / update-license (push) Has been cancelled
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:
commit
93ad3d265a
|
@ -302,10 +302,12 @@ EXTRA_OECMAKE:append = " -DBUILD_opencv_cvv=OFF"
|
|||
|
||||
do_install:append() {
|
||||
ln -sf opencv4/opencv2 ${D}${includedir}/opencv2
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'samples', 'true', 'false', d)}; then
|
||||
install -d ${D}${datadir}/OpenCV/samples/data
|
||||
cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data
|
||||
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
|
||||
cp -r share/opencv4/testdata/cv/face/* ${D}${datadir}/opencv4/testdata/cv/face/
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user