diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv')
16 files changed, 383 insertions, 933 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-yocto-specific-tweaks-to-the-build-process.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-yocto-specific-tweaks-to-the-build-process.patch new file mode 100644 index 00000000..7f5b46c6 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-yocto-specific-tweaks-to-the-build-process.patch | |||
@@ -0,0 +1,86 @@ | |||
1 | From e4edbdae9a2dbfec6fd0706bdfff8abdfe3363fc Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 29 Nov 2023 12:42:57 +0530 | ||
4 | Subject: [PATCH] cmake: yocto specific tweaks to the build process | ||
5 | |||
6 | * Dont try to detect glibc version as that doesn't work when cross compiling. | ||
7 | * Dont try to detect CXX11_ABI | ||
8 | * Install sample binaries as well. | ||
9 | * Dont try to write triggers for CPack. We package ourselves. | ||
10 | * Fix the installation path for Python modules when baselib = lib64. | ||
11 | |||
12 | Upstream-Status: Inappropriate | ||
13 | |||
14 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
15 | --- | ||
16 | cmake/developer_package/packaging/rpm/rpm.cmake | 2 +- | ||
17 | cmake/developer_package/target_flags.cmake | 4 ++-- | ||
18 | samples/cpp/CMakeLists.txt | 6 +++--- | ||
19 | src/bindings/python/CMakeLists.txt | 2 +- | ||
20 | 4 files changed, 7 insertions(+), 7 deletions(-) | ||
21 | |||
22 | diff --git a/cmake/developer_package/packaging/rpm/rpm.cmake b/cmake/developer_package/packaging/rpm/rpm.cmake | ||
23 | index 99f11730983..1a1f61fcd3d 100644 | ||
24 | --- a/cmake/developer_package/packaging/rpm/rpm.cmake | ||
25 | +++ b/cmake/developer_package/packaging/rpm/rpm.cmake | ||
26 | @@ -156,7 +156,7 @@ ov_rpm_specific_settings() | ||
27 | # needed to add triggers for packages with libraries | ||
28 | set(def_triggers "${OpenVINO_BINARY_DIR}/_CPack_Packages/triggers") | ||
29 | set(triggers_content "# /bin/sh -p\n/sbin/ldconfig\n") | ||
30 | -file(WRITE "${def_triggers}" "${triggers_content}") | ||
31 | +#file(WRITE "${def_triggers}" "${triggers_content}") | ||
32 | |||
33 | # | ||
34 | # Functions helpful for packaging your modules with RPM cpack | ||
35 | diff --git a/cmake/developer_package/target_flags.cmake b/cmake/developer_package/target_flags.cmake | ||
36 | index d047a1aebd9..4e8ca68c60f 100644 | ||
37 | --- a/cmake/developer_package/target_flags.cmake | ||
38 | +++ b/cmake/developer_package/target_flags.cmake | ||
39 | @@ -149,7 +149,7 @@ function(ov_glibc_version) | ||
40 | endif() | ||
41 | endfunction() | ||
42 | |||
43 | -ov_glibc_version() | ||
44 | +#ov_glibc_version() | ||
45 | |||
46 | # | ||
47 | # Detects default value for _GLIBCXX_USE_CXX11_ABI for current compiler | ||
48 | @@ -160,4 +160,4 @@ macro(ov_get_glibcxx_use_cxx11_abi) | ||
49 | endif() | ||
50 | endmacro() | ||
51 | |||
52 | -ov_get_glibcxx_use_cxx11_abi() | ||
53 | +#ov_get_glibcxx_use_cxx11_abi() | ||
54 | diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt | ||
55 | index 4d33bff944e..3e7f1458578 100644 | ||
56 | --- a/samples/cpp/CMakeLists.txt | ||
57 | +++ b/samples/cpp/CMakeLists.txt | ||
58 | @@ -206,9 +206,9 @@ macro(ov_add_sample) | ||
59 | target_link_libraries(${SAMPLE_NAME} PRIVATE ${ov_link_libraries} Threads::Threads ${SAMPLE_DEPENDENCIES}) | ||
60 | |||
61 | install(TARGETS ${SAMPLE_NAME} | ||
62 | - RUNTIME DESTINATION samples_bin/ | ||
63 | - COMPONENT samples_bin | ||
64 | - EXCLUDE_FROM_ALL) | ||
65 | + DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
66 | + COMPONENT samples_bin) | ||
67 | + | ||
68 | |||
69 | # create global target with all samples / demo apps | ||
70 | if(NOT TARGET ov_samples) | ||
71 | diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt | ||
72 | index 6cf43ec3fed..d539b9d003f 100644 | ||
73 | --- a/src/bindings/python/CMakeLists.txt | ||
74 | +++ b/src/bindings/python/CMakeLists.txt | ||
75 | @@ -320,7 +320,7 @@ if(ENABLE_PYTHON_PACKAGING) | ||
76 | # install OpenVINO Python API | ||
77 | |||
78 | set(python_package_prefix "${CMAKE_CURRENT_BINARY_DIR}/install_${pyversion}") | ||
79 | - set(install_lib "${python_package_prefix}/lib/${python_versioned_folder}/${ov_site_packages}") | ||
80 | + set(install_lib "${python_package_prefix}/${CMAKE_INSTALL_LIBDIR}/${python_versioned_folder}/${ov_site_packages}") | ||
81 | set(openvino_meta_info_subdir "openvino-${OpenVINO_VERSION}-py${python_xy}.egg-info") | ||
82 | set(openvino_meta_info_file "${install_lib}/${openvino_meta_info_subdir}/PKG-INFO") | ||
83 | |||
84 | -- | ||
85 | 2.34.1 | ||
86 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-dont-install-licenses-and-version-file.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-dont-install-licenses-and-version-file.patch deleted file mode 100644 index 185a475b..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-dont-install-licenses-and-version-file.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From a7ee6a27135fef24a398690d9280aca79315fa25 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Tue, 9 Jun 2020 11:35:59 +0800 | ||
4 | Subject: [PATCH] don't install licenses and version | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
9 | --- | ||
10 | CMakeLists.txt | 13 ++----------- | ||
11 | 1 file changed, 2 insertions(+), 11 deletions(-) | ||
12 | |||
13 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
14 | index c347cb465d..9f57a5ed9c 100644 | ||
15 | --- a/CMakeLists.txt | ||
16 | +++ b/CMakeLists.txt | ||
17 | @@ -641,7 +641,7 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE) | ||
18 | install(EXPORT ngraphTargets | ||
19 | FILE ngraphTargets.cmake | ||
20 | NAMESPACE ngraph:: | ||
21 | - DESTINATION ${NGRAPH_COMPONENT_PREFIX}cmake | ||
22 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph | ||
23 | COMPONENT ngraph) | ||
24 | |||
25 | configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/share/ngraphConfig.cmake.in | ||
26 | @@ -654,15 +654,6 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE) | ||
27 | |||
28 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ngraphConfig.cmake | ||
29 | ${CMAKE_CURRENT_BINARY_DIR}/ngraphConfigVersion.cmake | ||
30 | - DESTINATION ${NGRAPH_COMPONENT_PREFIX}cmake | ||
31 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph | ||
32 | COMPONENT ngraph) | ||
33 | endif() | ||
34 | - | ||
35 | -install(DIRECTORY | ||
36 | - ${CMAKE_CURRENT_SOURCE_DIR}/licenses | ||
37 | - DESTINATION "${NGRAPH_COMPONENT_PREFIX}." | ||
38 | - COMPONENT ngraph | ||
39 | -) | ||
40 | - | ||
41 | -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION "${NGRAPH_COMPONENT_PREFIX}." COMPONENT ngraph) | ||
42 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION "${NGRAPH_COMPONENT_PREFIX}." COMPONENT ngraph) | ||
43 | -- | ||
44 | 2.25.4 | ||
45 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch deleted file mode 100644 index d1379de5..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch +++ /dev/null | |||
@@ -1,206 +0,0 @@ | |||
1 | From e7730e68795c8ed0b9e1772ddc21ec931da462d0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:43:55 +0800 | ||
4 | Subject: [PATCH 1/5] inference-engine: use system installed packages | ||
5 | |||
6 | Use installed versions of pugixml, ade, protobuf and tbb. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
11 | --- | ||
12 | cmake/dependencies.cmake | 17 -------------- | ||
13 | inference-engine/cmake/ie_parallel.cmake | 10 ++------- | ||
14 | .../src/inference_engine/CMakeLists.txt | 22 +------------------ | ||
15 | .../src/legacy_api/CMakeLists.txt | 3 +-- | ||
16 | .../src/vpu/graph_transformer/CMakeLists.txt | 1 - | ||
17 | .../common_test_utils/CMakeLists.txt | 3 +-- | ||
18 | .../tests_deprecated/helpers/CMakeLists.txt | 1 - | ||
19 | inference-engine/thirdparty/CMakeLists.txt | 11 +--------- | ||
20 | 8 files changed, 6 insertions(+), 62 deletions(-) | ||
21 | |||
22 | diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake | ||
23 | index 2a5a74db..9cc9a6c9 100644 | ||
24 | --- a/cmake/dependencies.cmake | ||
25 | +++ b/cmake/dependencies.cmake | ||
26 | @@ -13,25 +13,8 @@ if(CMAKE_CROSSCOMPILING) | ||
27 | |||
28 | set(protoc_version "3.7.1") | ||
29 | if(CMAKE_HOST_SYSTEM_NAME MATCHES Linux) | ||
30 | - RESOLVE_DEPENDENCY(SYSTEM_PROTOC_ROOT | ||
31 | - ARCHIVE_LIN "protoc-${protoc_version}-linux-x86_64.tar.gz" | ||
32 | - TARGET_PATH "${TEMP}/protoc-${protoc_version}-linux-x86_64") | ||
33 | - debug_message(STATUS "host protoc-${protoc_version} root path = " ${SYSTEM_PROTOC_ROOT}) | ||
34 | else() | ||
35 | message(FATAL_ERROR "Unsupported host system (${CMAKE_HOST_SYSTEM_NAME}) and arch (${CMAKE_HOST_SYSTEM_PROCESSOR}) for cross-compilation") | ||
36 | endif() | ||
37 | |||
38 | - reset_deps_cache(SYSTEM_PROTOC) | ||
39 | - | ||
40 | - message("${SYSTEM_PROTOC_ROOT}/bin") | ||
41 | - find_program( | ||
42 | - SYSTEM_PROTOC | ||
43 | - NAMES protoc | ||
44 | - PATHS "${SYSTEM_PROTOC_ROOT}/bin" | ||
45 | - NO_DEFAULT_PATH) | ||
46 | - if(NOT SYSTEM_PROTOC) | ||
47 | - message(FATAL_ERROR "[ONNX IMPORTER] Missing host protoc binary") | ||
48 | - endif() | ||
49 | - | ||
50 | - update_deps_cache(SYSTEM_PROTOC "${SYSTEM_PROTOC}" "Path to host protoc for ONNX Importer") | ||
51 | endif() | ||
52 | diff --git a/inference-engine/cmake/ie_parallel.cmake b/inference-engine/cmake/ie_parallel.cmake | ||
53 | index 0f3c41e0..b3b2dfda 100644 | ||
54 | --- a/inference-engine/cmake/ie_parallel.cmake | ||
55 | +++ b/inference-engine/cmake/ie_parallel.cmake | ||
56 | @@ -48,14 +48,8 @@ function(set_ie_threading_interface_for TARGET_NAME) | ||
57 | set(IE_THREAD_DEFINE "IE_THREAD_SEQ") | ||
58 | |||
59 | if (THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") | ||
60 | - find_package(TBB COMPONENTS tbb tbbmalloc) | ||
61 | - if (TBB_FOUND) | ||
62 | - set(IE_THREAD_DEFINE "IE_THREAD_TBB") | ||
63 | - ie_target_link_libraries(${TARGET_NAME} ${LINK_TYPE} ${TBB_IMPORTED_TARGETS}) | ||
64 | - else () | ||
65 | - ext_message(WARNING "TBB was not found by the configured TBB_DIR path. \ | ||
66 | - SEQ method will be used for ${TARGET_NAME}") | ||
67 | - endif () | ||
68 | + set(IE_THREAD_DEFINE "IE_THREAD_TBB") | ||
69 | + target_link_libraries(${TARGET_NAME} INTERFACE tbb tbbmalloc) | ||
70 | elseif (THREADING STREQUAL "OMP") | ||
71 | if (WIN32) | ||
72 | set(omp_lib_name libiomp5md) | ||
73 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
74 | index c8cd4b27..d98ba55d 100644 | ||
75 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
76 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
77 | @@ -117,8 +117,7 @@ add_library(${TARGET_NAME}_obj OBJECT | ||
78 | |||
79 | target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API) | ||
80 | |||
81 | -target_include_directories(${TARGET_NAME}_obj SYSTEM PRIVATE $<TARGET_PROPERTY:ngraph::ngraph,INTERFACE_INCLUDE_DIRECTORIES> | ||
82 | - $<TARGET_PROPERTY:pugixml,INTERFACE_INCLUDE_DIRECTORIES>) | ||
83 | +target_include_directories(${TARGET_NAME}_obj SYSTEM PRIVATE $<TARGET_PROPERTY:ngraph::ngraph,INTERFACE_INCLUDE_DIRECTORIES>) | ||
84 | |||
85 | target_include_directories(${TARGET_NAME}_obj PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
86 | $<TARGET_PROPERTY:${TARGET_NAME}_plugin_api,INTERFACE_INCLUDE_DIRECTORIES>) | ||
87 | @@ -257,25 +256,6 @@ list(APPEND core_components ngraph) | ||
88 | if(THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") | ||
89 | ie_cpack_add_component(tbb REQUIRED) | ||
90 | list(APPEND core_components tbb) | ||
91 | - | ||
92 | - install(DIRECTORY "${TBB}/include" | ||
93 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
94 | - COMPONENT tbb) | ||
95 | - install(DIRECTORY "${TBB}/lib" | ||
96 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
97 | - COMPONENT tbb) | ||
98 | - if(EXISTS "${TBB}/bin") | ||
99 | - install(DIRECTORY "${TBB}/bin" | ||
100 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
101 | - COMPONENT tbb) | ||
102 | - endif() | ||
103 | - install(FILES "${TBB}/LICENSE" | ||
104 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
105 | - COMPONENT tbb) | ||
106 | - install(FILES "${TBB}/cmake/TBBConfig.cmake" | ||
107 | - "${TBB}/cmake/TBBConfigVersion.cmake" | ||
108 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb/cmake | ||
109 | - COMPONENT tbb) | ||
110 | endif() | ||
111 | |||
112 | ie_cpack_add_component(core REQUIRED DEPENDS ${core_components}) | ||
113 | diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt | ||
114 | index d54c5906..90920ab3 100644 | ||
115 | --- a/inference-engine/src/legacy_api/CMakeLists.txt | ||
116 | +++ b/inference-engine/src/legacy_api/CMakeLists.txt | ||
117 | @@ -33,8 +33,7 @@ target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE | ||
118 | |||
119 | target_include_directories(${TARGET_NAME}_obj PRIVATE ${PUBLIC_HEADERS_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src | ||
120 | $<TARGET_PROPERTY:inference_engine_plugin_api,INTERFACE_INCLUDE_DIRECTORIES> | ||
121 | - $<TARGET_PROPERTY:ngraph::ngraph,INTERFACE_INCLUDE_DIRECTORIES> | ||
122 | - $<TARGET_PROPERTY:pugixml,INTERFACE_INCLUDE_DIRECTORIES>) | ||
123 | + $<TARGET_PROPERTY:ngraph::ngraph,INTERFACE_INCLUDE_DIRECTORIES>) | ||
124 | |||
125 | function(nn_builder_disable_warnings) | ||
126 | disable_deprecated_warnings() | ||
127 | diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt | ||
128 | index 982d3c7f..db881246 100644 | ||
129 | --- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt | ||
130 | +++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt | ||
131 | @@ -35,7 +35,6 @@ function(add_graph_transformer_target TARGET_NAME STATIC_IE) | ||
132 | |||
133 | target_include_directories(${TARGET_NAME} | ||
134 | SYSTEM PUBLIC | ||
135 | - $<TARGET_PROPERTY:pugixml,INTERFACE_INCLUDE_DIRECTORIES> | ||
136 | $<TARGET_PROPERTY:inference_engine_plugin_api,INTERFACE_INCLUDE_DIRECTORIES> | ||
137 | "${IE_MAIN_SOURCE_DIR}/thirdparty/movidius/mvnc/include") | ||
138 | |||
139 | diff --git a/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt b/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
140 | index 8a4ffd42..5bee450a 100644 | ||
141 | --- a/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
142 | +++ b/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
143 | @@ -28,7 +28,6 @@ else () | ||
144 | endif () | ||
145 | |||
146 | list(APPEND EXPORT_DEPENDENCIES | ||
147 | - ${PUGI} | ||
148 | ${NGRAPH_LIBRARIES} | ||
149 | gtest | ||
150 | gtest_main | ||
151 | @@ -70,7 +69,6 @@ function(add_common_utils ADD_TARGET_NAME) | ||
152 | PUBLIC | ||
153 | ${IE_TESTS_ROOT}/ie_test_utils | ||
154 | $<TARGET_PROPERTY:inference_engine,INTERFACE_INCLUDE_DIRECTORIES> | ||
155 | - $<TARGET_PROPERTY:pugixml,INTERFACE_INCLUDE_DIRECTORIES> | ||
156 | PRIVATE | ||
157 | $<TARGET_PROPERTY:inference_engine_plugin_api,INTERFACE_INCLUDE_DIRECTORIES> | ||
158 | ) | ||
159 | @@ -80,6 +78,7 @@ function(add_common_utils ADD_TARGET_NAME) | ||
160 | target_link_libraries(${ADD_TARGET_NAME} | ||
161 | PUBLIC | ||
162 | ${EXPORT_DEPENDENCIES} | ||
163 | + pugixml | ||
164 | ) | ||
165 | endfunction() | ||
166 | |||
167 | diff --git a/inference-engine/tests_deprecated/helpers/CMakeLists.txt b/inference-engine/tests_deprecated/helpers/CMakeLists.txt | ||
168 | index 14265fa9..2482be78 100644 | ||
169 | --- a/inference-engine/tests_deprecated/helpers/CMakeLists.txt | ||
170 | +++ b/inference-engine/tests_deprecated/helpers/CMakeLists.txt | ||
171 | @@ -23,7 +23,6 @@ function(add_helpers target_name) | ||
172 | target_include_directories(${target_name} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | ||
173 | "${IE_MAIN_SOURCE_DIR}/src/inference_engine" | ||
174 | $<TARGET_PROPERTY:inference_engine_lp_transformations,INTERFACE_INCLUDE_DIRECTORIES> | ||
175 | - $<TARGET_PROPERTY:pugixml,INTERFACE_INCLUDE_DIRECTORIES> | ||
176 | "${IE_MAIN_SOURCE_DIR}/src/vpu/" | ||
177 | PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") | ||
178 | |||
179 | diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt | ||
180 | index ebf32c71..56b6bcb0 100644 | ||
181 | --- a/inference-engine/thirdparty/CMakeLists.txt | ||
182 | +++ b/inference-engine/thirdparty/CMakeLists.txt | ||
183 | @@ -35,19 +35,10 @@ function(build_with_lto) | ||
184 | add_subdirectory(clDNN) | ||
185 | endif() | ||
186 | |||
187 | - add_subdirectory(pugixml) | ||
188 | add_subdirectory(stb_lib) | ||
189 | - add_subdirectory(ade) | ||
190 | add_subdirectory(fluid/modules/gapi) | ||
191 | |||
192 | - # developer package | ||
193 | - | ||
194 | - target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>") | ||
195 | - | ||
196 | - ie_developer_export_targets(ade fluid pugixml) | ||
197 | - if(TARGET pugixml_mt) | ||
198 | - ie_developer_export_targets(pugixml_mt) | ||
199 | - endif() | ||
200 | + ie_developer_export_targets(fluid) | ||
201 | endfunction() | ||
202 | |||
203 | build_with_lto() | ||
204 | -- | ||
205 | 2.25.4 | ||
206 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-mkldnn_memory_solver.hpp-include-stdint.h-to-avoid-b.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-mkldnn_memory_solver.hpp-include-stdint.h-to-avoid-b.patch deleted file mode 100644 index 057eff23..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-mkldnn_memory_solver.hpp-include-stdint.h-to-avoid-b.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 91d72cc97138e5349e36bba9329ae29dee814388 Mon Sep 17 00:00:00 2001 | ||
2 | From: Liwei Song <liwei.song@windriver.com> | ||
3 | Date: Tue, 2 Jun 2020 09:55:49 +0000 | ||
4 | Subject: [PATCH] mkldnn_memory_solver.hpp: include stdint.h to avoid build | ||
5 | error | ||
6 | |||
7 | fix the following compile error: | ||
8 | |||
9 | inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp:60:9: error: 'int64_t' does not name a type | ||
10 | | 60 | int64_t size; | ||
11 | | | ^~~~~~~ | ||
12 | |||
13 | include stdint.h to fix this. | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/openvinotoolkit/openvino/pull/729] | ||
16 | |||
17 | Signed-off-by: Liwei Song <liwei.song@windriver.com> | ||
18 | --- | ||
19 | inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp | 2 ++ | ||
20 | 1 file changed, 2 insertions(+) | ||
21 | |||
22 | diff --git a/inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp b/inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp | ||
23 | index 2c236a307276..aa52d29b310d 100644 | ||
24 | --- a/inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp | ||
25 | +++ b/inference-engine/src/mkldnn_plugin/mkldnn_memory_solver.hpp | ||
26 | @@ -10,6 +10,8 @@ | ||
27 | |||
28 | #include "ie_api.h" | ||
29 | |||
30 | +#include <stdint.h> | ||
31 | + | ||
32 | #include <vector> | ||
33 | #include <map> | ||
34 | |||
35 | -- | ||
36 | 2.24.1 | ||
37 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cldNN-disable-Werror.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cldNN-disable-Werror.patch deleted file mode 100644 index a4e58b8e..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cldNN-disable-Werror.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 65014a2703a6a3892fdebc86fe1c5a3a589dbf56 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:45:48 +0800 | ||
4 | Subject: [PATCH 2/5] cldNN: disable Werror | ||
5 | |||
6 | Don't treat warnings as errors. This just leads to failures every time | ||
7 | we upgrade the compiler. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | --- | ||
13 | inference-engine/thirdparty/clDNN/CMakeLists.txt | 1 - | ||
14 | 1 file changed, 1 deletion(-) | ||
15 | |||
16 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
17 | index 4b444eca..8610b9b8 100644 | ||
18 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
19 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
20 | @@ -770,7 +770,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") | ||
21 | MultiProcessorCompilation | ||
22 | DeadCodeEliminate | ||
23 | ExtensionsEnabled | ||
24 | - TreatWarnAsErrorEnabled | ||
25 | WarnLevel4 | ||
26 | NoFastMath | ||
27 | StackProtector | ||
28 | -- | ||
29 | 2.25.4 | ||
30 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cmake-Fix-overloaded-virtual-error.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cmake-Fix-overloaded-virtual-error.patch new file mode 100644 index 00000000..8a1464d5 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-cmake-Fix-overloaded-virtual-error.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 4a909a03b6dd336e7ea76e3f44d7cfb5d7e44798 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 29 Nov 2023 12:49:35 +0530 | ||
4 | Subject: [PATCH 2/3] cmake: Fix overloaded-virtual error | ||
5 | |||
6 | * Remove -Werror for: | ||
7 | |git/src/plugins/intel_gpu/src/kernel_selector/jitter.h:129:28: error: 'virtual kernel_selector::JitDefinitions kernel_selector::JitConstant::GetDefinitions() const' was hidden [-Werror=overloaded-virtual=] | ||
8 | | 129 | virtual JitDefinitions GetDefinitions() const = 0; | ||
9 | | | | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
14 | --- | ||
15 | src/plugins/intel_gpu/CMakeLists.txt | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/plugins/intel_gpu/CMakeLists.txt b/src/plugins/intel_gpu/CMakeLists.txt | ||
19 | index 2f3d9127dde..2fd4f5c1b3c 100644 | ||
20 | --- a/src/plugins/intel_gpu/CMakeLists.txt | ||
21 | +++ b/src/plugins/intel_gpu/CMakeLists.txt | ||
22 | @@ -47,7 +47,7 @@ add_subdirectory(thirdparty) | ||
23 | include(thirdparty/cmake/rapidjson.cmake) | ||
24 | |||
25 | if(CMAKE_COMPILER_IS_GNUCXX) | ||
26 | - ov_add_compiler_flags(-Werror) | ||
27 | + #ov_add_compiler_flags(-Werror) | ||
28 | endif() | ||
29 | |||
30 | add_subdirectory(src/runtime) | ||
31 | -- | ||
32 | 2.34.1 | ||
33 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch deleted file mode 100644 index 5fa1b2ec..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-inference-engine-installation-fixes.patch +++ /dev/null | |||
@@ -1,204 +0,0 @@ | |||
1 | From 0838608d9c2b09a845efbdde88a09e151ac9ff7d Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Thu, 11 Jun 2020 14:24:04 +0800 | ||
4 | Subject: [PATCH] fixes | ||
5 | |||
6 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
7 | --- | ||
8 | CMakeLists.txt | 14 -------------- | ||
9 | cmake/developer_package.cmake | 10 ++++++---- | ||
10 | inference-engine/samples/CMakeLists.txt | 8 +++----- | ||
11 | .../samples/common/format_reader/CMakeLists.txt | 2 ++ | ||
12 | .../src/inference_engine/CMakeLists.txt | 4 ++-- | ||
13 | .../src/vpu/myriad_plugin/CMakeLists.txt | 2 +- | ||
14 | inference-engine/tests/unit/cpu/CMakeLists.txt | 4 +++- | ||
15 | .../tests/unit/inference_engine/CMakeLists.txt | 4 +++- | ||
16 | inference-engine/tests/unit/vpu/CMakeLists.txt | 4 +++- | ||
17 | 9 files changed, 23 insertions(+), 29 deletions(-) | ||
18 | |||
19 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
20 | index 902d3289..f1bfb3f5 100644 | ||
21 | --- a/CMakeLists.txt | ||
22 | +++ b/CMakeLists.txt | ||
23 | @@ -123,12 +123,8 @@ add_subdirectory(docs) | ||
24 | |||
25 | # install setupvars | ||
26 | |||
27 | -ie_cpack_add_component(setupvars REQUIRED) | ||
28 | |||
29 | if(UNIX) | ||
30 | - install(PROGRAMS scripts/setupvars/setupvars.sh | ||
31 | - DESTINATION bin | ||
32 | - COMPONENT setupvars) | ||
33 | elseif(WIN32) | ||
34 | install(PROGRAMS scripts/setupvars/setupvars.bat | ||
35 | DESTINATION bin | ||
36 | @@ -138,22 +134,12 @@ endif() | ||
37 | # install install_dependencies | ||
38 | |||
39 | if(UNIX) | ||
40 | - ie_cpack_add_component(install_dependencies REQUIRED) | ||
41 | - install(DIRECTORY scripts/install_dependencies/ | ||
42 | - DESTINATION install_dependencies | ||
43 | - COMPONENT install_dependencies) | ||
44 | endif() | ||
45 | |||
46 | # install files for demo | ||
47 | |||
48 | -ie_cpack_add_component(demo_scripts REQUIRED DEPENDS core) | ||
49 | |||
50 | if(UNIX) | ||
51 | - install(DIRECTORY scripts/demo/ | ||
52 | - DESTINATION deployment_tools/demo | ||
53 | - COMPONENT demo_scripts | ||
54 | - USE_SOURCE_PERMISSIONS | ||
55 | - PATTERN *.bat EXCLUDE) | ||
56 | elseif(WIN32) | ||
57 | install(DIRECTORY scripts/demo/ | ||
58 | DESTINATION deployment_tools/demo | ||
59 | diff --git a/cmake/developer_package.cmake b/cmake/developer_package.cmake | ||
60 | index 23cd9b2d..24c33711 100644 | ||
61 | --- a/cmake/developer_package.cmake | ||
62 | +++ b/cmake/developer_package.cmake | ||
63 | @@ -7,7 +7,9 @@ set(CMAKE_MODULE_PATH "${OpenVINO_MAIN_SOURCE_DIR}/cmake/download" ${CMAKE_MODUL | ||
64 | include(CPackComponent) | ||
65 | unset(IE_CPACK_COMPONENTS_ALL CACHE) | ||
66 | |||
67 | -set(IE_CPACK_IE_DIR deployment_tools/inference_engine) | ||
68 | +if (NOT DEFINED IE_CPACK_IE_DIR) | ||
69 | + set(IE_CPACK_IE_DIR deployment_tools/inference_engine) | ||
70 | +endif() | ||
71 | |||
72 | # Search packages for the host system instead of packages for the target system | ||
73 | # in case of cross compilation these macros should be defined by the toolchain file | ||
74 | @@ -40,8 +42,8 @@ function(ie_cpack_set_library_dir) | ||
75 | set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/bin/${ARCH}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) | ||
76 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH}/${CMAKE_BUILD_TYPE} PARENT_SCOPE) | ||
77 | else() | ||
78 | - set(IE_CPACK_LIBRARY_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | ||
79 | - set(IE_CPACK_RUNTIME_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | ||
80 | + set(IE_CPACK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} PARENT_SCOPE) | ||
81 | + set(IE_CPACK_RUNTIME_PATH ${CMAKE_INSTALL_BINDIR} PARENT_SCOPE) | ||
82 | set(IE_CPACK_ARCHIVE_PATH ${IE_CPACK_IE_DIR}/lib/${ARCH} PARENT_SCOPE) | ||
83 | endif() | ||
84 | endfunction() | ||
85 | @@ -143,7 +145,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "") | ||
86 | set(CMAKE_BUILD_TYPE "Release") | ||
87 | endif() | ||
88 | |||
89 | -set(OUTPUT_ROOT ${OpenVINO_MAIN_SOURCE_DIR}) | ||
90 | +set(OUTPUT_ROOT ${CMAKE_CURRENT_BINARY_DIR}) | ||
91 | |||
92 | # Enable postfixes for Debug/Release builds | ||
93 | set(IE_DEBUG_POSTFIX_WIN "d") | ||
94 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | ||
95 | index 033a8aab..4a871ca6 100644 | ||
96 | --- a/inference-engine/samples/CMakeLists.txt | ||
97 | +++ b/inference-engine/samples/CMakeLists.txt | ||
98 | @@ -28,7 +28,7 @@ endif() | ||
99 | |||
100 | if(IE_MAIN_SOURCE_DIR) | ||
101 | # in case if samples are built from IE repo | ||
102 | - set(IE_MAIN_SAMPLES_DIR ${OpenVINO_MAIN_SOURCE_DIR}) | ||
103 | + set(IE_MAIN_SAMPLES_DIR ${CMAKE_BINARY_DIR}) | ||
104 | # hint for find_package(InferenceEngine in the samples folder) | ||
105 | set(InferenceEngine_DIR "${CMAKE_BINARY_DIR}") | ||
106 | else() | ||
107 | @@ -110,10 +110,6 @@ set (HAVE_INTTYPES_H 1) | ||
108 | set (INTTYPES_FORMAT C99) | ||
109 | set (BUILD_TESTING OFF) | ||
110 | |||
111 | -if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/gflags") | ||
112 | - add_subdirectory(thirdparty/gflags) | ||
113 | -endif() | ||
114 | - | ||
115 | if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) | ||
116 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | ||
117 | endif() | ||
118 | @@ -222,6 +218,8 @@ macro(ie_add_sample) | ||
119 | if(COMMAND add_cpplint_target AND NOT IE_SAMPLE_EXCLUDE_CPPLINT) | ||
120 | add_cpplint_target(${IE_SAMPLE_NAME}_cpplint FOR_TARGETS ${IE_SAMPLE_NAME}) | ||
121 | endif() | ||
122 | + | ||
123 | + install(TARGETS ${IE_SAMPLE_NAME} DESTINATION bin) | ||
124 | endmacro() | ||
125 | |||
126 | # collect all samples subdirectories | ||
127 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
128 | index 6d935135..fe12eeb7 100644 | ||
129 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
130 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
131 | @@ -40,3 +40,5 @@ target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | ||
132 | "${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
133 | |||
134 | set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) | ||
135 | + | ||
136 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
137 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
138 | index c8cd4b27..babe8ff5 100644 | ||
139 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
140 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
141 | @@ -289,8 +289,8 @@ install(TARGETS ${TARGET_NAME} ${TARGET_NAME}_nn_builder | ||
142 | install(FILES "${OpenVINO_BINARY_DIR}/share/ie_parallel.cmake" | ||
143 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig.cmake" | ||
144 | "${OpenVINO_BINARY_DIR}/share/InferenceEngineConfig-version.cmake" | ||
145 | - DESTINATION ${IE_CPACK_IE_DIR}/share | ||
146 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/InferenceEngine | ||
147 | COMPONENT core) | ||
148 | install(FILES $<TARGET_FILE_DIR:${TARGET_NAME}>/plugins.xml | ||
149 | - DESTINATION ${IE_CPACK_RUNTIME_PATH} | ||
150 | + DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
151 | COMPONENT core) | ||
152 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
153 | index b35910f6..304d6d40 100644 | ||
154 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
155 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
156 | @@ -48,5 +48,5 @@ target_link_libraries(${TARGET_NAME} | ||
157 | # install | ||
158 | |||
159 | install(FILES ${IE_MAIN_SOURCE_DIR}/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules | ||
160 | - DESTINATION ${IE_CPACK_IE_DIR}/external | ||
161 | + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/udev/rules.d | ||
162 | COMPONENT myriad) | ||
163 | diff --git a/inference-engine/tests/unit/cpu/CMakeLists.txt b/inference-engine/tests/unit/cpu/CMakeLists.txt | ||
164 | index 9ec5ad02..45c62571 100644 | ||
165 | --- a/inference-engine/tests/unit/cpu/CMakeLists.txt | ||
166 | +++ b/inference-engine/tests/unit/cpu/CMakeLists.txt | ||
167 | @@ -22,4 +22,6 @@ addIeTargetTest( | ||
168 | ADD_CPPLINT | ||
169 | LABELS | ||
170 | CPU | ||
171 | -) | ||
172 | \ No newline at end of file | ||
173 | +) | ||
174 | + | ||
175 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
176 | diff --git a/inference-engine/tests/unit/inference_engine/CMakeLists.txt b/inference-engine/tests/unit/inference_engine/CMakeLists.txt | ||
177 | index 55e52b59..9d383d74 100644 | ||
178 | --- a/inference-engine/tests/unit/inference_engine/CMakeLists.txt | ||
179 | +++ b/inference-engine/tests/unit/inference_engine/CMakeLists.txt | ||
180 | @@ -12,4 +12,6 @@ addIeTargetTest( | ||
181 | ADD_CPPLINT | ||
182 | LABELS | ||
183 | INFERENCE_ENGINE | ||
184 | -) | ||
185 | \ No newline at end of file | ||
186 | +) | ||
187 | + | ||
188 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
189 | diff --git a/inference-engine/tests/unit/vpu/CMakeLists.txt b/inference-engine/tests/unit/vpu/CMakeLists.txt | ||
190 | index 39fb1d5a..5ce82b5f 100644 | ||
191 | --- a/inference-engine/tests/unit/vpu/CMakeLists.txt | ||
192 | +++ b/inference-engine/tests/unit/vpu/CMakeLists.txt | ||
193 | @@ -23,4 +23,6 @@ addIeTargetTest( | ||
194 | LABELS | ||
195 | VPU | ||
196 | MYRIAD | ||
197 | -) | ||
198 | \ No newline at end of file | ||
199 | +) | ||
200 | + | ||
201 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
202 | -- | ||
203 | 2.25.4 | ||
204 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-protobuf-allow-target-protoc-to-be-built.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-protobuf-allow-target-protoc-to-be-built.patch new file mode 100644 index 00000000..bbdeaa2a --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-protobuf-allow-target-protoc-to-be-built.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 450d94b475460d1af32b207d0ced495794863f0d Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 29 Nov 2023 12:55:19 +0530 | ||
4 | Subject: [PATCH 3/3] protobuf: allow target protoc to be built | ||
5 | |||
6 | We can run target binaries using a qemu wrapper so allow these to be | ||
7 | built and run. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | --- | ||
13 | cmake/developer_package/frontends/frontends.cmake | 2 +- | ||
14 | thirdparty/protobuf/CMakeLists.txt | 2 +- | ||
15 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/cmake/developer_package/frontends/frontends.cmake b/cmake/developer_package/frontends/frontends.cmake | ||
18 | index f3b5520d6d2..7579f638c5a 100644 | ||
19 | --- a/cmake/developer_package/frontends/frontends.cmake | ||
20 | +++ b/cmake/developer_package/frontends/frontends.cmake | ||
21 | @@ -163,7 +163,7 @@ macro(ov_add_frontend) | ||
22 | set(OUTPUT_PB_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${relative_path}/${FILE_WE}.pb.h) | ||
23 | add_custom_command( | ||
24 | OUTPUT "${OUTPUT_PB_SRC}" "${OUTPUT_PB_HEADER}" | ||
25 | - COMMAND ${PROTOC_EXECUTABLE} ARGS --cpp_out ${CMAKE_CURRENT_BINARY_DIR} -I ${protofiles_root_dir} ${proto_file} | ||
26 | + COMMAND protoc ARGS --cpp_out ${CMAKE_CURRENT_BINARY_DIR} -I ${protofiles_root_dir} ${proto_file} | ||
27 | DEPENDS ${PROTOC_DEPENDENCY} ${proto_file} | ||
28 | COMMENT "Running C++ protocol buffer compiler (${PROTOC_EXECUTABLE}) on ${proto_file_relative}" | ||
29 | VERBATIM | ||
30 | diff --git a/thirdparty/protobuf/CMakeLists.txt b/thirdparty/protobuf/CMakeLists.txt | ||
31 | index 15f32601f23..36853caf7dc 100644 | ||
32 | --- a/thirdparty/protobuf/CMakeLists.txt | ||
33 | +++ b/thirdparty/protobuf/CMakeLists.txt | ||
34 | @@ -31,7 +31,7 @@ unset(HAVE_ZLIB CACHE) | ||
35 | if(CMAKE_CROSSCOMPILING OR | ||
36 | (APPLE AND (HOST_X86_64 AND AARCH64)) OR | ||
37 | (MSVC AND (HOST_X86_64 AND (AARCH64 OR ARM)))) | ||
38 | - set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE BOOL "Build protoc binaries" FORCE) | ||
39 | + set(protobuf_BUILD_PROTOC_BINARIES ON CACHE BOOL "Build protoc binaries" FORCE) | ||
40 | else() | ||
41 | set(protobuf_BUILD_PROTOC_BINARIES ON CACHE BOOL "Build protoc binaries" FORCE) | ||
42 | endif() | ||
43 | -- | ||
44 | 2.34.1 | ||
45 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-fix-compilation-errors.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-fix-compilation-errors.patch deleted file mode 100644 index 8169f9fb..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-fix-compilation-errors.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From deec5feef34f86eb5616252e2e5b685b6555f561 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:49:03 +0800 | ||
4 | Subject: [PATCH 4/5] fix compilation errors | ||
5 | |||
6 | Fixes errors like: | ||
7 | |||
8 | build/tmp/work/skylake-64-poky-linux/dldt-inference-engine/2020r1-r0/git/inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h:295:28: | ||
9 | error: 'runtime_error' is not a member of 'std' | ||
10 | 295 | throw std::runtime_error("Tensor pitches didn't | ||
11 | set correctly"); | ||
12 | | | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
17 | --- | ||
18 | .../thirdparty/clDNN/kernel_selector/common/tensor_type.h | 1 + | ||
19 | 1 file changed, 1 insertion(+) | ||
20 | |||
21 | diff --git a/inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h b/inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h | ||
22 | index 7f05b67f..641a4c9b 100644 | ||
23 | --- a/inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h | ||
24 | +++ b/inference-engine/thirdparty/clDNN/kernel_selector/common/tensor_type.h | ||
25 | @@ -25,6 +25,7 @@ | ||
26 | #include <array> | ||
27 | #include <string> | ||
28 | #include <utility> | ||
29 | +#include <stdexcept> | ||
30 | |||
31 | namespace kernel_selector { | ||
32 | #define KERNEL_SELECTOR_TENSOR_DIM_MAX 9 | ||
33 | -- | ||
34 | 2.25.4 | ||
35 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-cldnn-fix-inclusion-of-headers.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-cldnn-fix-inclusion-of-headers.patch deleted file mode 100644 index 1b842da2..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-cldnn-fix-inclusion-of-headers.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From 0d0810481186fc443fe65a6119ddcc71ba21e814 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:50:19 +0800 | ||
4 | Subject: [PATCH 5/5] cldnn: fix inclusion of headers | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
9 | --- | ||
10 | inference-engine/include/gpu/gpu_ocl_wrapper.hpp | 2 +- | ||
11 | inference-engine/src/cldnn_engine/CMakeLists.txt | 1 + | ||
12 | .../thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | 2 +- | ||
13 | 3 files changed, 3 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | ||
16 | index fce7d8f1..827e5764 100644 | ||
17 | --- a/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | ||
18 | +++ b/inference-engine/include/gpu/gpu_ocl_wrapper.hpp | ||
19 | @@ -21,4 +21,4 @@ | ||
20 | # pragma GCC system_header | ||
21 | #endif | ||
22 | |||
23 | -#include <CL/cl2.hpp> | ||
24 | +#include <cl2.hpp> | ||
25 | diff --git a/inference-engine/src/cldnn_engine/CMakeLists.txt b/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
26 | index de56ed8e..c81453ab 100644 | ||
27 | --- a/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
28 | +++ b/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
29 | @@ -31,6 +31,7 @@ set (CLDNN_TOP_FOLDER ${IE_MAIN_SOURCE_DIR}/thirdparty/clDNN) | ||
30 | target_include_directories(${TARGET_NAME} PRIVATE | ||
31 | ${CMAKE_CURRENT_SOURCE_DIR} | ||
32 | ${CLDNN__IOCL_ICD_INCDIRS} | ||
33 | + ${CLDNN_TOP_FOLDER}/common/khronos_ocl_clhpp | ||
34 | ${CLDNN_TOP_FOLDER}) | ||
35 | |||
36 | # copy default global xml file describing the custom kernels and the *.cl files | ||
37 | diff --git a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | ||
38 | index 8f668b18..a1d24438 100644 | ||
39 | --- a/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | ||
40 | +++ b/inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/cl2_ext.hpp | ||
41 | @@ -29,7 +29,7 @@ typedef cl_d3d11_device_set_khr cl_device_set_intel; | ||
42 | typedef cl_va_api_device_source_intel cl_device_source_intel; | ||
43 | typedef cl_va_api_device_set_intel cl_device_set_intel; | ||
44 | #endif | ||
45 | -#include <CL/cl_intel_planar_yuv.h> | ||
46 | +#include <CL/cl_ext_intel.h> | ||
47 | #include "cl_intel_usm_defs.h" | ||
48 | |||
49 | #include <memory> | ||
50 | -- | ||
51 | 2.25.4 | ||
52 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/run-ptest b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/run-ptest deleted file mode 100644 index 0b995ccb..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/run-ptest +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for i in cpu ie vpu | ||
4 | do | ||
5 | ./$i"UnitTests" |sed \ | ||
6 | -e 's|\[.*OK.*\]\(.*\)|PASS:\1|' \ | ||
7 | -e 's|\[.*FAILED.*\]\(.*\)|FAIL:\1|' | ||
8 | done | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch index a938b942..816a98a3 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch | |||
@@ -1,115 +1,27 @@ | |||
1 | From d63d1a1291a2715b7d70ed88c4d764b22e6f2f4d Mon Sep 17 00:00:00 2001 | 1 | From 804b08023b3f8e72b8e3eb09e464d6775c11d966 Mon Sep 17 00:00:00 2001 |
2 | From: Liwei Song <liwei.song@windriver.com> | 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> |
3 | Date: Fri, 22 May 2020 15:47:44 +0800 | 3 | Date: Fri, 21 Oct 2022 11:38:23 +0800 |
4 | Subject: [PATCH] use meta-oe gflags | 4 | Subject: [PATCH] demos: use gflags from meta-oe |
5 | 5 | ||
6 | gflags is available in meta-oe, use this one instead of the thirdparty | 6 | Upstream-Status: Inappropriate |
7 | one in open-model-zoo | ||
8 | 7 | ||
9 | Upstream-Status: Inappropriate [meta-intel specific] | 8 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> |
9 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
10 | 10 | ||
11 | Signed-off-by: Liwei Song <liwei.song@windriver.com> | ||
12 | --- | 11 | --- |
13 | CMakeLists.txt | 8 ++++---- | 12 | demos/CMakeLists.txt | 2 +- |
14 | multi_channel/common/CMakeLists.txt | 2 +- | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | multi_channel/face_detection_demo/CMakeLists.txt | 2 +- | ||
16 | multi_channel/human_pose_estimation_demo/CMakeLists.txt | 2 +- | ||
17 | multi_channel/object_detection_demo_yolov3/CMakeLists.txt | 2 +- | ||
18 | 5 files changed, 8 insertions(+), 8 deletions(-) | ||
19 | 14 | ||
20 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 15 | diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt |
21 | index 40b549f..dfdbf93 100644 | 16 | index 51767051c..fb7e3d22f 100644 |
22 | --- a/CMakeLists.txt | 17 | --- a/demos/CMakeLists.txt |
23 | +++ b/CMakeLists.txt | 18 | +++ b/demos/CMakeLists.txt |
24 | @@ -89,12 +89,10 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) | 19 | @@ -141,7 +141,7 @@ endmacro() |
25 | endif() | 20 | find_package(OpenCV REQUIRED COMPONENTS core highgui videoio imgproc imgcodecs) |
26 | #################################### | 21 | find_package(OpenVINO REQUIRED COMPONENTS Runtime) |
27 | |||
28 | -set (GFLAGS_IS_SUBPROJECT TRUE) | ||
29 | +set (GFLAGS_IS_SUBPROJECT FALSE) | ||
30 | set (HAVE_SYS_STAT_H 1) | ||
31 | set (HAVE_INTTYPES_H 1) | ||
32 | 22 | ||
33 | -add_subdirectory(thirdparty/gflags) | 23 | -add_subdirectory(thirdparty/gflags) |
34 | - | 24 | +#add_subdirectory(thirdparty/gflags) |
35 | if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) | 25 | add_subdirectory(common/cpp) |
36 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | ||
37 | endif() | ||
38 | @@ -177,7 +175,7 @@ macro(ie_add_sample) | ||
39 | target_include_directories(${IE_SAMPLE_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../common") | ||
40 | |||
41 | target_link_libraries(${IE_SAMPLE_NAME} PRIVATE ${OpenCV_LIBRARIES} ${InferenceEngine_LIBRARIES} | ||
42 | - ${IE_SAMPLE_DEPENDENCIES} gflags) | ||
43 | + ${IE_SAMPLE_DEPENDENCIES} ${GFLAGS_LIBRARIES}) | ||
44 | |||
45 | if(UNIX) | ||
46 | target_link_libraries(${IE_SAMPLE_NAME} PRIVATE pthread) | ||
47 | @@ -198,11 +196,13 @@ endmacro() | ||
48 | # use this flag if you need to throw custom message in case if the IE package is not found. | ||
49 | if (IE_NOT_FOUND_MESSAGE) | ||
50 | find_package(InferenceEngine 2.0 QUIET) | ||
51 | + find_package(gflags 2.2 QUIET) | ||
52 | if (NOT(InferenceEngine_FOUND)) | ||
53 | message(FATAL_ERROR ${IE_NOT_FOUND_MESSAGE}) | ||
54 | endif() | ||
55 | else() | ||
56 | find_package(InferenceEngine 2.0 REQUIRED) | ||
57 | + find_package(gflags 2.2 REQUIRED) | ||
58 | endif() | ||
59 | |||
60 | find_package(ngraph REQUIRED) | ||
61 | diff --git a/multi_channel/common/CMakeLists.txt b/multi_channel/common/CMakeLists.txt | ||
62 | index d5e5d93..c33afbb 100644 | ||
63 | --- a/multi_channel/common/CMakeLists.txt | ||
64 | +++ b/multi_channel/common/CMakeLists.txt | ||
65 | @@ -110,7 +110,7 @@ endif() | ||
66 | |||
67 | target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") | ||
68 | |||
69 | -target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} gflags ${OpenCV_LIBRARIES}) | ||
70 | +target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} ${GFLAGS_LIBRARIES} ${OpenCV_LIBRARIES}) | ||
71 | |||
72 | if(UNIX) | ||
73 | target_link_libraries( ${TARGET_NAME} pthread) | ||
74 | diff --git a/multi_channel/face_detection_demo/CMakeLists.txt b/multi_channel/face_detection_demo/CMakeLists.txt | ||
75 | index 5b497fc..78c518e 100644 | ||
76 | --- a/multi_channel/face_detection_demo/CMakeLists.txt | ||
77 | +++ b/multi_channel/face_detection_demo/CMakeLists.txt | ||
78 | @@ -60,7 +60,7 @@ if(MULTICHANNEL_DEMO_USE_TBB) | ||
79 | endif() | ||
80 | endif() | ||
81 | 26 | ||
82 | -target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} gflags ${OpenCV_LIBRARIES} common) | 27 | find_package(OpenCV QUIET COMPONENTS gapi) |
83 | +target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} ${GFLAGS_LIBRARIES} ${OpenCV_LIBRARIES} common) | ||
84 | |||
85 | if(UNIX) | ||
86 | target_link_libraries( ${TARGET_NAME} pthread) | ||
87 | diff --git a/multi_channel/human_pose_estimation_demo/CMakeLists.txt b/multi_channel/human_pose_estimation_demo/CMakeLists.txt | ||
88 | index 7fe4823..7e76796 100644 | ||
89 | --- a/multi_channel/human_pose_estimation_demo/CMakeLists.txt | ||
90 | +++ b/multi_channel/human_pose_estimation_demo/CMakeLists.txt | ||
91 | @@ -60,7 +60,7 @@ if(MULTICHANNEL_DEMO_USE_TBB) | ||
92 | endif() | ||
93 | endif() | ||
94 | |||
95 | -target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} gflags ${OpenCV_LIBRARIES} common) | ||
96 | +target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} ${GFLAGS_LIBRARIES} ${OpenCV_LIBRARIES} common) | ||
97 | |||
98 | if(UNIX) | ||
99 | target_link_libraries( ${TARGET_NAME} pthread) | ||
100 | diff --git a/multi_channel/object_detection_demo_yolov3/CMakeLists.txt b/multi_channel/object_detection_demo_yolov3/CMakeLists.txt | ||
101 | index e959349..cf1de4a 100644 | ||
102 | --- a/multi_channel/object_detection_demo_yolov3/CMakeLists.txt | ||
103 | +++ b/multi_channel/object_detection_demo_yolov3/CMakeLists.txt | ||
104 | @@ -60,7 +60,7 @@ if(MULTICHANNEL_DEMO_USE_TBB) | ||
105 | endif() | ||
106 | endif() | ||
107 | |||
108 | -target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} gflags ${OpenCV_LIBRARIES} ngraph::ngraph common) | ||
109 | +target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} ${GFLAGS_LIBRARIES} ${OpenCV_LIBRARIES} ngraph::ngraph common) | ||
110 | |||
111 | if(UNIX) | ||
112 | target_link_libraries( ${TARGET_NAME} pthread) | ||
113 | -- | ||
114 | 2.25.4 | ||
115 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2020.3.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2020.3.bb deleted file mode 100644 index aeedcb29..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2020.3.bb +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | SUMMARY = "OpenVINO(TM) Toolkit - Open Model Zoo repository" | ||
2 | HOMEPAGE = "https://github.com/opencv/open_model_zoo" | ||
3 | DESCRIPTION = "This repository includes optimized deep learning \ | ||
4 | models and a set of demos to expedite development of high-performance \ | ||
5 | deep learning inference applications." | ||
6 | |||
7 | SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=git;branch=master \ | ||
8 | file://0001-use-oe-gflags.patch \ | ||
9 | " | ||
10 | |||
11 | SRCREV = "912eeaddc034e31dedd34617d82bcc2ddf83e542" | ||
12 | |||
13 | LICENSE = "Apache-2.0" | ||
14 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
15 | " | ||
16 | |||
17 | inherit cmake | ||
18 | |||
19 | S = "${WORKDIR}/git/demos" | ||
20 | |||
21 | DEPENDS += "openvino-inference-engine opencv gflags" | ||
22 | |||
23 | RDEPENDS_${PN} += " \ | ||
24 | python3-decorator \ | ||
25 | python3-defusedxml \ | ||
26 | python3-networkx \ | ||
27 | python3-protobuf \ | ||
28 | python3-test-generator \ | ||
29 | python3-requests \ | ||
30 | python3-pyyaml \ | ||
31 | " | ||
32 | |||
33 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
34 | |||
35 | EXTRA_OECMAKE += " \ | ||
36 | -DIE_MAIN_SOURCE_DIR=${B} \ | ||
37 | -DENABLE_SAMPLES=ON \ | ||
38 | -DIE_INCLUDE_DIR=${STAGING_EXECPREFIXDIR} \ | ||
39 | -DIE_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine.so \ | ||
40 | -DIE_C_API_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_c_api.so \ | ||
41 | -DIE_LEGACY_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_legacy.so \ | ||
42 | -DIE_NN_BUILDER_RELEASE_LIBRARY=${STAGING_LIBDIR}/libinference_engine_nn_builder.so \ | ||
43 | -DIE_ROOT_DIR=${WORKDIR}/InferenceEngine \ | ||
44 | " | ||
45 | |||
46 | do_configure_prepend(){ | ||
47 | mkdir -p ${WORKDIR}/InferenceEngine/share | ||
48 | cp ${STAGING_LIBDIR}/cmake/InferenceEngine/* ${WORKDIR}/InferenceEngine/share/ | ||
49 | } | ||
50 | |||
51 | do_install(){ | ||
52 | install -d ${D}${libdir} | ||
53 | install -d ${D}${bindir} | ||
54 | install -d ${D}${datadir}/openvino/open-model-zoo/tools | ||
55 | cp -rf ${WORKDIR}/build/intel64/Release/lib/*.a ${D}${libdir} | ||
56 | cp -rf ${WORKDIR}/build/intel64/Release/*_demo* ${D}${bindir} | ||
57 | cp -rf ${WORKDIR}/git/models ${D}${datadir}/openvino/open-model-zoo | ||
58 | cp -rf ${WORKDIR}/git/tools/downloader ${D}${datadir}/openvino/open-model-zoo/tools | ||
59 | } | ||
60 | |||
61 | FILES_${PN} += "${datadir}/openvino" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2024.1.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2024.1.0.bb new file mode 100644 index 00000000..a9422e70 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2024.1.0.bb | |||
@@ -0,0 +1,54 @@ | |||
1 | SUMMARY = "OpenVINO(TM) Toolkit - Open Model Zoo repository" | ||
2 | HOMEPAGE = "https://github.com/opencv/open_model_zoo" | ||
3 | DESCRIPTION = "This repository includes optimized deep learning \ | ||
4 | models and a set of demos to expedite development of high-performance \ | ||
5 | deep learning inference applications." | ||
6 | |||
7 | SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=https;branch=master \ | ||
8 | file://0001-use-oe-gflags.patch \ | ||
9 | " | ||
10 | |||
11 | SRCREV = "cf5141dad2a4f24e1c5d5b9d43219ed804c48bbf" | ||
12 | |||
13 | LICENSE = "Apache-2.0" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
15 | " | ||
16 | |||
17 | inherit cmake | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | OECMAKE_SOURCEPATH = "${S}/demos" | ||
21 | |||
22 | DEPENDS += "openvino-inference-engine opencv gflags" | ||
23 | |||
24 | RDEPENDS:${PN} += " \ | ||
25 | python3-decorator \ | ||
26 | python3-defusedxml \ | ||
27 | python3-networkx \ | ||
28 | python3-protobuf \ | ||
29 | python3-requests \ | ||
30 | python3-pyyaml \ | ||
31 | python3-numpy \ | ||
32 | bash \ | ||
33 | " | ||
34 | |||
35 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
36 | COMPATIBLE_HOST:libc-musl = "null" | ||
37 | |||
38 | EXTRA_OECMAKE += " \ | ||
39 | -DENABLE_SAMPLES=ON \ | ||
40 | " | ||
41 | |||
42 | do_install(){ | ||
43 | install -d ${D}${libdir} | ||
44 | install -d ${D}${bindir} | ||
45 | install -d ${D}${datadir}/openvino/open-model-zoo/tools | ||
46 | install -d ${D}${datadir}/openvino/open-model-zoo/demos | ||
47 | cp -rf ${B}/intel64/Release/*.a ${D}${libdir} | ||
48 | cp -rf ${B}/intel64/Release/*_demo* ${D}${bindir} | ||
49 | cp -rf ${S}/models ${D}${datadir}/openvino/open-model-zoo | ||
50 | cp -rf ${S}/demos ${D}${datadir}/openvino/open-model-zoo | ||
51 | cp -rf ${S}/tools/model_tools ${D}${datadir}/openvino/open-model-zoo/tools | ||
52 | } | ||
53 | |||
54 | FILES:${PN} += "${datadir}/openvino" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2020.3.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2020.3.0.bb deleted file mode 100644 index 41964728..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2020.3.0.bb +++ /dev/null | |||
@@ -1,148 +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 = "gitsm://github.com/openvinotoolkit/openvino.git;protocol=git;branch=releases/2020/3 \ | ||
8 | https://download.01.org/opencv/2020/openvinotoolkit/2020.3/inference_engine/firmware_usb-ma2450_1119.zip;name=ma2450 \ | ||
9 | https://download.01.org/opencv/2020/openvinotoolkit/2020.3/inference_engine/firmware_pcie-ma248x_1119.zip;name=ma248x \ | ||
10 | https://download.01.org/opencv/2020/openvinotoolkit/2020.3/inference_engine/firmware_usb-ma2x8x_1119.zip;name=ma2x8x \ | ||
11 | file://0001-inference-engine-use-system-installed-packages.patch \ | ||
12 | file://0002-cldNN-disable-Werror.patch \ | ||
13 | file://0003-inference-engine-installation-fixes.patch \ | ||
14 | file://0004-fix-compilation-errors.patch \ | ||
15 | file://0005-cldnn-fix-inclusion-of-headers.patch \ | ||
16 | file://0001-mkldnn_memory_solver.hpp-include-stdint.h-to-avoid-b.patch \ | ||
17 | file://0001-dont-install-licenses-and-version-file.patch;patchdir=ngraph \ | ||
18 | file://run-ptest \ | ||
19 | " | ||
20 | |||
21 | SRCREV = "2fe9b1523058e282ad374db7dc1b3538c7d2dd27" | ||
22 | |||
23 | SRC_URI[ma2450.sha256sum] = "9b8f61954751343995dde9d714134e5082dbaadffb0c7c33d41ce84c1296a20e" | ||
24 | SRC_URI[ma248x.sha256sum] = "338940db127b16231e0afa948c83ed576458b130dd2a0a593c5edb29d9637f35" | ||
25 | SRC_URI[ma2x8x.sha256sum] = "94cd485105de47ef3f747baec1261a1254ddf30e308807948dd8b0176ecdfebf" | ||
26 | |||
27 | LICENSE = "Apache-2.0 & ISSL & MIT" | ||
28 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
29 | file://inference-engine/thirdparty/mkl-dnn/LICENSE;md5=afa44a3d001cc203032135324f9636b7 \ | ||
30 | file://inference-engine/thirdparty/mkl-dnn/src/cpu/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | ||
31 | file://inference-engine/thirdparty/clDNN/common/khronos_ocl_clhpp/LICENSE.txt;md5=88b295a48d2b3244ba65d3c055472c8a \ | ||
32 | file://inference-engine/tests/ie_test_utils/common_test_utils/gtest/googlemock/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ | ||
33 | file://inference-engine/tests/ie_test_utils/common_test_utils/gtest/googletest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ | ||
34 | " | ||
35 | LICENSE_${PN}-vpu-firmware = "ISSL" | ||
36 | |||
37 | inherit cmake ptest python3native | ||
38 | |||
39 | S = "${WORKDIR}/git" | ||
40 | |||
41 | EXTRA_OECMAKE += " \ | ||
42 | -DENABLE_OPENCV=0 \ | ||
43 | -DENABLE_PLUGIN_RPATH=0 \ | ||
44 | -DENABLE_GNA=0 \ | ||
45 | -DPYTHON_EXECUTABLE=${PYTHON} \ | ||
46 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
47 | -DTHREADING=TBB -DTBB_DIR=${STAGING_LIBDIR} \ | ||
48 | -DENABLE_TESTS="${@bb.utils.contains('PTEST_ENABLED', '1', '1', '0', d)}" \ | ||
49 | -DBUILD_GMOCK=1 \ | ||
50 | -DBUILD_GTEST=0 \ | ||
51 | -DINSTALL_GMOCK=0 \ | ||
52 | -DINSTALL_GTEST=0 \ | ||
53 | -DENABLE_SAMPLES=1 \ | ||
54 | -DENABLE_NGRAPH=ON \ | ||
55 | -DENABLE_MKL_DNN=ON \ | ||
56 | -DIE_CPACK_IE_DIR=${prefix} \ | ||
57 | -DNGRAPH_UNIT_TEST_ENABLE=FALSE \ | ||
58 | -DNGRAPH_TEST_UTIL_ENABLE=FALSE \ | ||
59 | -DNGRAPH_ONNX_IMPORT_ENABLE=OFF \ | ||
60 | -DNGRAPH_JSON_ENABLE=FALSE \ | ||
61 | -DNGRAPH_NATIVE_ARCH_ENABLE=FALSE \ | ||
62 | -DNGRAPH_NOP_ENABLE=FALSE \ | ||
63 | -DNGRAPH_GENERIC_CPU_ENABLE=FALSE \ | ||
64 | -DTREAT_WARNING_AS_ERROR=FALSE \ | ||
65 | " | ||
66 | |||
67 | DEPENDS += "libusb1 \ | ||
68 | ade \ | ||
69 | opencv \ | ||
70 | pugixml \ | ||
71 | protobuf-native \ | ||
72 | tbb \ | ||
73 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gflags', '', d)} \ | ||
74 | " | ||
75 | |||
76 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
77 | COMPATIBLE_HOST_libc-musl = "null" | ||
78 | |||
79 | PACKAGECONFIG ?= "vpu" | ||
80 | 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" | ||
81 | 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" | ||
82 | PACKAGECONFIG[vpu] = "-DENABLE_VPU=ON -DVPU_FIRMWARE_USB-MA2450_FILE=../mvnc/usb-ma2450.mvcmd -DVPU_FIRMWARE_USB-MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd -DVPU_FIRMWARE_PCIE-MA248X_FILE=../mvnc/pcie-ma248x.mvcmd,-DENABLE_VPU=OFF,,${PN}-vpu-firmware" | ||
83 | PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" | ||
84 | |||
85 | do_install_append() { | ||
86 | if ${@bb.utils.contains('PACKAGECONFIG', 'vpu', 'true', 'false', d)}; then | ||
87 | install -m0644 ${WORKDIR}/mvnc/usb-ma2450.mvcmd ${D}${libdir}/ | ||
88 | install -m0644 ${WORKDIR}/mvnc/usb-ma2x8x.mvcmd ${D}${libdir}/ | ||
89 | install -m0644 ${WORKDIR}/mvnc/pcie-ma248x.mvcmd ${D}${libdir}/ | ||
90 | fi | ||
91 | |||
92 | if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then | ||
93 | cp -r ${S}/inference-engine/src/cldnn_engine/cldnn_global_custom_kernels ${D}${libdir}/ | ||
94 | fi | ||
95 | |||
96 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then | ||
97 | install -d ${D}${datadir}/inference_engine | ||
98 | mv ${D}/usr/samples/python ${D}${datadir}/inference_engine/ | ||
99 | |||
100 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
101 | mv ${D}${prefix}/python/${PYTHON_DIR}/openvino ${D}${PYTHON_SITEPACKAGES_DIR}/ | ||
102 | mv ${D}${prefix}/deployment_tools/tools/benchmark_tool ${D}${PYTHON_SITEPACKAGES_DIR}/openvino/ | ||
103 | |||
104 | rm -rf ${D}${prefix}/python | ||
105 | rm -rf ${D}${prefix}/deployment_tools | ||
106 | fi | ||
107 | |||
108 | # Remove the samples source directory. We install the built samples. | ||
109 | rm -rf ${D}/usr/samples | ||
110 | } | ||
111 | |||
112 | do_install_ptest_base_prepend() { | ||
113 | # While not a Makefile based project that strictly falls into the category of | ||
114 | # what ptest helps with, adding the unit tests here as ptest would help. | ||
115 | # Create a dummy Makefile so installation doesn't fail. | ||
116 | touch ${WORKDIR}/Makefile | ||
117 | |||
118 | mv ${D}${bindir}/*UnitTests ${D}${PTEST_PATH}/ | ||
119 | } | ||
120 | |||
121 | # Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR | ||
122 | # instead of RSS | ||
123 | SSTATE_SCAN_FILES_append = " *.cmake" | ||
124 | |||
125 | FILES_${PN}-dev = "${includedir} \ | ||
126 | ${libdir}/cmake \ | ||
127 | " | ||
128 | |||
129 | FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \ | ||
130 | ${datadir}/openvino \ | ||
131 | ${libdir}/cldnn_global_custom_kernels \ | ||
132 | ${libdir}/custom_kernels \ | ||
133 | ${libdir}/plugins.xml \ | ||
134 | ${libdir}/cache.json \ | ||
135 | " | ||
136 | |||
137 | # Move inference engine samples into a separate package | ||
138 | PACKAGES =+ "${PN}-samples ${PN}-vpu-firmware" | ||
139 | |||
140 | FILES_${PN}-samples = "${datadir}/inference_engine \ | ||
141 | ${bindir} \ | ||
142 | " | ||
143 | FILES_${PN}-vpu-firmware += "${libdir}/*.mvcmd" | ||
144 | |||
145 | # Package for inference engine python API | ||
146 | PACKAGES =+ "${PN}-${PYTHON_PN}" | ||
147 | |||
148 | FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}/openvino" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2024.1.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2024.1.0.bb new file mode 100644 index 00000000..675d9920 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2024.1.0.bb | |||
@@ -0,0 +1,146 @@ | |||
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=https;name=openvino;branch=releases/2024/1;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 | git://github.com/gflags/gflags.git;protocol=https;destsuffix=git/thirdparty/gflags/gflags;name=gflags;nobranch=1 \ | ||
15 | git://github.com/madler/zlib.git;protocol=https;destsuffix=git/thirdparty/zlib/zlib;name=zlib;nobranch=1 \ | ||
16 | git://github.com/openvinotoolkit/mlas.git;protocol=https;destsuffix=git/src/plugins/intel_cpu/thirdparty/mlas;name=mlas;nobranch=1 \ | ||
17 | git://github.com/nodejs/node-api-headers.git;protocol=https;destsuffix=git/node-api-headers-src;name=node-api-headers;nobranch=1 \ | ||
18 | git://github.com/nodejs/node-addon-api.git;protocol=https;destsuffix=git/node-addon-api-src;name=node-addon-api;nobranch=1 \ | ||
19 | git://github.com/openvinotoolkit/telemetry.git;protocol=https;destsuffix=git/thirdparty/telemetry;name=telemetry;nobranch=1;lfs=0 \ | ||
20 | file://0001-cmake-yocto-specific-tweaks-to-the-build-process.patch \ | ||
21 | file://0002-cmake-Fix-overloaded-virtual-error.patch \ | ||
22 | file://0003-protobuf-allow-target-protoc-to-be-built.patch \ | ||
23 | " | ||
24 | |||
25 | SRCREV_openvino = "f4afc983258bcb2592d999ed6700043fdb58ad78" | ||
26 | SRCREV_mkl = "26633ae49edd4353a29b7170d9fcef6b2d79f4b3" | ||
27 | SRCREV_onednn = "4e6ff043c439652fcf6c400ac4e0c81bbac7c71c" | ||
28 | SRCREV_xbyak = "740dff2e866f3ae1a70dd42d6e8836847ed95cc2" | ||
29 | SRCREV_json = "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03" | ||
30 | SRCREV_ade = "0e8a2ccdd34f29dba55894f5f3c5179809888b9e" | ||
31 | SRCREV_protobuf = "fe271ab76f2ad2b2b28c10443865d2af21e27e0e" | ||
32 | SRCREV_gflags = "e171aa2d15ed9eb17054558e0b3a6a413bb01067" | ||
33 | SRCREV_zlib = "09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851" | ||
34 | SRCREV_mlas = "d1bc25ec4660cddd87804fcf03b2411b5dfb2e94" | ||
35 | SRCREV_node-api-headers = "186e04b5e40e54d7fd1655bc67081cc483f12488" | ||
36 | SRCREV_node-addon-api = "39a25bf27788ff7a7ea5c64978c4dcd1e7b9d80d" | ||
37 | SRCREV_telemetry = "58e16c257a512ec7f451c9fccf9ff455065b285b" | ||
38 | SRCREV_FORMAT = "openvino_mkl_onednn_xbyak_json_ade_protobuf_gflags_zlib_node-api-headers_node-addon-api_mlas_telemetry" | ||
39 | |||
40 | LICENSE = "Apache-2.0 & MIT & BSD-3-Clause & Zlib" | ||
41 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
42 | file://thirdparty/xbyak/COPYRIGHT;md5=3c98edfaa50a86eeaef4c6109e803f16 \ | ||
43 | file://thirdparty/cnpy/LICENSE;md5=689f10b06d1ca2d4b1057e67b16cd580 \ | ||
44 | file://thirdparty/json/nlohmann_json/LICENSE.MIT;md5=f969127d7b7ed0a8a63c2bbeae002588 \ | ||
45 | file://thirdparty/ade/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
46 | file://thirdparty/gflags/gflags/COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df \ | ||
47 | file://thirdparty/zlib/zlib/LICENSE;md5=b51a40671bc46e961c0498897742c0b8 \ | ||
48 | file://src/plugins/intel_cpu/thirdparty/mlas/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
49 | file://src/plugins/intel_cpu/thirdparty/onednn/LICENSE;md5=3b64000f6e7d52516017622a37a94ce9 \ | ||
50 | file://src/plugins/intel_gpu/thirdparty/onednn_gpu/LICENSE;md5=3b64000f6e7d52516017622a37a94ce9 \ | ||
51 | file://node-api-headers-src/LICENSE;md5=6adb2909701d4605b4b2ae1a9b25d8bd \ | ||
52 | file://node-addon-api-src/LICENSE.md;md5=0492ef29a9d558a3e9660e7accc9ca6a \ | ||
53 | file://thirdparty/telemetry/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
54 | " | ||
55 | |||
56 | inherit cmake python3native pkgconfig qemu | ||
57 | |||
58 | S = "${WORKDIR}/git" | ||
59 | EXTRA_OECMAKE += " \ | ||
60 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ | ||
61 | -DENABLE_OPENCV=OFF \ | ||
62 | -DENABLE_INTEL_GNA=OFF \ | ||
63 | -DENABLE_SYSTEM_TBB=ON \ | ||
64 | -DPYTHON_EXECUTABLE=${PYTHON} \ | ||
65 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
66 | -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \ | ||
67 | -DTREAT_WARNING_AS_ERROR=FALSE \ | ||
68 | -DENABLE_DATA=FALSE \ | ||
69 | -DENABLE_SYSTEM_PUGIXML=TRUE \ | ||
70 | -DENABLE_OV_ONNX_FRONTEND=FALSE \ | ||
71 | -DUSE_BUILD_TYPE_SUBFOLDER=OFF \ | ||
72 | -DENABLE_FUZZING=OFF \ | ||
73 | -DENABLE_TBBBIND_2_5=OFF \ | ||
74 | -DCPACK_GENERATOR=RPM \ | ||
75 | -DENABLE_SYSTEM_FLATBUFFERS=ON \ | ||
76 | -DENABLE_SYSTEM_SNAPPY=ON \ | ||
77 | -DFETCHCONTENT_BASE_DIR="${S}" \ | ||
78 | -DENABLE_INTEL_NPU=OFF \ | ||
79 | " | ||
80 | |||
81 | DEPENDS += "\ | ||
82 | flatbuffers-native \ | ||
83 | pugixml \ | ||
84 | python3-pybind11 \ | ||
85 | python3-pybind11-native \ | ||
86 | qemu-native \ | ||
87 | snappy \ | ||
88 | tbb \ | ||
89 | " | ||
90 | |||
91 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
92 | COMPATIBLE_HOST:libc-musl = "null" | ||
93 | |||
94 | PACKAGECONFIG ?= "opencl samples" | ||
95 | PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE, -DENABLE_INTEL_GPU=FALSE, virtual/opencl-icd opencl-headers opencl-clhpp," | ||
96 | PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR} -DENABLE_PYTHON_PACKAGING=ON, -DENABLE_PYTHON=OFF, patchelf-native, python3 python3-numpy python3-progress" | ||
97 | PACKAGECONFIG[samples] = "-DENABLE_SAMPLES=ON -DENABLE_COMPILE_TOOL=ON, -DENABLE_SAMPLES=OFF -DENABLE_COMPILE_TOOL=OFF, opencv" | ||
98 | PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" | ||
99 | |||
100 | do_configure:prepend() { | ||
101 | # Dont set PROJECT_ROOT_DIR | ||
102 | sed -i -e 's:\${OpenVINO_SOURCE_DIR}::;' ${S}/src/CMakeLists.txt | ||
103 | |||
104 | # qemu wrapper that can be used by cmake to run target binaries. | ||
105 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" | ||
106 | cat > ${WORKDIR}/qemuwrapper << EOF | ||
107 | #!/bin/sh | ||
108 | $qemu_binary "\$@" | ||
109 | EOF | ||
110 | chmod +x ${WORKDIR}/qemuwrapper | ||
111 | } | ||
112 | |||
113 | do_install:append() { | ||
114 | rm -rf ${D}${prefix}/install_dependencies | ||
115 | rm -rf ${D}${prefix}/setupvars.sh | ||
116 | |||
117 | find ${B}/src/plugins/intel_cpu/cross-compiled/ -type f -name *_disp.cpp -exec sed -i -e 's%'"${S}"'%'"${TARGET_DBGSRC_DIR}"'%g' {} + | ||
118 | } | ||
119 | |||
120 | # Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR | ||
121 | # instead of RSS | ||
122 | SSTATE_SCAN_FILES:append = " *.cmake" | ||
123 | |||
124 | FILES:${PN} += "\ | ||
125 | ${libdir}/openvino-${PV}/lib*${SOLIBSDEV} \ | ||
126 | ${libdir}/openvino-${PV}/plugins.xml \ | ||
127 | ${libdir}/openvino-${PV}/cache.json \ | ||
128 | " | ||
129 | |||
130 | # Move inference engine samples into a separate package | ||
131 | PACKAGES =+ "${PN}-samples" | ||
132 | |||
133 | FILES:${PN}-samples = "${datadir}/openvino \ | ||
134 | ${bindir} \ | ||
135 | ${libdir}/libformat_reader.a \ | ||
136 | ${libdir}/libopencv_c_wrapper.a \ | ||
137 | " | ||
138 | |||
139 | RDEPENDS:${PN}-samples += "python3-core" | ||
140 | |||
141 | # Package for inference engine python API | ||
142 | PACKAGES =+ "${PN}-python3" | ||
143 | |||
144 | FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}" | ||
145 | |||
146 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+\.\d+\.\d+))$" | ||