diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb deleted file mode 100644 index 96e59126..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb +++ /dev/null | |||
@@ -1,124 +0,0 @@ | |||
1 | SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit" | ||
2 | HOMEPAGE = "https://github.com/opencv/dldt" | ||
3 | DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ | ||
4 | deep learning models through a high-level C++ Inference Engine API \ | ||
5 | integrated with application logic." | ||
6 | |||
7 | SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=git;branch=releases/2021/3;lfs=0 \ | ||
8 | https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/usb-ma2x8x/firmware_usb-ma2x8x_1642.zip;name=usb_ma2x8x \ | ||
9 | https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/pcie-ma2x8x/firmware_pcie-ma2x8x_1642.zip;name=pcie_ma2x8x \ | ||
10 | git://github.com/openvinotoolkit/oneDNN.git;protocol=https;destsuffix=git/inference-engine/thirdparty/mkl-dnn;name=mkl;nobranch=1 \ | ||
11 | git://github.com/herumi/xbyak.git;protocol=https;destsuffix=git/thirdparty/xbyak;name=xbyak \ | ||
12 | file://0001-inference-engine-use-system-installed-packages.patch \ | ||
13 | file://0002-cldNN-disable-Werror.patch \ | ||
14 | file://0003-inference-engine-installation-fixes.patch \ | ||
15 | file://0001-dont-install-licenses-and-version-file.patch \ | ||
16 | file://0001-plugin_api-fix-build-with-gcc-11.patch \ | ||
17 | " | ||
18 | |||
19 | SRCREV = "c5f7ad383e654dfb4a5ac0805323cf8d43426b3f" | ||
20 | SRCREV_mkl = "d35c3c11f9ff0f5090f9afe16af122cda501134c" | ||
21 | SRCREV_xbyak = "8d1e41b650890080fb77548372b6236bbd4079f9" | ||
22 | |||
23 | SRC_URI[usb_ma2x8x.sha256sum] = "d0f6aaaf71a595963e6013ef59045e20b07324f1a47deaa3f906419d39b2bd5a" | ||
24 | SRC_URI[pcie_ma2x8x.sha256sum] = "18d3cd10cf6cc36ff58001812d3d215c0bbb2de09a8832128592401c8f959358" | ||
25 | |||
26 | LICENSE = "Apache-2.0 & ISSL & MIT" | ||
27 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
28 | file://inference-engine/thirdparty/mkl-dnn/LICENSE;md5=c441291ac5f15bdc6b09b4cc02ece35b \ | ||
29 | file://thirdparty/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa \ | ||
30 | file://inference-engine/thirdparty/clDNN/common/include/OpenCL_CLHPP_License.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
31 | " | ||
32 | LICENSE_${PN}-vpu-firmware = "ISSL" | ||
33 | |||
34 | inherit cmake python3native | ||
35 | |||
36 | S = "${WORKDIR}/git" | ||
37 | |||
38 | EXTRA_OECMAKE += " \ | ||
39 | -DENABLE_OPENCV=0 \ | ||
40 | -DENABLE_PLUGIN_RPATH=0 \ | ||
41 | -DENABLE_GNA=0 \ | ||
42 | -DPYTHON_EXECUTABLE=${PYTHON} \ | ||
43 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
44 | -DTHREADING=TBB -DTBB_DIR=${STAGING_LIBDIR}/cmake/TBB \ | ||
45 | -DENABLE_SAMPLES=1 \ | ||
46 | -DIE_CPACK_IE_DIR=${prefix} \ | ||
47 | -DNGRAPH_UNIT_TEST_ENABLE=FALSE \ | ||
48 | -DNGRAPH_TEST_UTIL_ENABLE=FALSE \ | ||
49 | -DNGRAPH_ONNX_IMPORT_ENABLE=OFF \ | ||
50 | -DNGRAPH_JSON_ENABLE=FALSE \ | ||
51 | -DTREAT_WARNING_AS_ERROR=FALSE \ | ||
52 | -DENABLE_SPEECH_DEMO=FALSE \ | ||
53 | -DENABLE_DATA=FALSE \ | ||
54 | -DUSE_SYSTEM_PUGIXML=TRUE \ | ||
55 | " | ||
56 | |||
57 | DEPENDS += "libusb1 \ | ||
58 | ade \ | ||
59 | opencv \ | ||
60 | pugixml \ | ||
61 | protobuf-native \ | ||
62 | tbb \ | ||
63 | " | ||
64 | |||
65 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
66 | COMPATIBLE_HOST_libc-musl = "null" | ||
67 | |||
68 | PACKAGECONFIG ?= "vpu opencl" | ||
69 | PACKAGECONFIG[opencl] = "-DENABLE_CLDNN=1 -DCLDNN__IOCL_ICD_INCDIRS=${STAGING_INCDIR} -DCLDNN__IOCL_ICD_STLDIRS=${STAGING_LIBDIR} -DCLDNN__IOCL_ICD_SHLDIRS=${STAGING_LIBDIR}, -DENABLE_CLDNN=0, ocl-icd opencl-headers libva, intel-compute-runtime" | ||
70 | PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF, python3-cython-native, python3 python3-numpy python3-opencv python3-progress python3-cython" | ||
71 | PACKAGECONFIG[vpu] = "-DENABLE_VPU=ON -DVPU_FIRMWARE_USB-MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd -DVPU_FIRMWARE_PCIE-MA2X8X_FILE=../mvnc/pcie-ma2x8x.mvcmd,-DENABLE_VPU=OFF,,${PN}-vpu-firmware" | ||
72 | PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" | ||
73 | |||
74 | do_install_append() { | ||
75 | if ${@bb.utils.contains('PACKAGECONFIG', 'vpu', 'true', 'false', d)}; then | ||
76 | install -m0644 ${WORKDIR}/mvnc/usb-ma2x8x.mvcmd ${D}${libdir}/ | ||
77 | install -m0644 ${WORKDIR}/mvnc/pcie-ma2x8x.mvcmd ${D}${libdir}/ | ||
78 | fi | ||
79 | |||
80 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then | ||
81 | install -d ${D}${datadir}/inference_engine | ||
82 | mv ${D}/usr/samples/python ${D}${datadir}/inference_engine/ | ||
83 | |||
84 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
85 | mv ${D}${prefix}/python/${PYTHON_DIR}/openvino ${D}${PYTHON_SITEPACKAGES_DIR}/ | ||
86 | mv ${D}${prefix}/deployment_tools/tools/benchmark_tool ${D}${PYTHON_SITEPACKAGES_DIR}/openvino/ | ||
87 | mv ${D}${prefix}/deployment_tools/tools/cross_check_tool ${D}${PYTHON_SITEPACKAGES_DIR}/openvino/ | ||
88 | |||
89 | rm -rf ${D}${prefix}/python | ||
90 | fi | ||
91 | |||
92 | rm -rf ${D}${prefix}/deployment_tools | ||
93 | |||
94 | # Remove the samples source directory. We install the built samples. | ||
95 | rm -rf ${D}/usr/samples | ||
96 | } | ||
97 | |||
98 | # Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR | ||
99 | # instead of RSS | ||
100 | SSTATE_SCAN_FILES_append = " *.cmake" | ||
101 | |||
102 | FILES_${PN}-dev = "${includedir} \ | ||
103 | ${libdir}/cmake \ | ||
104 | " | ||
105 | |||
106 | FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \ | ||
107 | ${datadir}/openvino \ | ||
108 | ${libdir}/custom_kernels \ | ||
109 | ${libdir}/plugins.xml \ | ||
110 | ${libdir}/cache.json \ | ||
111 | " | ||
112 | |||
113 | # Move inference engine samples into a separate package | ||
114 | PACKAGES =+ "${PN}-samples ${PN}-vpu-firmware" | ||
115 | |||
116 | FILES_${PN}-samples = "${datadir}/inference_engine \ | ||
117 | ${bindir} \ | ||
118 | " | ||
119 | FILES_${PN}-vpu-firmware += "${libdir}/*.mvcmd" | ||
120 | |||
121 | # Package for inference engine python API | ||
122 | PACKAGES =+ "${PN}-${PYTHON_PN}" | ||
123 | |||
124 | FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}/openvino" | ||