summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb
diff options
context:
space:
mode:
authorYogesh Tyagi <yogesh.tyagi@intel.com>2023-07-04 20:46:52 +0530
committerNaveen Saini <naveen.kumar.saini@intel.com>2023-07-13 09:38:58 +0800
commit7515d740e630eff194fc727a0d794200f6f337cf (patch)
treed49353df71d3f5c65b8abe95a031f7d16395e588 /dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb
parent1bf139602b0b338421aa52a66e9e87f89273139f (diff)
downloadmeta-intel-7515d740e630eff194fc727a0d794200f6f337cf.tar.gz
openvino-inference-engine: upgrade 2023.0.0 -> 2023.0.1
* Refresh patches. * Drop Protobuf change which disabled use of static protobuf libs from system. This is not needed anymore as we are now building Protobuf as bundled dependency. Release Notes: https://github.com/openvinotoolkit/openvino/releases/tag/2023.0.1 Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb127
1 files changed, 127 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb
new file mode 100644
index 00000000..050f9e89
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2023.0.1.bb
@@ -0,0 +1,127 @@
1SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit"
2HOMEPAGE = "https://github.com/opencv/dldt"
3DESCRIPTION = "This toolkit allows developers to deploy pre-trained \
4deep learning models through a high-level C++ Inference Engine API \
5integrated with application logic."
6
7SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;branch=releases/2023/0;lfs=0 \
8 git://github.com/openvinotoolkit/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_cpu/thirdparty/onednn;name=mkl;nobranch=1 \
9 git://github.com/oneapi-src/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_gpu/thirdparty/onednn_gpu;name=onednn;nobranch=1 \
10 git://github.com/herumi/xbyak.git;protocol=https;destsuffix=git/thirdparty/xbyak;name=xbyak;branch=master \
11 git://github.com/nlohmann/json.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json;name=json;branch=develop \
12 git://github.com/opencv/ade.git;protocol=https;destsuffix=git/thirdparty/ade;name=ade;nobranch=1 \
13 git://github.com/protocolbuffers/protobuf.git;protocol=https;destsuffix=git/thirdparty/protobuf/protobuf;name=protobuf;branch=3.20.x \
14 file://fix-build.patch \
15 file://cython-cmake.patch \
16 file://7cecc9138b89e1946e3e515727bb69b2ab119806.patch;patchdir=thirdparty/ade \
17 file://fix-build-with-gcc13.patch \
18 file://onednn-fix-build-with-gcc13.patch;patchdir=src/plugins/intel_gpu/thirdparty/onednn_gpu \
19 file://0001-protobuf-allow-target-protoc-to-be-built.patch \
20 "
21
22SRCREV = "fa1c41994f3f84329491de93ce572f1401bc75ae"
23SRCREV_mkl = "1c7bfabf1b26e6fb95fea1613e1d3d2bef1f6b54"
24SRCREV_onednn = "f27dedbfc093f51032a4580198bb80579440dc15"
25SRCREV_xbyak = "740dff2e866f3ae1a70dd42d6e8836847ed95cc2"
26SRCREV_json = "bc889afb4c5bf1c0d8ee29ef35eaaf4c8bef8a5d"
27SRCREV_ade = "58b2595a1a95cc807be8bf6222f266a9a1f393a9"
28SRCREV_protobuf = "fe271ab76f2ad2b2b28c10443865d2af21e27e0e"
29
30LICENSE = "Apache-2.0 & MIT & BSD-3-Clause"
31LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \
32 file://thirdparty/xbyak/COPYRIGHT;md5=3c98edfaa50a86eeaef4c6109e803f16 \
33 file://thirdparty/cnpy/LICENSE;md5=689f10b06d1ca2d4b1057e67b16cd580 \
34 file://thirdparty/json/nlohmann_json/LICENSE.MIT;md5=f969127d7b7ed0a8a63c2bbeae002588 \
35 file://thirdparty/ade/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
36 file://src/plugins/intel_cpu/thirdparty/onednn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \
37 file://src/plugins/intel_gpu/thirdparty/onednn_gpu/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \
38"
39
40inherit cmake python3native pkgconfig qemu
41
42S = "${WORKDIR}/git"
43EXTRA_OECMAKE += " \
44 -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \
45 -DENABLE_OPENCV=OFF \
46 -DENABLE_INTEL_GNA=OFF \
47 -DENABLE_SYSTEM_TBB=ON \
48 -DPYTHON_EXECUTABLE=${PYTHON} \
49 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
50 -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \
51 -DTREAT_WARNING_AS_ERROR=FALSE \
52 -DENABLE_DATA=FALSE \
53 -DENABLE_SYSTEM_PUGIXML=TRUE \
54 -DENABLE_OV_ONNX_FRONTEND=FALSE \
55 -DUSE_BUILD_TYPE_SUBFOLDER=OFF \
56 -DENABLE_FUZZING=OFF \
57 -DENABLE_TBBBIND_2_5=OFF \
58 -DCPACK_GENERATOR=RPM \
59 -DENABLE_SYSTEM_FLATBUFFERS=ON \
60 -DENABLE_SYSTEM_SNAPPY=ON \
61 "
62
63DEPENDS += "\
64 flatbuffers-native \
65 gflags \
66 pugixml \
67 python3-pybind11 \
68 qemu-native \
69 snappy \
70 tbb \
71 zlib \
72 "
73
74COMPATIBLE_HOST = '(x86_64).*-linux'
75COMPATIBLE_HOST:libc-musl = "null"
76
77PACKAGECONFIG ?= "opencl samples"
78PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE, -DENABLE_INTEL_GPU=FALSE, virtual/opencl-icd opencl-headers opencl-clhpp,"
79PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF, python3-cython-native patchelf-native, python3 python3-numpy python3-progress python3-cython"
80PACKAGECONFIG[samples] = "-DENABLE_SAMPLES=ON -DENABLE_COMPILE_TOOL=ON, -DENABLE_SAMPLES=OFF -DENABLE_COMPILE_TOOL=OFF, opencv"
81PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0"
82
83do_configure:prepend() {
84 # Dont set PROJECT_ROOT_DIR
85 sed -i -e 's:\${OpenVINO_SOURCE_DIR}::;' ${S}/src/CMakeLists.txt
86
87 # qemu wrapper that can be used by cmake to run target binaries.
88 qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}"
89 cat > ${WORKDIR}/qemuwrapper << EOF
90#!/bin/sh
91$qemu_binary "\$@"
92EOF
93 chmod +x ${WORKDIR}/qemuwrapper
94}
95
96do_install:append() {
97 rm -rf ${D}${prefix}/install_dependencies
98 rm -rf ${D}${prefix}/setupvars.sh
99
100 sed -i -e 's:^#include.*imp.hpp"$:#include "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/git/src/plugins/intel_cpu/src/nodes/proposal_imp.hpp":g;' ${B}/src/plugins/intel_cpu/cross-compiled/proposal_imp_disp.cpp
101}
102
103# Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR
104# instead of RSS
105SSTATE_SCAN_FILES:append = " *.cmake"
106
107FILES:${PN} += "\
108 ${libdir}/openvino-${PV}/lib*${SOLIBSDEV} \
109 ${libdir}/openvino-${PV}/plugins.xml \
110 ${libdir}/openvino-${PV}/cache.json \
111 "
112
113# Move inference engine samples into a separate package
114PACKAGES =+ "${PN}-samples"
115
116FILES:${PN}-samples = "${datadir}/openvino \
117 ${bindir} \
118 ${libdir}/libformat_reader.a \
119 ${libdir}/libopencv_c_wrapper.a \
120 "
121
122# Package for inference engine python API
123PACKAGES =+ "${PN}-${PYTHON_PN}"
124
125FILES:${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}"
126
127UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+\.\d+\.\d+))$"