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
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

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