From 023266fcbf67e4c8fc7c4f6b951948384ba8282b Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Fri, 21 Oct 2022 17:03:54 +0800 Subject: openvino-inference-engine : upgrade 2022.1.1 -> 2022.2.0 - Change gflag to shared as we are not building with static library. - We are using zlib from yocto recipe, so don't add zlib as third party package - Third party package mkl-dnn name changed to onednn upstream in openvino repo so changed the name accordingly in openvino-inference-engine recipe - Refresh patches Release Notes: https://github.com/openvinotoolkit/openvino/releases/tag/2022.2.0 Signed-off-by: Yogesh Tyagi Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- .../0001-Use-system-installed-dependencies.patch | 196 ++++++++++++ ...ence-engine-use-system-installed-packages.patch | 198 ------------ ...ix-installation-of-binaries-and-libraries.patch | 348 +++++++++++++++++++++ .../0002-inference-engine-installation-fixes.patch | 348 --------------------- ...03-Fix-build-issues-due-to-gflag-and-zlib.patch | 40 +++ .../opencv/openvino-inference-engine_2022.1.1.bb | 146 --------- .../opencv/openvino-inference-engine_2022.2.0.bb | 144 +++++++++ 7 files changed, 728 insertions(+), 692 deletions(-) create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Use-system-installed-dependencies.patch delete mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Fix-installation-of-binaries-and-libraries.patch delete mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-inference-engine-installation-fixes.patch create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch delete mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.1.1.bb create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.2.0.bb diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Use-system-installed-dependencies.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Use-system-installed-dependencies.patch new file mode 100644 index 00000000..2dde9880 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-Use-system-installed-dependencies.patch @@ -0,0 +1,196 @@ +From 86fc5a725883cf59086c319fca29ddb3e47fa7de Mon Sep 17 00:00:00 2001 +From: Anuj Mittal +Date: Thu, 7 Apr 2022 21:39:26 +0800 +Subject: [PATCH 1/2] Use system installed dependencies + +Use the system versions of libva, ade and zlib. + +Upstream-Status: Inappropriate +Signed-off-by: Anuj Mittal +--- + cmake/dependencies.cmake | 20 -------------------- + cmake/extra_modules.cmake | 4 ++-- + src/plugins/intel_gpu/include/va/va.h | 6 ------ + tests/fuzz/src/CMakeLists.txt | 3 +-- + thirdparty/CMakeLists.txt | 25 +++++++++++-------------- + thirdparty/cnpy/CMakeLists.txt | 2 +- + 6 files changed, 15 insertions(+), 45 deletions(-) + delete mode 100644 src/plugins/intel_gpu/include/va/va.h + +diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake +index 8d66a012b8..75db89b915 100644 +--- a/cmake/dependencies.cmake ++++ b/cmake/dependencies.cmake +@@ -27,26 +27,6 @@ get_linux_name(LINUX_OS_NAME) + + if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_SYSTEM_NAME MATCHES Linux AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") + set(protoc_version "3.18.2") +- +- RESOLVE_DEPENDENCY(SYSTEM_PROTOC_ROOT +- ARCHIVE_LIN "protoc-${protoc_version}-linux-x86_64.tar.gz" +- TARGET_PATH "${TEMP}/protoc-${protoc_version}-linux-x86_64" +- SHA256 "42fde2b6044c1f74c7e86d4e03b43aac87128ddf57ac6ed8c4eab7a1e21bbf21" +- ) +- debug_message(STATUS "host protoc-${protoc_version} root path = " ${SYSTEM_PROTOC_ROOT}) +- +- reset_deps_cache(SYSTEM_PROTOC) +- +- find_host_program( +- SYSTEM_PROTOC +- NAMES protoc +- PATHS "${SYSTEM_PROTOC_ROOT}/bin" +- NO_DEFAULT_PATH) +- if(NOT SYSTEM_PROTOC) +- message(FATAL_ERROR "[ONNX IMPORTER] Missing host protoc binary") +- endif() +- +- update_deps_cache(SYSTEM_PROTOC "${SYSTEM_PROTOC}" "Path to host protoc for ONNX Importer") + endif() + + if(ENABLE_INTEL_MYRIAD) +diff --git a/cmake/extra_modules.cmake b/cmake/extra_modules.cmake +index 72eed6ad3a..39e9674a11 100644 +--- a/cmake/extra_modules.cmake ++++ b/cmake/extra_modules.cmake +@@ -22,7 +22,7 @@ function(ie_generate_dev_package_config) + configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceEngineDeveloperPackageConfig.cmake.in" + "${CMAKE_BINARY_DIR}/InferenceEngineDeveloperPackageConfig.cmake" + INSTALL_DESTINATION share # not used +- PATH_VARS "OpenVINO_SOURCE_DIR;gflags_BINARY_DIR" ++ PATH_VARS "OpenVINO_SOURCE_DIR" + NO_CHECK_REQUIRED_COMPONENTS_MACRO) + + configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceEngineConfig-version.cmake.in" +@@ -53,7 +53,7 @@ function(ov_generate_dev_package_config) + configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINODeveloperPackageConfig.cmake.in" + "${CMAKE_BINARY_DIR}/OpenVINODeveloperPackageConfig.cmake" + INSTALL_DESTINATION share # not used +- PATH_VARS "OpenVINO_SOURCE_DIR;gflags_BINARY_DIR" ++ PATH_VARS "OpenVINO_SOURCE_DIR" + NO_CHECK_REQUIRED_COMPONENTS_MACRO) + + configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINOConfig-version.cmake.in" +diff --git a/src/plugins/intel_gpu/include/va/va.h b/src/plugins/intel_gpu/include/va/va.h +deleted file mode 100644 +index 5c8a5c6f6e..0000000000 +--- a/src/plugins/intel_gpu/include/va/va.h ++++ /dev/null +@@ -1,6 +0,0 @@ +-// Copyright (C) 2018-2022 Intel Corporation +-// SPDX-License-Identifier: Apache-2.0 +-// +- +-typedef cl_uint VASurfaceID; +-typedef void* VADisplay; +diff --git a/tests/fuzz/src/CMakeLists.txt b/tests/fuzz/src/CMakeLists.txt +index 5e6b7b168e..a81c51bb77 100644 +--- a/tests/fuzz/src/CMakeLists.txt ++++ b/tests/fuzz/src/CMakeLists.txt +@@ -10,14 +10,13 @@ add_custom_target(fuzz) + FILE(GLOB tests "*-fuzzer.cc") + + add_subdirectory(../../../thirdparty/cnpy ${CMAKE_CURRENT_BINARY_DIR}/cnpy) +-add_subdirectory(../../../thirdparty/zlib ${CMAKE_CURRENT_BINARY_DIR}/zlib) + + foreach(test_source ${tests}) + get_filename_component(test_name ${test_source} NAME_WE) + add_fuzzer(${test_name} ${test_source}) + + target_link_libraries(${test_name} PRIVATE +- openvino::runtime cnpy zlib) ++ openvino::runtime cnpy z) + + add_dependencies(fuzz ${test_name}) + +diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt +index 38b0a5439d..4cba1588fe 100644 +--- a/thirdparty/CMakeLists.txt ++++ b/thirdparty/CMakeLists.txt +@@ -14,7 +14,7 @@ add_subdirectory(ittapi) + add_subdirectory(itt_collector EXCLUDE_FROM_ALL) + add_subdirectory(cnpy EXCLUDE_FROM_ALL) + if(ENABLE_INTEL_GPU) +- add_subdirectory(ocl) ++ #add_subdirectory(ocl) + endif() + + add_subdirectory(xbyak EXCLUDE_FROM_ALL) +@@ -72,12 +72,11 @@ endif() + add_library(ocv_hal INTERFACE) + target_include_directories(ocv_hal INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ocv") + +-add_subdirectory(ade EXCLUDE_FROM_ALL) + add_subdirectory(fluid/modules/gapi EXCLUDE_FROM_ALL) +-set_target_properties(ade fluid PROPERTIES FOLDER thirdparty) +-openvino_developer_export_targets(COMPONENT openvino_common TARGETS ade fluid) ++set_target_properties(fluid PROPERTIES FOLDER thirdparty) ++openvino_developer_export_targets(COMPONENT openvino_common TARGETS fluid) ++ + +-ov_install_static_lib(ade openvino_common) + ov_install_static_lib(fluid openvino_common) + + # +@@ -93,8 +92,6 @@ if(gflags_FOUND) + set_target_properties(gflags PROPERTIES IMPORTED_GLOBAL ON) + message(STATUS "gflags (${gflags_VERSION}) is found at ${gflags_DIR}") + else() +- add_subdirectory(gflags EXCLUDE_FROM_ALL) +- openvino_developer_export_targets(COMPONENT openvino_common TARGETS gflags) + endif() + + # +@@ -119,13 +116,13 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND + set(Protobuf_DEBUG ON) + endif() + find_package(Protobuf 3.18.2 REQUIRED) +- set(Protobuf_LITE_LIBRARIES protobuf::libprotobuf-lite) +- set(Protobuf_LIBRARIES protobuf::libprotobuf) +- set(SYSTEM_PROTOC protobuf::protoc) ++ set(Protobuf_LITE_LIBRARIES protobuf::libprotobuf-lite) ++ set(Protobuf_LIBRARIES protobuf::libprotobuf) ++ #set(SYSTEM_PROTOC protobuf::protoc) + set(PROTOC_EXECUTABLE ${SYSTEM_PROTOC}) + + foreach(target ${SYSTEM_PROTOC} ${Protobuf_LIBRARIES} ${Protobuf_LITE_LIBRARIES}) +- set_property(TARGET ${target} PROPERTY IMPORTED_GLOBAL TRUE) ++ #set_property(TARGET ${target} PROPERTY IMPORTED_GLOBAL TRUE) + endforeach() + else() + add_subdirectory(protobuf EXCLUDE_FROM_ALL) +@@ -134,8 +131,8 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND + # forward variables used in the other places + set(SYSTEM_PROTOC ${SYSTEM_PROTOC} PARENT_SCOPE) + set(PROTOC_EXECUTABLE ${PROTOC_EXECUTABLE} PARENT_SCOPE) +- set(Protobuf_LIBRARIES ${Protobuf_LIBRARIES} PARENT_SCOPE) +- set(Protobuf_LITE_LIBRARIES ${Protobuf_LITE_LIBRARIES} PARENT_SCOPE) ++ set(Protobuf_LIBRARIES ${Protobuf_LIBRARY} PARENT_SCOPE) ++ set(Protobuf_LITE_LIBRARIES ${Protobuf_LITE_LIBRARY} PARENT_SCOPE) + set(Protobuf_INCLUDE_DIRS ${Protobuf_INCLUDE_DIRS} PARENT_SCOPE) + set(Protobuf_IN_FRONTEND ON PARENT_SCOPE) + +@@ -146,7 +143,7 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND + set(link_type INTERFACE) + endif() + if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG) +- target_compile_options(${target} ${link_type} -Wno-undef) ++ #target_compile_options(${target} ${link_type} -Wno-undef) + endif() + endforeach() + endif() +diff --git a/thirdparty/cnpy/CMakeLists.txt b/thirdparty/cnpy/CMakeLists.txt +index 556adb03c4..793de9845c 100644 +--- a/thirdparty/cnpy/CMakeLists.txt ++++ b/thirdparty/cnpy/CMakeLists.txt +@@ -13,7 +13,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$") + PRIVATE -Wno-all) + endif() + +-target_link_libraries(${TARGET_NAME} PUBLIC zlib::zlib) ++target_link_libraries(${TARGET_NAME} PUBLIC z) + target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") + + set_target_properties(${TARGET_NAME} PROPERTIES FOLDER thirdparty) +-- +2.37.3 + 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 60285eec..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch +++ /dev/null @@ -1,198 +0,0 @@ -From d997ee70a49cee8a577a81968c1d603a97bc614f Mon Sep 17 00:00:00 2001 -From: Anuj Mittal -Date: Thu, 7 Apr 2022 21:39:26 +0800 -Subject: [PATCH] Use system installed dependencies - -Use the system versions of libva, ade and zlib. - -Upstream-Status: Inappropriate -Signed-off-by: Anuj Mittal ---- - cmake/dependencies.cmake | 20 -------------------- - cmake/extra_modules.cmake | 4 ++-- - src/plugins/intel_gpu/include/va/va.h | 6 ------ - tests/fuzz/src/CMakeLists.txt | 3 +-- - thirdparty/CMakeLists.txt | 26 ++++++++++---------------- - thirdparty/cnpy/CMakeLists.txt | 2 +- - 6 files changed, 14 insertions(+), 47 deletions(-) - delete mode 100644 src/plugins/intel_gpu/include/va/va.h - -diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake -index 106af36c7d..45a3214100 100644 ---- a/cmake/dependencies.cmake -+++ b/cmake/dependencies.cmake -@@ -27,26 +27,6 @@ get_linux_name(LINUX_OS_NAME) - - if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_SYSTEM_NAME MATCHES Linux AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") - set(protoc_version "3.18.2") -- -- RESOLVE_DEPENDENCY(SYSTEM_PROTOC_ROOT -- ARCHIVE_LIN "protoc-${protoc_version}-linux-x86_64.tar.gz" -- TARGET_PATH "${TEMP}/protoc-${protoc_version}-linux-x86_64" -- SHA256 "42fde2b6044c1f74c7e86d4e03b43aac87128ddf57ac6ed8c4eab7a1e21bbf21" -- ) -- debug_message(STATUS "host protoc-${protoc_version} root path = " ${SYSTEM_PROTOC_ROOT}) -- -- reset_deps_cache(SYSTEM_PROTOC) -- -- find_host_program( -- SYSTEM_PROTOC -- NAMES protoc -- PATHS "${SYSTEM_PROTOC_ROOT}/bin" -- NO_DEFAULT_PATH) -- if(NOT SYSTEM_PROTOC) -- message(FATAL_ERROR "[ONNX IMPORTER] Missing host protoc binary") -- endif() -- -- update_deps_cache(SYSTEM_PROTOC "${SYSTEM_PROTOC}" "Path to host protoc for ONNX Importer") - endif() - - if(ENABLE_INTEL_MYRIAD) -diff --git a/cmake/extra_modules.cmake b/cmake/extra_modules.cmake -index e33e4378f1..f0cacdf6ff 100644 ---- a/cmake/extra_modules.cmake -+++ b/cmake/extra_modules.cmake -@@ -18,7 +18,7 @@ function(ie_generate_dev_package_config) - configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceEngineDeveloperPackageConfig.cmake.in" - "${CMAKE_BINARY_DIR}/InferenceEngineDeveloperPackageConfig.cmake" - INSTALL_DESTINATION share # not used -- PATH_VARS "OpenVINO_SOURCE_DIR;gflags_BINARY_DIR" -+ PATH_VARS "OpenVINO_SOURCE_DIR" - NO_CHECK_REQUIRED_COMPONENTS_MACRO) - - configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceEngineConfig-version.cmake.in" -@@ -45,7 +45,7 @@ function(ov_generate_dev_package_config) - configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINODeveloperPackageConfig.cmake.in" - "${CMAKE_BINARY_DIR}/OpenVINODeveloperPackageConfig.cmake" - INSTALL_DESTINATION share # not used -- PATH_VARS "OpenVINO_SOURCE_DIR;gflags_BINARY_DIR" -+ PATH_VARS "OpenVINO_SOURCE_DIR" - NO_CHECK_REQUIRED_COMPONENTS_MACRO) - - configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINOConfig-version.cmake.in" -diff --git a/src/plugins/intel_gpu/include/va/va.h b/src/plugins/intel_gpu/include/va/va.h -deleted file mode 100644 -index 5c8a5c6f6e..0000000000 ---- a/src/plugins/intel_gpu/include/va/va.h -+++ /dev/null -@@ -1,6 +0,0 @@ --// Copyright (C) 2018-2022 Intel Corporation --// SPDX-License-Identifier: Apache-2.0 --// -- --typedef cl_uint VASurfaceID; --typedef void* VADisplay; -diff --git a/tests/fuzz/src/CMakeLists.txt b/tests/fuzz/src/CMakeLists.txt -index 5e6b7b168e..a81c51bb77 100644 ---- a/tests/fuzz/src/CMakeLists.txt -+++ b/tests/fuzz/src/CMakeLists.txt -@@ -10,14 +10,13 @@ add_custom_target(fuzz) - FILE(GLOB tests "*-fuzzer.cc") - - add_subdirectory(../../../thirdparty/cnpy ${CMAKE_CURRENT_BINARY_DIR}/cnpy) --add_subdirectory(../../../thirdparty/zlib ${CMAKE_CURRENT_BINARY_DIR}/zlib) - - foreach(test_source ${tests}) - get_filename_component(test_name ${test_source} NAME_WE) - add_fuzzer(${test_name} ${test_source}) - - target_link_libraries(${test_name} PRIVATE -- openvino::runtime cnpy zlib) -+ openvino::runtime cnpy z) - - add_dependencies(fuzz ${test_name}) - -diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt -index 2d61c5fd7a..97b372998a 100644 ---- a/thirdparty/CMakeLists.txt -+++ b/thirdparty/CMakeLists.txt -@@ -12,10 +12,9 @@ endif() - - add_subdirectory(ittapi) - add_subdirectory(itt_collector EXCLUDE_FROM_ALL) --add_subdirectory(zlib EXCLUDE_FROM_ALL) - add_subdirectory(cnpy EXCLUDE_FROM_ALL) - if(ENABLE_INTEL_GPU) -- add_subdirectory(ocl) -+ #add_subdirectory(ocl) - endif() - - add_subdirectory(xbyak EXCLUDE_FROM_ALL) -@@ -52,21 +51,16 @@ endif() - add_library(ocv_hal INTERFACE) - target_include_directories(ocv_hal INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ocv") - --add_subdirectory(ade EXCLUDE_FROM_ALL) - add_subdirectory(fluid/modules/gapi EXCLUDE_FROM_ALL) --set_target_properties(ade fluid PROPERTIES FOLDER thirdparty) --openvino_developer_export_targets(COMPONENT openvino_common TARGETS ade fluid) -+set_target_properties(fluid PROPERTIES FOLDER thirdparty) -+openvino_developer_export_targets(COMPONENT openvino_common TARGETS fluid) - --ov_install_static_lib(ade openvino_common) - ov_install_static_lib(fluid openvino_common) - - # - # Gflags - # - --add_subdirectory(gflags EXCLUDE_FROM_ALL) --openvino_developer_export_targets(COMPONENT openvino_common TARGETS gflags) -- - # - # Google Tests framework - # -@@ -89,13 +83,13 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND - set(Protobuf_DEBUG ON) - endif() - find_package(Protobuf 3.18.2 REQUIRED) -- set(Protobuf_LITE_LIBRARIES protobuf::libprotobuf-lite) -- set(Protobuf_LIBRARIES protobuf::libprotobuf) -- set(SYSTEM_PROTOC protobuf::protoc) -+ set(Protobuf_LITE_LIBRARIES protobuf::libprotobuf-lite) -+ set(Protobuf_LIBRARIES protobuf::libprotobuf) -+ #set(SYSTEM_PROTOC protobuf::protoc) - set(PROTOC_EXECUTABLE ${SYSTEM_PROTOC}) - - foreach(target ${SYSTEM_PROTOC} ${Protobuf_LIBRARIES} ${Protobuf_LITE_LIBRARIES}) -- set_property(TARGET ${target} PROPERTY IMPORTED_GLOBAL TRUE) -+ #set_property(TARGET ${target} PROPERTY IMPORTED_GLOBAL TRUE) - endforeach() - else() - add_subdirectory(protobuf EXCLUDE_FROM_ALL) -@@ -104,8 +98,8 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND - # forward variables used in the other places - set(SYSTEM_PROTOC ${SYSTEM_PROTOC} PARENT_SCOPE) - set(PROTOC_EXECUTABLE ${PROTOC_EXECUTABLE} PARENT_SCOPE) -- set(Protobuf_LIBRARIES ${Protobuf_LIBRARIES} PARENT_SCOPE) -- set(Protobuf_LITE_LIBRARIES ${Protobuf_LITE_LIBRARIES} PARENT_SCOPE) -+ set(Protobuf_LIBRARIES ${Protobuf_LIBRARY} PARENT_SCOPE) -+ set(Protobuf_LITE_LIBRARIES ${Protobuf_LITE_LIBRARY} PARENT_SCOPE) - set(Protobuf_INCLUDE_DIRS ${Protobuf_INCLUDE_DIRS} PARENT_SCOPE) - set(Protobuf_IN_FRONTEND ON PARENT_SCOPE) - -@@ -116,7 +110,7 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND - set(link_type INTERFACE) - endif() - if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG) -- target_compile_options(${target} ${link_type} -Wno-undef) -+ #target_compile_options(${target} ${link_type} -Wno-undef) - endif() - endforeach() - endif() -diff --git a/thirdparty/cnpy/CMakeLists.txt b/thirdparty/cnpy/CMakeLists.txt -index 041031e923..793de9845c 100644 ---- a/thirdparty/cnpy/CMakeLists.txt -+++ b/thirdparty/cnpy/CMakeLists.txt -@@ -13,7 +13,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$") - PRIVATE -Wno-all) - endif() - --target_link_libraries(${TARGET_NAME} PUBLIC zlib) -+target_link_libraries(${TARGET_NAME} PUBLIC z) - target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") - - set_target_properties(${TARGET_NAME} PROPERTIES FOLDER thirdparty) --- -2.36.1 - diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Fix-installation-of-binaries-and-libraries.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Fix-installation-of-binaries-and-libraries.patch new file mode 100644 index 00000000..12c8054e --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Fix-installation-of-binaries-and-libraries.patch @@ -0,0 +1,348 @@ +From 3d55027cd86db299faeed0a4a97ddcec1baedd61 Mon Sep 17 00:00:00 2001 +From: Anuj Mittal +Date: Mon, 11 Apr 2022 11:11:23 +0800 +Subject: [PATCH 2/2] Fix installation of binaries and libraries + +Make sure binaries are installed correctly. + +Upstream-Status: Inappropriate + +Signed-off-by: Anuj Mittal +--- + CMakeLists.txt | 2 +- + cmake/developer_package/frontends/frontends.cmake | 2 +- + cmake/developer_package/packaging.cmake | 4 ++-- + cmake/developer_package/plugins/plugins.cmake | 2 +- + docs/CMakeLists.txt | 3 ++- + samples/CMakeLists.txt | 2 +- + samples/c/common/opencv_c_wrapper/CMakeLists.txt | 2 ++ + samples/cpp/CMakeLists.txt | 2 ++ + scripts/CMakeLists.txt | 10 +++++----- + src/bindings/c/src/CMakeLists.txt | 4 ++-- + src/cmake/openvino.cmake | 12 ++++++------ + src/common/preprocessing/CMakeLists.txt | 2 +- + src/core/CMakeLists.txt | 4 ++-- + src/inference/CMakeLists.txt | 2 +- + .../intel_gpu/src/kernel_selector/CMakeLists.txt | 2 +- + src/plugins/intel_myriad/myriad_dependencies.cmake | 2 +- + .../intel_myriad/myriad_plugin/CMakeLists.txt | 2 +- + tools/CMakeLists.txt | 2 +- + tools/compile_tool/CMakeLists.txt | 8 ++++---- + 19 files changed, 37 insertions(+), 32 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f570d4246c..d20ac60749 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,7 +111,7 @@ include(cmake/extra_modules.cmake) + add_subdirectory(docs) + add_subdirectory(tools) + add_subdirectory(scripts) +-add_subdirectory(licensing) ++#add_subdirectory(licensing) + + # + # CPack +diff --git a/cmake/developer_package/frontends/frontends.cmake b/cmake/developer_package/frontends/frontends.cmake +index 0779ed286d..f80cb9bb79 100644 +--- a/cmake/developer_package/frontends/frontends.cmake ++++ b/cmake/developer_package/frontends/frontends.cmake +@@ -2,7 +2,7 @@ + # SPDX-License-Identifier: Apache-2.0 + # + +-set(FRONTEND_INSTALL_INCLUDE "runtime/include/") ++set(FRONTEND_INSTALL_INCLUDE "include/") + set(FRONTEND_NAME_PREFIX "openvino_") + set(FRONTEND_NAME_SUFFIX "_frontend") + +diff --git a/cmake/developer_package/packaging.cmake b/cmake/developer_package/packaging.cmake +index 458ddade93..626eb6548a 100644 +--- a/cmake/developer_package/packaging.cmake ++++ b/cmake/developer_package/packaging.cmake +@@ -20,8 +20,8 @@ function(ie_cpack_set_library_dir) + set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER}/$ PARENT_SCOPE) + set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER}/$ PARENT_SCOPE) + else() +- set(IE_CPACK_LIBRARY_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) +- set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) ++ set(IE_CPACK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} PARENT_SCOPE) ++ set(IE_CPACK_RUNTIME_PATH ${CMAKE_INSTALL_BINDIR} PARENT_SCOPE) + set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) + endif() + endfunction() +diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake +index b748ebddef..fe670e88bc 100644 +--- a/cmake/developer_package/plugins/plugins.cmake ++++ b/cmake/developer_package/plugins/plugins.cmake +@@ -139,7 +139,7 @@ function(ie_add_plugin) + + if(BUILD_SHARED_LIBS) + install(TARGETS ${IE_PLUGIN_NAME} +- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} ++ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} + COMPONENT ${install_component}) + else() + ov_install_static_lib(${IE_PLUGIN_NAME} ${install_component}) +diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt +index 86b0e8652b..4f31d3cc4b 100644 +--- a/docs/CMakeLists.txt ++++ b/docs/CMakeLists.txt +@@ -36,9 +36,10 @@ if(NOT ENABLE_DOCKER) + foreach(target openvino_template_plugin template_extension openvino_template_extension) + if(TARGET ${target}) + install(TARGETS ${target} +- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} ++ LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} + COMPONENT tests + EXCLUDE_FROM_ALL) ++ install(TARGETS ${target} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif() + endforeach() + endif() +diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt +index 8101b5e328..6abe8c20ce 100644 +--- a/samples/CMakeLists.txt ++++ b/samples/CMakeLists.txt +@@ -9,7 +9,7 @@ add_subdirectory(c) + if(TARGET format_reader) + install(TARGETS format_reader + RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT tests EXCLUDE_FROM_ALL +- LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT tests EXCLUDE_FROM_ALL) ++ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT tests) + endif() + + openvino_developer_export_targets(COMPONENT openvino_common TARGETS format_reader ie_samples_utils) +diff --git a/samples/c/common/opencv_c_wrapper/CMakeLists.txt b/samples/c/common/opencv_c_wrapper/CMakeLists.txt +index 2755579a0f..4a5f5b424f 100644 +--- a/samples/c/common/opencv_c_wrapper/CMakeLists.txt ++++ b/samples/c/common/opencv_c_wrapper/CMakeLists.txt +@@ -34,3 +34,5 @@ install( + RUNTIME DESTINATION samples_bin/ COMPONENT samples_bin EXCLUDE_FROM_ALL + LIBRARY DESTINATION samples_bin/ COMPONENT samples_bin EXCLUDE_FROM_ALL + ) ++ ++install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) +diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt +index 3628c8283a..186540940f 100644 +--- a/samples/cpp/CMakeLists.txt ++++ b/samples/cpp/CMakeLists.txt +@@ -258,6 +258,8 @@ macro(ie_add_sample) + COMPONENT samples_bin + EXCLUDE_FROM_ALL) + ++ install(TARGETS ${IE_SAMPLE_NAME} DESTINATION bin) ++ + # create global target with all samples / demo apps + if(NOT TARGET ie_samples) + add_custom_target(ie_samples ALL) +diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt +index 4e9f76638f..6d8df5f0a1 100644 +--- a/scripts/CMakeLists.txt ++++ b/scripts/CMakeLists.txt +@@ -37,7 +37,7 @@ ie_shellcheck_process(DIRECTORY "${OpenVINO_SOURCE_DIR}" + + # install setupvars + +-ie_cpack_add_component(setupvars REQUIRED) ++#ie_cpack_add_component(setupvars REQUIRED) + + if(UNIX) + set(_setupvars_file setupvars/setupvars.sh) +@@ -54,13 +54,13 @@ elseif(WIN32) + file(WRITE "${_setupvars_file}" "${_setupvars_content}") + endif() + endif() +-install(PROGRAMS "${_setupvars_file}" +- DESTINATION . +- COMPONENT setupvars) ++#install(PROGRAMS "${_setupvars_file}" ++# DESTINATION . ++# COMPONENT setupvars) + + # install install_dependencies + +-if(LINUX) ++if (FALSE) + ie_cpack_add_component(install_dependencies REQUIRED) + install(DIRECTORY install_dependencies/ + DESTINATION install_dependencies +diff --git a/src/bindings/c/src/CMakeLists.txt b/src/bindings/c/src/CMakeLists.txt +index 9200d0bda1..b3636e0716 100644 +--- a/src/bindings/c/src/CMakeLists.txt ++++ b/src/bindings/c/src/CMakeLists.txt +@@ -43,8 +43,8 @@ install(TARGETS ${TARGET_NAME} EXPORT OpenVINOTargets + RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core_c + ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT core_c + LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core_c +- INCLUDES DESTINATION runtime/include/ie) ++ INCLUDES DESTINATION include/ie) + + install(DIRECTORY ${InferenceEngine_C_API_SOURCE_DIR}/include/ +- DESTINATION runtime/include/ie ++ DESTINATION include/ie + COMPONENT core_c_dev) +diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake +index 340896e3a8..9bda84fe51 100644 +--- a/src/cmake/openvino.cmake ++++ b/src/cmake/openvino.cmake +@@ -62,8 +62,8 @@ install(TARGETS ${TARGET_NAME} EXPORT OpenVINOTargets + RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core + ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT core + LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core +- INCLUDES DESTINATION runtime/include +- runtime/include/ie) ++ INCLUDES DESTINATION include ++ include/ie) + + # + # Add openvin::dev target +@@ -107,7 +107,7 @@ ie_cpack_add_component(core_dev REQUIRED DEPENDS core ${core_dev_components}) + + if(BUILD_SHARED_LIBS) + install(FILES $/plugins.xml +- DESTINATION ${IE_CPACK_RUNTIME_PATH} ++ DESTINATION ${IE_CPACK_LIBRARY_PATH} + COMPONENT core) + + # for InferenceEngineUnitTest +@@ -126,7 +126,7 @@ endif() + install(EXPORT OpenVINOTargets + FILE OpenVINOTargets.cmake + NAMESPACE openvino:: +- DESTINATION runtime/cmake ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenVINO + COMPONENT core_dev) + + set(PUBLIC_HEADERS_DIR "${OpenVINO_SOURCE_DIR}/src/inference/include") +@@ -167,10 +167,10 @@ configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINOConfig-version.cm + + install(FILES "${CMAKE_BINARY_DIR}/share/InferenceEngineConfig.cmake" + "${CMAKE_BINARY_DIR}/InferenceEngineConfig-version.cmake" +- DESTINATION runtime/cmake ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/InferenceEngine + COMPONENT core_dev) + + install(FILES "${CMAKE_BINARY_DIR}/share/OpenVINOConfig.cmake" + "${CMAKE_BINARY_DIR}/OpenVINOConfig-version.cmake" +- DESTINATION runtime/cmake ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenVINO + COMPONENT core_dev) +diff --git a/src/common/preprocessing/CMakeLists.txt b/src/common/preprocessing/CMakeLists.txt +index e41e286c95..11aaffca6a 100644 +--- a/src/common/preprocessing/CMakeLists.txt ++++ b/src/common/preprocessing/CMakeLists.txt +@@ -202,7 +202,7 @@ openvino_developer_export_targets(COMPONENT core TARGETS ${TARGET_NAME}) + + if(BUILD_SHARED_LIBS) + install(TARGETS ${TARGET_NAME} +- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core) ++ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core) + else() + ov_install_static_lib(${TARGET_NAME} core) + endif() +diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt +index 86b195ee1c..867121ee50 100644 +--- a/src/core/CMakeLists.txt ++++ b/src/core/CMakeLists.txt +@@ -127,7 +127,7 @@ target_include_directories(ngraph INTERFACE $ -Date: Mon, 11 Apr 2022 11:11:23 +0800 -Subject: [PATCH] Fix installation of binaries and libraries - -Make sure binaries are installed correctly. - -Upstream-Status: Inappropriate - -Signed-off-by: Anuj Mittal ---- - CMakeLists.txt | 2 +- - cmake/developer_package/frontends/frontends.cmake | 2 +- - cmake/developer_package/packaging.cmake | 4 ++-- - cmake/developer_package/plugins/plugins.cmake | 2 +- - docs/CMakeLists.txt | 3 ++- - samples/CMakeLists.txt | 2 +- - samples/c/common/opencv_c_wrapper/CMakeLists.txt | 2 ++ - samples/cpp/CMakeLists.txt | 2 ++ - scripts/CMakeLists.txt | 10 +++++----- - src/bindings/c/src/CMakeLists.txt | 4 ++-- - src/cmake/openvino.cmake | 12 ++++++------ - src/common/preprocessing/CMakeLists.txt | 2 +- - src/core/CMakeLists.txt | 4 ++-- - src/inference/CMakeLists.txt | 2 +- - .../intel_gpu/src/kernel_selector/CMakeLists.txt | 2 +- - src/plugins/intel_myriad/myriad_dependencies.cmake | 2 +- - .../intel_myriad/myriad_plugin/CMakeLists.txt | 2 +- - tools/CMakeLists.txt | 2 +- - tools/compile_tool/CMakeLists.txt | 8 ++++---- - 19 files changed, 37 insertions(+), 32 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index beb0214284..c9ffa7fcae 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -106,7 +106,7 @@ include(cmake/extra_modules.cmake) - add_subdirectory(docs) - add_subdirectory(tools) - add_subdirectory(scripts) --add_subdirectory(licensing) -+#add_subdirectory(licensing) - - # - # CPack -diff --git a/cmake/developer_package/frontends/frontends.cmake b/cmake/developer_package/frontends/frontends.cmake -index 39b23fe655..aa638c0778 100644 ---- a/cmake/developer_package/frontends/frontends.cmake -+++ b/cmake/developer_package/frontends/frontends.cmake -@@ -2,7 +2,7 @@ - # SPDX-License-Identifier: Apache-2.0 - # - --set(FRONTEND_INSTALL_INCLUDE "runtime/include/") -+set(FRONTEND_INSTALL_INCLUDE "include/") - set(FRONTEND_NAME_PREFIX "openvino_") - set(FRONTEND_NAME_SUFFIX "_frontend") - -diff --git a/cmake/developer_package/packaging.cmake b/cmake/developer_package/packaging.cmake -index cc287ff1f3..2daee6611e 100644 ---- a/cmake/developer_package/packaging.cmake -+++ b/cmake/developer_package/packaging.cmake -@@ -20,8 +20,8 @@ function(ie_cpack_set_library_dir) - set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER}/$ PARENT_SCOPE) - set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER}/$ PARENT_SCOPE) - else() -- set(IE_CPACK_LIBRARY_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) -- set(IE_CPACK_RUNTIME_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) -+ set(IE_CPACK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} PARENT_SCOPE) -+ set(IE_CPACK_RUNTIME_PATH ${CMAKE_INSTALL_BINDIR} PARENT_SCOPE) - set(IE_CPACK_ARCHIVE_PATH runtime/lib/${ARCH_FOLDER} PARENT_SCOPE) - endif() - endfunction() -diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake -index a630d6c354..779c43631a 100644 ---- a/cmake/developer_package/plugins/plugins.cmake -+++ b/cmake/developer_package/plugins/plugins.cmake -@@ -138,7 +138,7 @@ function(ie_add_plugin) - - if(BUILD_SHARED_LIBS) - install(TARGETS ${IE_PLUGIN_NAME} -- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} -+ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} - COMPONENT ${install_component}) - else() - ov_install_static_lib(${IE_PLUGIN_NAME} ${install_component}) -diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt -index 86b0e8652b..4f31d3cc4b 100644 ---- a/docs/CMakeLists.txt -+++ b/docs/CMakeLists.txt -@@ -36,9 +36,10 @@ if(NOT ENABLE_DOCKER) - foreach(target openvino_template_plugin template_extension openvino_template_extension) - if(TARGET ${target}) - install(TARGETS ${target} -- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} -+ LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} - COMPONENT tests - EXCLUDE_FROM_ALL) -+ install(TARGETS ${target} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - endif() - endforeach() - endif() -diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt -index 8101b5e328..6abe8c20ce 100644 ---- a/samples/CMakeLists.txt -+++ b/samples/CMakeLists.txt -@@ -9,7 +9,7 @@ add_subdirectory(c) - if(TARGET format_reader) - install(TARGETS format_reader - RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT tests EXCLUDE_FROM_ALL -- LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT tests EXCLUDE_FROM_ALL) -+ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT tests) - endif() - - openvino_developer_export_targets(COMPONENT openvino_common TARGETS format_reader ie_samples_utils) -diff --git a/samples/c/common/opencv_c_wrapper/CMakeLists.txt b/samples/c/common/opencv_c_wrapper/CMakeLists.txt -index 2755579a0f..4a5f5b424f 100644 ---- a/samples/c/common/opencv_c_wrapper/CMakeLists.txt -+++ b/samples/c/common/opencv_c_wrapper/CMakeLists.txt -@@ -34,3 +34,5 @@ install( - RUNTIME DESTINATION samples_bin/ COMPONENT samples_bin EXCLUDE_FROM_ALL - LIBRARY DESTINATION samples_bin/ COMPONENT samples_bin EXCLUDE_FROM_ALL - ) -+ -+install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) -diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt -index 9a73582a73..70c4147f3f 100644 ---- a/samples/cpp/CMakeLists.txt -+++ b/samples/cpp/CMakeLists.txt -@@ -222,6 +222,8 @@ macro(ie_add_sample) - EXCLUDE_FROM_ALL - ) - -+ install(TARGETS ${IE_SAMPLE_NAME} DESTINATION bin) -+ - # create global target with all samples / demo apps - if(NOT TARGET ie_samples) - add_custom_target(ie_samples ALL) -diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt -index 9ad26ba952..0853e23706 100644 ---- a/scripts/CMakeLists.txt -+++ b/scripts/CMakeLists.txt -@@ -28,7 +28,7 @@ ie_shellcheck_process(DIRECTORY "${OpenVINO_SOURCE_DIR}" - - # install setupvars - --ie_cpack_add_component(setupvars REQUIRED) -+#ie_cpack_add_component(setupvars REQUIRED) - - if(UNIX) - set(_setupvars_file setupvars/setupvars.sh) -@@ -43,13 +43,13 @@ elseif(WIN32) - file(WRITE "${_setupvars_file}" "${_setupvars_content}") - endif() - endif() --install(PROGRAMS "${_setupvars_file}" -- DESTINATION . -- COMPONENT setupvars) -+#install(PROGRAMS "${_setupvars_file}" -+# DESTINATION . -+# COMPONENT setupvars) - - # install install_dependencies - --if(LINUX) -+if (FALSE) - ie_cpack_add_component(install_dependencies REQUIRED) - install(DIRECTORY install_dependencies/ - DESTINATION install_dependencies -diff --git a/src/bindings/c/src/CMakeLists.txt b/src/bindings/c/src/CMakeLists.txt -index 9200d0bda1..b3636e0716 100644 ---- a/src/bindings/c/src/CMakeLists.txt -+++ b/src/bindings/c/src/CMakeLists.txt -@@ -43,8 +43,8 @@ install(TARGETS ${TARGET_NAME} EXPORT OpenVINOTargets - RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core_c - ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT core_c - LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core_c -- INCLUDES DESTINATION runtime/include/ie) -+ INCLUDES DESTINATION include/ie) - - install(DIRECTORY ${InferenceEngine_C_API_SOURCE_DIR}/include/ -- DESTINATION runtime/include/ie -+ DESTINATION include/ie - COMPONENT core_c_dev) -diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake -index ddd016d14e..76db0f9927 100644 ---- a/src/cmake/openvino.cmake -+++ b/src/cmake/openvino.cmake -@@ -59,8 +59,8 @@ install(TARGETS ${TARGET_NAME} EXPORT OpenVINOTargets - RUNTIME DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core - ARCHIVE DESTINATION ${IE_CPACK_ARCHIVE_PATH} COMPONENT core - LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core -- INCLUDES DESTINATION runtime/include -- runtime/include/ie) -+ INCLUDES DESTINATION include -+ include/ie) - - # --------------- OpenVINO runtime library dev ------------------------------ - add_library(${TARGET_NAME}_dev INTERFACE) -@@ -95,7 +95,7 @@ ie_cpack_add_component(core_dev REQUIRED DEPENDS core ${core_dev_components}) - - if(BUILD_SHARED_LIBS) - install(FILES $/plugins.xml -- DESTINATION ${IE_CPACK_RUNTIME_PATH} -+ DESTINATION ${IE_CPACK_LIBRARY_PATH} - COMPONENT core) - - # for InferenceEngineUnitTest -@@ -114,7 +114,7 @@ endif() - install(EXPORT OpenVINOTargets - FILE OpenVINOTargets.cmake - NAMESPACE openvino:: -- DESTINATION runtime/cmake -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenVINO - COMPONENT core_dev) - - # Build tree -@@ -160,10 +160,10 @@ configure_file("${OpenVINO_SOURCE_DIR}/cmake/templates/OpenVINOConfig-version.cm - install(FILES "${CMAKE_BINARY_DIR}/share/InferenceEngineConfig.cmake" - "${CMAKE_BINARY_DIR}/InferenceEngineConfig-version.cmake" - "${OpenVINO_SOURCE_DIR}/src/cmake/ie_parallel.cmake" -- DESTINATION runtime/cmake -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/InferenceEngine - COMPONENT core_dev) - - install(FILES "${CMAKE_BINARY_DIR}/share/OpenVINOConfig.cmake" - "${CMAKE_BINARY_DIR}/OpenVINOConfig-version.cmake" -- DESTINATION runtime/cmake -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenVINO - COMPONENT core_dev) -diff --git a/src/common/preprocessing/CMakeLists.txt b/src/common/preprocessing/CMakeLists.txt -index e41e286c95..11aaffca6a 100644 ---- a/src/common/preprocessing/CMakeLists.txt -+++ b/src/common/preprocessing/CMakeLists.txt -@@ -202,7 +202,7 @@ openvino_developer_export_targets(COMPONENT core TARGETS ${TARGET_NAME}) - - if(BUILD_SHARED_LIBS) - install(TARGETS ${TARGET_NAME} -- LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT core) -+ LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core) - else() - ov_install_static_lib(${TARGET_NAME} core) - endif() -diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt -index cc64b94ca3..5f0dcf20cf 100644 ---- a/src/core/CMakeLists.txt -+++ b/src/core/CMakeLists.txt -@@ -114,7 +114,7 @@ target_include_directories(ngraph INTERFACE $ +Date: Fri, 30 Sep 2022 20:26:04 +0800 +Subject: [PATCH] Fix build issues due to gflag and zlib + +Change gflag to shared as we are not building with static library. +We are using zlib from host, so don't add zlib as third party package + +Upstream-Status: Inappropriate + +Signed-off-by: Yogesh Tyagi +--- + thirdparty/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt +index 4cba1588fe..f82bf3148b 100644 +--- a/thirdparty/CMakeLists.txt ++++ b/thirdparty/CMakeLists.txt +@@ -39,7 +39,7 @@ if(NOT CMAKE_CROSSCOMPILING) + endif() + + if(NOT zlib_FOUND) +- add_subdirectory(zlib EXCLUDE_FROM_ALL) ++ #add_subdirectory(zlib EXCLUDE_FROM_ALL) + endif() + + # +@@ -85,7 +85,7 @@ ov_install_static_lib(fluid openvino_common) + + if(NOT APPLE) + # on Apple only dynamic libraries are available +- find_package(gflags QUIET COMPONENTS nothreads_static) ++ find_package(gflags QUIET COMPONENTS nothreads_shared) + endif() + + if(gflags_FOUND) +-- +2.37.3 + diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.1.1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.1.1.bb deleted file mode 100644 index 8acd72f7..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.1.1.bb +++ /dev/null @@ -1,146 +0,0 @@ -SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit" -HOMEPAGE = "https://github.com/opencv/dldt" -DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ -deep learning models through a high-level C++ Inference Engine API \ -integrated with application logic." - -SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;branch=releases/2022/1.1;lfs=0 \ - https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/usb-ma2x8x/firmware_usb-ma2x8x_1875.zip;name=usb_ma2x8x \ - https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/pcie-ma2x8x/firmware_pcie-ma2x8x_1875.zip;name=pcie_ma2x8x \ - git://github.com/openvinotoolkit/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_cpu/thirdparty/mkl-dnn;name=mkl;nobranch=1 \ - git://github.com/oneapi-src/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_gpu/thirdparty/onednn_gpu;name=onednn;branch=master \ - git://github.com/herumi/xbyak.git;protocol=https;destsuffix=git/thirdparty/xbyak;name=xbyak;branch=master \ - git://github.com/pybind/pybind11.git;protocol=https;destsuffix=git/src/bindings/python/thirdparty/pybind11;name=pybind11;branch=master \ - git://github.com/protocolbuffers/protobuf.git;protocol=https;destsuffix=git/thirdparty/protobuf/protobuf;name=protobuf;branch=3.18.x \ - git://github.com/nlohmann/json.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json;name=json;branch=master \ - git://github.com/pboettch/json-schema-validator.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json_schema_validator;name=jsonschema;branch=main \ - git://github.com/openvinotoolkit/open_model_zoo.git;protocol=https;destsuffix=git/thirdparty/open_model_zoo;name=omz;branch=releases/2022/1 \ - file://0001-inference-engine-use-system-installed-packages.patch \ - file://0002-inference-engine-installation-fixes.patch \ - file://cython-cmake.patch \ - " - -SRCREV = "39aba80957e10b66a6c8f3f590c2d90e8238ca75" -SRCREV_mkl = "82ca2f931c1d588b67d154d873136d4af1ffb3a8" -SRCREV_onednn = "9e2bf22e51726ad36ddae90c7caf2898d124baa6" -SRCREV_xbyak = "8d1e41b650890080fb77548372b6236bbd4079f9" -SRCREV_pybind11 = "d71ba0cb73616c493d35699a8a9283aa64ef0f6b" -SRCREV_protobuf = "6c6b0778b70f35f93c2f0dee30e5d12ad2a83eea" -SRCREV_json = "fec56a1a16c6e1c1b1f4e116a20e79398282626c" -SRCREV_jsonschema = "b1ef8628326cf0b53612f12784fd245e5e4382f1" -SRCREV_omz = "0c94071faef095f544a228f8455718fbd653950e" - -SRC_URI[usb_ma2x8x.sha256sum] = "e65fcc1c6b0f3e9d814e53022c212ec0a2b83197a9df38badb298fb85ccf3acf" -SRC_URI[pcie_ma2x8x.sha256sum] = "b11368fec2036d96fb703d2a40b171184fefe89f27e74a988ef1ca34260a2bc5" - -LICENSE = "Apache-2.0 & MIT & BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ - file://thirdparty/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa \ - file://thirdparty/cnpy/LICENSE;md5=689f10b06d1ca2d4b1057e67b16cd580 \ - file://thirdparty/protobuf/protobuf/LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b \ - file://thirdparty/json/nlohmann_json/LICENSE.MIT;md5=441793d25a658d58d79a1f87516a6ad1 \ - file://thirdparty/json/nlohmann_json_schema_validator/LICENSE;md5=c441d022da1b1663c70181a32225d006 \ - file://thirdparty/open_model_zoo/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ - file://src/plugins/intel_cpu/thirdparty/mkl-dnn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ - file://src/plugins/intel_gpu/thirdparty/onednn_gpu/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ - file://src/bindings/python/thirdparty/pybind11/LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f \ -" - -inherit cmake python3native - -S = "${WORKDIR}/git" -EXTRA_OECMAKE += " \ - -DENABLE_OPENCV=OFF \ - -DOpenCV_DIR=${STAGING_LIBDIR}/cmake \ - -DENABLE_PLUGIN_RPATH=0 \ - -DENABLE_INTEL_GNA=OFF \ - -DENABLE_SYSTEM_TBB=ON \ - -DPYTHON_EXECUTABLE=${PYTHON} \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \ - -DENABLE_SAMPLES=ON \ - -DTREAT_WARNING_AS_ERROR=FALSE \ - -DENABLE_DATA=FALSE \ - -DENABLE_SYSTEM_PUGIXML=TRUE \ - -DENABLE_SYSTEM_PROTOBUF=TRUE \ - -DProtobuf_LIBRARIES=protobuf \ - -DProtobuf_LITE_LIBRARIES=protobuf-lite \ - -DProtobuf_INCLUDE_DIR=${STAGING_INCDIR} \ - -DSYSTEM_PROTOC=${STAGING_BINDIR_NATIVE}/protoc \ - -DENABLE_OV_ONNX_FRONTEND=FALSE \ - -DUSE_BUILD_TYPE_SUBFOLDER=OFF \ - " - -DEPENDS += "libusb1 \ - ade \ - opencv \ - pugixml \ - protobuf \ - protobuf-native \ - tbb \ - zlib \ - " - -COMPATIBLE_HOST = '(x86_64).*-linux' -COMPATIBLE_HOST:libc-musl = "null" - -PACKAGECONFIG ?= "vpu opencl" -PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE -DOpenCL_INCLUDE_DIR=${STAGING_INCDIR} -DOpenCL_LIBRARY=${STAGING_LIBDIR}/libOpenCL.so, -DENABLE_INTEL_GPU=FALSE, ocl-icd opencl-headers opencl-clhpp libva," -PACKAGECONFIG[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-opencv python3-progress python3-cython" -PACKAGECONFIG[vpu] = "-DENABLE_INTEL_MYRIAD=ON -DVPU_FIRMWARE_USB-MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd -DVPU_FIRMWARE_PCIE-MA2X8X_FILE=../mvnc/pcie-ma2x8x.mvcmd,-DENABLE_INTEL_MYRIAD=OFF,,${PN}-vpu-firmware" -PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" - -do_configure:prepend() { - # Dont set PROJECT_ROOT_DIR - sed -i -e 's:\${CMAKE_CURRENT_SOURCE_DIR}::;' ${S}/src/CMakeLists.txt -} - -do_install:append() { - if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then - install -d ${D}${datadir}/openvino - mv ${D}/usr/samples/python ${D}${datadir}/openvino/ - - install -d ${D}${PYTHON_SITEPACKAGES_DIR} - mv ${D}${prefix}/python/${PYTHON_DIR}/openvino ${D}${PYTHON_SITEPACKAGES_DIR}/ - mv ${D}${prefix}/python/${PYTHON_DIR}/ngraph ${D}${PYTHON_SITEPACKAGES_DIR}/ - - rm -rf ${D}${prefix}/python - fi - - rm -rf ${D}${prefix}/deployment_tools - - # Remove the samples source directory. We install the built samples. - rm -rf ${D}/usr/samples - - 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 -} - -# Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR -# instead of RSS -SSTATE_SCAN_FILES:append = " *.cmake" - -FILES:${PN}-dev = "${includedir} \ - ${libdir}/cmake \ - " - -FILES:${PN} += "${libdir}/lib*${SOLIBSDEV} \ - ${datadir}/openvino \ - ${libdir}/custom_kernels \ - ${libdir}/plugins.xml \ - ${libdir}/cache.json \ - " - -# Move inference engine samples into a separate package -PACKAGES =+ "${PN}-samples ${PN}-vpu-firmware" - -FILES:${PN}-samples = "${datadir}/openvino \ - ${bindir} \ - " -FILES:${PN}-vpu-firmware += "${libdir}/*.mvcmd" - -# Package for inference engine python API -PACKAGES =+ "${PN}-${PYTHON_PN}" - -FILES:${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}" - -UPSTREAM_CHECK_GITTAGREGEX = "(?P(\d+(\.\d+)+))" diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.2.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.2.0.bb new file mode 100644 index 00000000..71c45082 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2022.2.0.bb @@ -0,0 +1,144 @@ +SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit" +HOMEPAGE = "https://github.com/opencv/dldt" +DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ +deep learning models through a high-level C++ Inference Engine API \ +integrated with application logic." + +SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;branch=releases/2022/2;lfs=0 \ + https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/usb-ma2x8x/firmware_usb-ma2x8x_20220307_34.zip;name=usb_ma2x8x \ + https://download.01.org/opencv/master/openvinotoolkit/thirdparty/unified/VPU/pcie-ma2x8x/firmware_pcie-ma2x8x_20220307_34.zip;name=pcie_ma2x8x \ + git://github.com/openvinotoolkit/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_cpu/thirdparty/onednn;name=mkl;nobranch=1 \ + git://github.com/oneapi-src/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_gpu/thirdparty/onednn_gpu;name=onednn;nobranch=1 \ + git://github.com/herumi/xbyak.git;protocol=https;destsuffix=git/thirdparty/xbyak;name=xbyak;branch=master \ + git://github.com/pybind/pybind11.git;protocol=https;destsuffix=git/src/bindings/python/thirdparty/pybind11;name=pybind11;branch=master \ + git://github.com/nlohmann/json.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json;name=json;branch=master \ + git://github.com/pboettch/json-schema-validator.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json_schema_validator;name=jsonschema;branch=main \ + git://github.com/openvinotoolkit/open_model_zoo.git;protocol=https;destsuffix=git/thirdparty/open_model_zoo;name=omz;branch=releases/2022/2 \ + file://0001-Use-system-installed-dependencies.patch \ + file://0002-Fix-installation-of-binaries-and-libraries.patch \ + file://0003-Fix-build-issues-due-to-gflag-and-zlib.patch \ + file://cython-cmake.patch \ + " + +SRCREV = "af16ea1d79a494503a54cff67a2856094e447931" +SRCREV_mkl = "2a749c577f8a841a396d4bd46eaf311b7e7dc089" +SRCREV_onednn = "efbf9b5e8c12666314f3484ce279cee0a1a91a44" +SRCREV_xbyak = "8d1e41b650890080fb77548372b6236bbd4079f9" +SRCREV_pybind11 = "d71ba0cb73616c493d35699a8a9283aa64ef0f6b" +SRCREV_json = "fec56a1a16c6e1c1b1f4e116a20e79398282626c" +SRCREV_jsonschema = "b1ef8628326cf0b53612f12784fd245e5e4382f1" +SRCREV_omz = "1919ae9d42c19d8f3bafc2417256ab3a67b6db79" + +SRC_URI[usb_ma2x8x.sha256sum] = "877c4e1616d14a94dd2764f4f32f1c1aa2180dcd64ad1823b31efdc3f56ad593" +SRC_URI[pcie_ma2x8x.sha256sum] = "aabff3d817431792ef9e17056448979c2cdbb484ad4b0af9e68cb874ee10eef5" + +LICENSE = "Apache-2.0 & MIT & BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ + file://thirdparty/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa \ + file://thirdparty/cnpy/LICENSE;md5=689f10b06d1ca2d4b1057e67b16cd580 \ + file://thirdparty/json/nlohmann_json/LICENSE.MIT;md5=441793d25a658d58d79a1f87516a6ad1 \ + file://thirdparty/json/nlohmann_json_schema_validator/LICENSE;md5=c441d022da1b1663c70181a32225d006 \ + file://thirdparty/open_model_zoo/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ + file://src/plugins/intel_cpu/thirdparty/onednn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ + file://src/plugins/intel_gpu/thirdparty/onednn_gpu/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ + file://src/bindings/python/thirdparty/pybind11/LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f \ +" + +inherit cmake python3native + +S = "${WORKDIR}/git" +EXTRA_OECMAKE += " \ + -DENABLE_OPENCV=OFF \ + -DOpenCV_DIR=${STAGING_LIBDIR}/cmake \ + -DENABLE_PLUGIN_RPATH=0 \ + -DENABLE_INTEL_GNA=OFF \ + -DENABLE_SYSTEM_TBB=ON \ + -DPYTHON_EXECUTABLE=${PYTHON} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \ + -DENABLE_SAMPLES=ON \ + -DTREAT_WARNING_AS_ERROR=FALSE \ + -DENABLE_DATA=FALSE \ + -DENABLE_SYSTEM_PUGIXML=TRUE \ + -DENABLE_SYSTEM_PROTOBUF=TRUE \ + -DProtobuf_LIBRARIES=protobuf \ + -DProtobuf_LITE_LIBRARIES=protobuf-lite \ + -DProtobuf_INCLUDE_DIR=${STAGING_INCDIR} \ + -DSYSTEM_PROTOC=${STAGING_BINDIR_NATIVE}/protoc \ + -DENABLE_OV_ONNX_FRONTEND=FALSE \ + -DUSE_BUILD_TYPE_SUBFOLDER=OFF \ + " + +DEPENDS += "libusb1 \ + ade \ + opencv \ + pugixml \ + protobuf \ + protobuf-native \ + tbb \ + zlib \ + " + +COMPATIBLE_HOST = '(x86_64).*-linux' +COMPATIBLE_HOST:libc-musl = "null" + +PACKAGECONFIG ?= "vpu opencl" +PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE -DOpenCL_INCLUDE_DIR=${STAGING_INCDIR} -DOpenCL_LIBRARY=${STAGING_LIBDIR}/libOpenCL.so, -DENABLE_INTEL_GPU=FALSE, ocl-icd opencl-headers opencl-clhpp libva," +PACKAGECONFIG[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-opencv python3-progress python3-cython" +PACKAGECONFIG[vpu] = "-DENABLE_INTEL_MYRIAD=ON -DVPU_FIRMWARE_USB-MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd -DVPU_FIRMWARE_PCIE-MA2X8X_FILE=../mvnc/pcie-ma2x8x.mvcmd,-DENABLE_INTEL_MYRIAD=OFF,,${PN}-vpu-firmware" +PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" + +do_configure:prepend() { + # Dont set PROJECT_ROOT_DIR + sed -i -e 's:\${CMAKE_CURRENT_SOURCE_DIR}::;' ${S}/src/CMakeLists.txt +} + +do_install:append() { + if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then + install -d ${D}${datadir}/openvino + mv ${D}/usr/samples/python ${D}${datadir}/openvino/ + + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + mv ${D}${prefix}/python/${PYTHON_DIR}/openvino ${D}${PYTHON_SITEPACKAGES_DIR}/ + mv ${D}${prefix}/python/${PYTHON_DIR}/ngraph ${D}${PYTHON_SITEPACKAGES_DIR}/ + + rm -rf ${D}${prefix}/python + fi + + rm -rf ${D}${prefix}/deployment_tools + + # Remove the samples source directory. We install the built samples. + rm -rf ${D}/usr/samples + + 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 +} + +# Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR +# instead of RSS +SSTATE_SCAN_FILES:append = " *.cmake" + +FILES:${PN}-dev = "${includedir} \ + ${libdir}/cmake \ + " + +FILES:${PN} += "${libdir}/lib*${SOLIBSDEV} \ + ${datadir}/openvino \ + ${libdir}/custom_kernels \ + ${libdir}/plugins.xml \ + ${libdir}/cache.json \ + " + +# Move inference engine samples into a separate package +PACKAGES =+ "${PN}-samples ${PN}-vpu-firmware" + +FILES:${PN}-samples = "${datadir}/openvino \ + ${bindir} \ + " +FILES:${PN}-vpu-firmware += "${libdir}/*.mvcmd" + +# Package for inference engine python API +PACKAGES =+ "${PN}-${PYTHON_PN}" + +FILES:${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}" + +UPSTREAM_CHECK_GITTAGREGEX = "(?P(\d+(\.\d+)+))" -- cgit v1.2.3-54-g00ecf