opencv: Only rename ${bindir}/shape if it exists

Its creation depends on PACKAGECONFIG = "samples", which may be
removed in a bbappend.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zoltán Böszörményi
2025-09-09 14:43:14 +02:00
committed by Khem Raj
parent f8498f2699
commit 49c1d504d6

View File

@@ -214,7 +214,9 @@ do_install:append() {
fi fi
done done
# rename shape dir to avoid rootfs conflict with if [ -d ${D}/${bindir}/shape ]; then
# mesa-demos /usr/bin/shape file. # rename shape dir to avoid rootfs conflict with
mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape # mesa-demos /usr/bin/shape file.
mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape
fi
} }