mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-17 15:55:59 +01:00
opencv: Support building for native
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
2f22ec651d
commit
91e428d4cd
|
|
@ -200,11 +200,6 @@ do_install:append() {
|
||||||
mv ${D}/usr/lib/* ${D}/${libdir}/
|
mv ${D}/usr/lib/* ${D}/${libdir}/
|
||||||
rm -rf ${D}/usr/lib
|
rm -rf ${D}/usr/lib
|
||||||
fi
|
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
|
# remove setup_vars_opencv4.sh as its content is confusing and useless
|
||||||
if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then
|
if [ -f ${D}${bindir}/setup_vars_opencv4.sh ]; then
|
||||||
rm -rf ${D}${bindir}/setup_vars_opencv4.sh
|
rm -rf ${D}${bindir}/setup_vars_opencv4.sh
|
||||||
|
|
@ -222,3 +217,13 @@ do_install:append() {
|
||||||
mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape
|
mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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…
Reference in New Issue
Block a user