mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 15:16:28 +00:00
opencv: Support building for native
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
parent
fe59a35289
commit
7e87aedc0c
@ -205,11 +205,6 @@ do_install:append() {
|
||||
mv ${D}/usr/lib/* ${D}/${libdir}/
|
||||
rm -rf ${D}/usr/lib
|
||||
fi
|
||||
# remove build host path to improve reproducibility
|
||||
if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then
|
||||
sed -e 's@${STAGING_DIR_HOST}@@g' \
|
||||
-i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake
|
||||
fi
|
||||
# remove setup_vars_opencv4.sh as its content is confusing and useless
|
||||
if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then
|
||||
rm -rf ${D}${bindir}/setup_vars_opencv4.sh
|
||||
@ -221,3 +216,13 @@ do_install:append() {
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
# remove build host path to improve reproducibility
|
||||
if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then
|
||||
sed -e 's@${STAGING_DIR_HOST}@@g' \
|
||||
-i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake
|
||||
fi
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user