mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
opencv: improve reproducibility
Remove the build host info to improve reproducibility, otherwise there
comes below detailed build host info when run below command on target.
# python3 /usr/share/opencv4/samples/python/opencv_version.py --build
[snip]
Extra modules:
Location (extra): /buildarea1/master-wr/build/User/customized_next/build/tmp/work/corei7-64-wrs-linux/opencv/4.3.0-r0/contrib/modules
[snip]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -199,6 +199,13 @@ RDEPENDS_python3-opencv = "python3-core python3-numpy"
|
||||
|
||||
RDEPENDS_${PN}-apps = "bash"
|
||||
|
||||
do_compile_prepend() {
|
||||
# remove the build host info to improve reproducibility
|
||||
if [ -f ${WORKDIR}/build/modules/core/version_string.inc ]; then
|
||||
sed -i "s#${WORKDIR}#/workdir#g" ${WORKDIR}/build/modules/core/version_string.inc
|
||||
fi
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
# Move Python files into correct library folder (for multilib build)
|
||||
if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then
|
||||
|
||||
Reference in New Issue
Block a user