diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support')
19 files changed, 535 insertions, 1012 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-disable-Werror.patch b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-disable-Werror.patch new file mode 100644 index 00000000..4474aa3c --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-disable-Werror.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From ef56be8e6bf2ea273cbeb960f3131164e7b517b6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 18 May 2022 12:24:03 +0800 | ||
4 | Subject: [PATCH] CMakeLists: disable Werror | ||
5 | |||
6 | gcc12 highlights minor warnings that cause the build to fail. Ignore | ||
7 | those until they aren't fixed upstream. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | --- | ||
13 | CMakeLists.txt | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
17 | index 418483f7..c019fea0 100644 | ||
18 | --- a/CMakeLists.txt | ||
19 | +++ b/CMakeLists.txt | ||
20 | @@ -146,7 +146,7 @@ else() | ||
21 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2") | ||
22 | if(LNX_BUILD) | ||
23 | #A few warnings yet to resolve under esx | ||
24 | - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Werror") | ||
25 | + #set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Werror") | ||
26 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Werror") | ||
27 | endif() | ||
28 | set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -ggdb") | ||
29 | @@ -791,4 +791,4 @@ if(ESX_BUILD) | ||
30 | include(CMake/esx.cmake) | ||
31 | endif() | ||
32 | |||
33 | -add_subdirectory(src/os/nvm_api_sample) | ||
34 | \ No newline at end of file | ||
35 | +add_subdirectory(src/os/nvm_api_sample) | ||
36 | -- | ||
37 | 2.35.3 | ||
38 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch new file mode 100644 index 00000000..11305e83 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Subject: [PATCH] [PATCH]: ignore static asserts and null define for os and ut | ||
2 | builds | ||
3 | Upstream-Status: Backport | ||
4 | Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com> | ||
5 | --- | ||
6 | MdePkg/Include/Base.h | 12 ++++++++++++ | ||
7 | 1 file changed, 12 insertions(+) | ||
8 | |||
9 | diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h | ||
10 | index d209e6de28..6e61b8f3d3 100644 | ||
11 | --- a/MdePkg/Include/Base.h | ||
12 | +++ b/MdePkg/Include/Base.h | ||
13 | @@ -316,8 +316,12 @@ struct _LIST_ENTRY { | ||
14 | #define NULL __null | ||
15 | #endif | ||
16 | #else | ||
17 | +#ifndef OS_BUILD | ||
18 | +#ifndef UNIT_TEST_UEFI_BUILD | ||
19 | #define NULL ((VOID *) 0) | ||
20 | #endif | ||
21 | +#endif | ||
22 | +#endif | ||
23 | |||
24 | // | ||
25 | // Null character | ||
26 | @@ -779,6 +783,8 @@ typedef UINTN *BASE_LIST; | ||
27 | // Section 2.3.1 of the UEFI 2.3 Specification. | ||
28 | // | ||
29 | |||
30 | +#ifndef OS_BUILD | ||
31 | +#ifndef UNIT_TEST_UEFI_BUILD | ||
32 | STATIC_ASSERT (sizeof (BOOLEAN) == 1, "sizeof (BOOLEAN) does not meet UEFI Specification Data Type requirements"); | ||
33 | STATIC_ASSERT (sizeof (INT8) == 1, "sizeof (INT8) does not meet UEFI Specification Data Type requirements"); | ||
34 | STATIC_ASSERT (sizeof (UINT8) == 1, "sizeof (UINT8) does not meet UEFI Specification Data Type requirements"); | ||
35 | @@ -792,6 +798,8 @@ STATIC_ASSERT (sizeof (CHAR8) == 1, "sizeof (CHAR8) does not meet UEFI Specifi | ||
36 | STATIC_ASSERT (sizeof (CHAR16) == 2, "sizeof (CHAR16) does not meet UEFI Specification Data Type requirements"); | ||
37 | STATIC_ASSERT (sizeof (L'A') == 2, "sizeof (L'A') does not meet UEFI Specification Data Type requirements"); | ||
38 | STATIC_ASSERT (sizeof (L"A") == 4, "sizeof (L\"A\") does not meet UEFI Specification Data Type requirements"); | ||
39 | +#endif | ||
40 | +#endif | ||
41 | |||
42 | // | ||
43 | // The following three enum types are used to verify that the compiler | ||
44 | @@ -812,9 +820,13 @@ typedef enum { | ||
45 | __VerifyUint32EnumValue = 0xffffffff | ||
46 | } __VERIFY_UINT32_ENUM_SIZE; | ||
47 | |||
48 | +#ifndef OS_BUILD | ||
49 | +#ifndef UNIT_TEST_UEFI_BUILD | ||
50 | STATIC_ASSERT (sizeof (__VERIFY_UINT8_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); | ||
51 | STATIC_ASSERT (sizeof (__VERIFY_UINT16_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); | ||
52 | STATIC_ASSERT (sizeof (__VERIFY_UINT32_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); | ||
53 | +#endif | ||
54 | +#endif | ||
55 | |||
56 | /** | ||
57 | Macro that returns a pointer to the data structure that contains a specified field of | ||
58 | -- | ||
59 | 2.37.3 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0485.bb b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0485.bb new file mode 100644 index 00000000..c4743d1c --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl_03.00.00.0485.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | SUMMARY = "Utility for managing Intel Optane DC persistent memory modules" | ||
2 | DESCRIPTION = "Utility for configuring and managing Intel Optane Persistent \ | ||
3 | Memory modules (PMem). It supports functionality to: \ | ||
4 | Discover DCPMMs on the platform. \ | ||
5 | Provision the platform memory configuration. \ | ||
6 | View and update the firmware on DCPMMs. \ | ||
7 | Configure data-at-rest security on DCPMMs. \ | ||
8 | Track health and performance of DCPMMs. \ | ||
9 | Debug and troubleshoot DCPMMs." | ||
10 | |||
11 | HOMEPAGE = "https://github.com/intel/ipmctl" | ||
12 | BUGTRACKER = "https://github.com/intel/ipmctl/issues" | ||
13 | |||
14 | LICENSE = "BSD-3-Clause | BSD-2-Clause" | ||
15 | LIC_FILES_CHKSUM = "file://LICENSE;md5=72b9da60da6219d612ce30b746a0fe71 \ | ||
16 | file://edk2/License.txt;md5=6123e5bf044a66db96c4ce88a36b2d08" | ||
17 | |||
18 | SRC_URI = "git://github.com/intel/ipmctl.git;protocol=https;branch=master;name=ipmctl; \ | ||
19 | git://github.com/tianocore/edk2.git;protocol=https;name=edk2;destsuffix=git/edk2;branch=master \ | ||
20 | file://0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch;patchdir=edk2 \ | ||
21 | file://0001-CMakeLists-disable-Werror.patch \ | ||
22 | " | ||
23 | |||
24 | SRCREV_ipmctl = "c75bd840ea7820c8f93a5488fcff75d08beedd51" | ||
25 | #tag edk2-stable202302 | ||
26 | SRCREV_edk2 = "f80f052277c88a67c55e107b550f504eeea947d3" | ||
27 | SRCREV_FORMAT = "ipmctl_edk2" | ||
28 | |||
29 | S = "${WORKDIR}/git" | ||
30 | |||
31 | inherit cmake dos2unix | ||
32 | |||
33 | DEPENDS = "ndctl pkgconfig-native" | ||
34 | |||
35 | EXTRA_OECMAKE = "-DRELEASE=ON" | ||
36 | |||
37 | do_configure:prepend() { | ||
38 | for dir in BaseTools MdeModulePkg MdePkg ShellPkg ; do | ||
39 | ln -sf edk2/${dir} ${S} | ||
40 | done | ||
41 | } | ||
42 | |||
43 | do_install:append() { | ||
44 | # Remove /var/log/ipmctl as anything created in /var/log will not be | ||
45 | # available when tmpfs is mounted at /var/volatile/log. | ||
46 | rm -rf ${D}${localstatedir}/log | ||
47 | } | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb deleted file mode 100644 index 1074cf6d..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb +++ /dev/null | |||
@@ -1,122 +0,0 @@ | |||
1 | SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit" | ||
2 | HOMEPAGE = "https://github.com/opencv/dldt" | ||
3 | DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ | ||
4 | deep learning models through a high-level C++ Inference Engine API \ | ||
5 | integrated with application logic." | ||
6 | |||
7 | SRC_URI = "git://github.com/opencv/dldt.git;protocol=git;branch=2019 \ | ||
8 | https://download.01.org/opencv/2019/openvinotoolkit/R3/inference_engine/firmware_ma2450_759W.zip;name=ma2450 \ | ||
9 | https://download.01.org/opencv/2019/openvinotoolkit/R3/inference_engine/firmware_ma2x8x_mdk_R9.8.zip;name=ma2x8x \ | ||
10 | https://download.01.org/opencv/2019/openvinotoolkit/R3/inference_engine/firmware_mv0262_mdk_R9.8.zip;name=mv0262 \ | ||
11 | file://0001-R2-Build-fixes.patch;patchdir=.. \ | ||
12 | file://0002-R2-Install-DLDT-headers-libs-sample-Apps.patch;patchdir=.. \ | ||
13 | file://0003-use-GNUInstallDirs-on-nix.patch;patchdir=.. \ | ||
14 | file://0004-disable-werror.patch;patchdir=.. \ | ||
15 | file://0005-point-to-correct-location-of-ngraph-headers.patch;patchdir=.. \ | ||
16 | file://0006-Install-clDNN-plugin-to-CMAKE_INSTALL_LIBDIR.patch;patchdir=.. \ | ||
17 | file://0007-Install-mock_engine-to-CMAKE_INSTALL_LIBDIR.patch;patchdir=.. \ | ||
18 | file://0008-Simplify-searching-for-firmware-files.patch;patchdir=.. \ | ||
19 | file://run-ptest \ | ||
20 | " | ||
21 | SRCREV = "fe3f978b98c86eaeed3cbdc280e1ffd0bc50d278" | ||
22 | |||
23 | SRC_URI[ma2450.md5sum] = "852f80c3248c451a6c8bfd96d871318f" | ||
24 | SRC_URI[ma2450.sha256sum] = "ba1b23b45cd8e548ead77af49b0e378100cf4f8dcda41a491868d3d4e7bf8cba" | ||
25 | |||
26 | SRC_URI[ma2x8x.md5sum] = "2d9ca6894cdd25e9b10f7908c415dbc9" | ||
27 | SRC_URI[ma2x8x.sha256sum] = "961ce4c7b14823a528185f5e75b3b6898a7e8f866b4b5b8af5f4f05f72226909" | ||
28 | |||
29 | SRC_URI[mv0262.md5sum] = "c495f0ee0313e9d8d993e846a7868c4f" | ||
30 | SRC_URI[mv0262.sha256sum] = "0c0c8d7782f49dd4928837b52b4b6f25c1b088bfee23e464729057a28323ab77" | ||
31 | |||
32 | LICENSE = "Apache-2.0 & ISSL" | ||
33 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \ | ||
34 | file://../../ISSL.txt;md5=ab31aad35d740d800ae1e332d6290f50 \ | ||
35 | " | ||
36 | LICENSE_${PN}-vpu-firmware = "ISSL" | ||
37 | |||
38 | inherit cmake ptest python3native | ||
39 | |||
40 | S = "${WORKDIR}/git/inference-engine" | ||
41 | |||
42 | EXTRA_OECMAKE += " \ | ||
43 | -DENABLE_OPENCV=0 \ | ||
44 | -DENABLE_SAMPLES_CORE=1 \ | ||
45 | -DENABLE_PLUGIN_RPATH=0 \ | ||
46 | -DENABLE_GNA=0 \ | ||
47 | -DPYTHON_EXECUTABLE=${PYTHON} \ | ||
48 | -DTHREADING=TBB \ | ||
49 | -DCMAKE_BUILD_TYPE=DebugWithRelInfo \ | ||
50 | -DNGRAPH_INCLUDES=${STAGING_INCDIR}/ngraph \ | ||
51 | -DENABLE_TESTS="${@bb.utils.contains('PTEST_ENABLED', '1', '1', '0', d)}" \ | ||
52 | -DBUILD_GMOCK=1 \ | ||
53 | -DBUILD_GTEST=0 \ | ||
54 | -DINSTALL_GMOCK=0 \ | ||
55 | -DINSTALL_GTEST=0 \ | ||
56 | " | ||
57 | |||
58 | DEPENDS += "libusb1 \ | ||
59 | ade \ | ||
60 | opencv \ | ||
61 | pugixml \ | ||
62 | ngraph \ | ||
63 | tbb \ | ||
64 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gflags', '', d)} \ | ||
65 | " | ||
66 | |||
67 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
68 | COMPATIBLE_HOST_libc-musl = "null" | ||
69 | |||
70 | PACKAGECONFIG ?= "vpu" | ||
71 | 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, opencl-icd-loader, opencl-icd-loader intel-compute-runtime" | ||
72 | PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF, python3-cython-native, python3" | ||
73 | PACKAGECONFIG[vpu] = "-DENABLE_VPU=ON -DVPU_FIRMWARE_MA2450_FILE=../mvnc/MvNCAPI-ma2450.mvcmd -DVPU_FIRMWARE_MA2X8X_FILE=../mvnc/MvNCAPI-ma2x8x.mvcmd -DVPU_FIRMWARE_MV0262_FILE=../mvnc/MvNCAPI-mv0262.mvcmd,-DENABLE_VPU=OFF,,${PN}-vpu-firmware" | ||
74 | PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" | ||
75 | |||
76 | do_install_append() { | ||
77 | if ${@bb.utils.contains('PACKAGECONFIG', 'vpu', 'true', 'false', d)}; then | ||
78 | install -m0644 ${WORKDIR}/mvnc/MvNCAPI-ma2450.mvcmd ${D}${libdir} | ||
79 | install -m0644 ${WORKDIR}/mvnc/MvNCAPI-ma2x8x.mvcmd ${D}${libdir} | ||
80 | install -m0644 ${WORKDIR}/mvnc/MvNCAPI-mv0262.mvcmd ${D}${libdir} | ||
81 | |||
82 | install -D -m0644 ${S}/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules ${D}${sysconfdir}/udev/rules.d/97-myriad-usbboot.rules | ||
83 | fi | ||
84 | |||
85 | if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then | ||
86 | cp -r ${S}/src/cldnn_engine/cldnn_global_custom_kernels ${D}${libdir}/ | ||
87 | fi | ||
88 | } | ||
89 | |||
90 | do_install_ptest_base_prepend() { | ||
91 | # While not a Makefile based project that strictly falls into the category of | ||
92 | # what ptest helps with, adding the unit tests here as ptest would help. | ||
93 | # Create a dummy Makefile so installation doesn't fail. | ||
94 | touch ${WORKDIR}/Makefile | ||
95 | mv ${D}${bindir}/InferenceEngineUnitTests ${D}${PTEST_PATH}/ | ||
96 | mv ${D}${libdir}/libmock_engine.so ${D}${PTEST_PATH}/ | ||
97 | } | ||
98 | |||
99 | # Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR | ||
100 | # instead of RSS | ||
101 | SSTATE_SCAN_FILES_append = " *.cmake" | ||
102 | |||
103 | FILES_${PN}-dev = "${includedir} \ | ||
104 | ${libdir}/cmake \ | ||
105 | ${libdir}/libinference_engine.so \ | ||
106 | " | ||
107 | |||
108 | FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \ | ||
109 | ${datadir}/openvino \ | ||
110 | ${libdir}/cldnn_global_custom_kernels \ | ||
111 | " | ||
112 | |||
113 | # Move inference engine samples into a separate package | ||
114 | PACKAGES =+ "${PN}-samples ${PN}-vpu-firmware" | ||
115 | |||
116 | FILES_${PN}-samples = "${bindir}" | ||
117 | FILES_${PN}-vpu-firmware += "${libdir}/*.mvcmd" | ||
118 | |||
119 | # Package for inference engine python API | ||
120 | PACKAGES =+ "${PN}-${PYTHON_PN}" | ||
121 | |||
122 | FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}/openvino" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-R2-Build-fixes.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-R2-Build-fixes.patch deleted file mode 100644 index 39d40983..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-R2-Build-fixes.patch +++ /dev/null | |||
@@ -1,235 +0,0 @@ | |||
1 | From 8a5804c723c5bd396e5029f254f866f19a679cc5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Erin Park <erin.park@intel.com> | ||
3 | Date: Wed, 11 Sep 2019 09:04:23 -0700 | ||
4 | Subject: [PATCH 1/7] R2 Build fixes | ||
5 | |||
6 | -Update to R3 | ||
7 | -linux os-release name search | ||
8 | -Use system libraries for (OMP/TBB) | ||
9 | -Use system libraries for ngraph, ade, puigxml, gflags | ||
10 | -Turn on ENABLE_PYTHON | ||
11 | |||
12 | Upstream-Status: Pending [Taken from Clear Linux and updated to R3] | ||
13 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
14 | Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> | ||
15 | --- | ||
16 | inference-engine/CMakeLists.txt | 4 +++ | ||
17 | inference-engine/cmake/dependencies.cmake | 30 ++++++++++++---------- | ||
18 | inference-engine/cmake/developer_package.cmake | 12 ++++----- | ||
19 | inference-engine/cmake/ie_parallel.cmake | 6 ++--- | ||
20 | inference-engine/cmake/linux_name.cmake | 2 +- | ||
21 | inference-engine/samples/CMakeLists.txt | 2 -- | ||
22 | .../src/inference_engine/CMakeLists.txt | 5 ++-- | ||
23 | inference-engine/thirdparty/CMakeLists.txt | 9 ------- | ||
24 | 8 files changed, 34 insertions(+), 36 deletions(-) | ||
25 | |||
26 | diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt | ||
27 | index f41d9df..a282cb4 100644 | ||
28 | --- a/inference-engine/CMakeLists.txt | ||
29 | +++ b/inference-engine/CMakeLists.txt | ||
30 | @@ -62,6 +62,10 @@ add_cpplint_target(sample_cpplint | ||
31 | EXCLUDE_PATTERNS "thirdparty/*" "pugixml/*") | ||
32 | |||
33 | if (ENABLE_PYTHON) | ||
34 | + set(InferenceEngine_DIR "${CMAKE_BINARY_DIR}") | ||
35 | + | ||
36 | + #to be able to link | ||
37 | + set (LIB_FOLDER ${IE_MAIN_SOURCE_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
38 | add_subdirectory(ie_bridges/python) | ||
39 | endif() | ||
40 | |||
41 | diff --git a/inference-engine/cmake/dependencies.cmake b/inference-engine/cmake/dependencies.cmake | ||
42 | index 682f2e5..36c3f4d 100644 | ||
43 | --- a/inference-engine/cmake/dependencies.cmake | ||
44 | +++ b/inference-engine/cmake/dependencies.cmake | ||
45 | @@ -51,11 +51,11 @@ if (THREADING STREQUAL "OMP") | ||
46 | ENVIRONMENT "OMP" | ||
47 | VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
48 | elseif(LINUX) | ||
49 | - RESOLVE_DEPENDENCY(OMP | ||
50 | - ARCHIVE_LIN "iomp.tgz" | ||
51 | - TARGET_PATH "${TEMP}/omp" | ||
52 | - ENVIRONMENT "OMP" | ||
53 | - VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
54 | + #RESOLVE_DEPENDENCY(OMP | ||
55 | + # ARCHIVE_LIN "iomp.tgz" | ||
56 | + # TARGET_PATH "${TEMP}/omp" | ||
57 | + # ENVIRONMENT "OMP" | ||
58 | + # VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
59 | else(APPLE) | ||
60 | RESOLVE_DEPENDENCY(OMP | ||
61 | ARCHIVE_MAC "iomp_20190130_mac.tgz" | ||
62 | @@ -63,8 +63,10 @@ if (THREADING STREQUAL "OMP") | ||
63 | ENVIRONMENT "OMP" | ||
64 | VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
65 | endif() | ||
66 | - log_rpath_from_dir(OMP "${OMP}/lib") | ||
67 | - debug_message(STATUS "intel_omp=" ${OMP}) | ||
68 | + if (NOT LINUX) | ||
69 | + log_rpath_from_dir(OMP "${OMP}/lib") | ||
70 | + debug_message(STATUS "intel_omp=" ${OMP}) | ||
71 | + endif () | ||
72 | endif () | ||
73 | |||
74 | ## TBB package | ||
75 | @@ -77,10 +79,10 @@ if (THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") | ||
76 | ENVIRONMENT "TBBROOT" | ||
77 | VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
78 | elseif(LINUX) | ||
79 | - RESOLVE_DEPENDENCY(TBB | ||
80 | - ARCHIVE_LIN "tbb2019_20181010_lin.tgz" | ||
81 | - TARGET_PATH "${TEMP}/tbb" | ||
82 | - ENVIRONMENT "TBBROOT") | ||
83 | + #RESOLVE_DEPENDENCY(TBB | ||
84 | + # ARCHIVE_LIN "tbb2019_20181010_lin.tgz" | ||
85 | + # TARGET_PATH "${TEMP}/tbb" | ||
86 | + # ENVIRONMENT "TBBROOT") | ||
87 | else(APPLE) | ||
88 | RESOLVE_DEPENDENCY(TBB | ||
89 | ARCHIVE_MAC "tbb2019_20190414_v1_mac.tgz" | ||
90 | @@ -88,8 +90,10 @@ if (THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") | ||
91 | ENVIRONMENT "TBBROOT" | ||
92 | VERSION_REGEX ".*_([a-z]*_([a-z0-9]+\\.)*[0-9]+).*") | ||
93 | endif() | ||
94 | - log_rpath_from_dir(TBB "${TBB}/lib") | ||
95 | - debug_message(STATUS "tbb=" ${TBB}) | ||
96 | + if (NOT LINUX) | ||
97 | + log_rpath_from_dir(TBB "${TBB}/lib") | ||
98 | + debug_message(STATUS "tbb=" ${TBB}) | ||
99 | + endif () | ||
100 | endif () | ||
101 | |||
102 | if (ENABLE_OPENCV) | ||
103 | diff --git a/inference-engine/cmake/developer_package.cmake b/inference-engine/cmake/developer_package.cmake | ||
104 | index a27143d..950ccf4 100644 | ||
105 | --- a/inference-engine/cmake/developer_package.cmake | ||
106 | +++ b/inference-engine/cmake/developer_package.cmake | ||
107 | @@ -93,12 +93,12 @@ if(NOT UNIX) | ||
108 | set(LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}) | ||
109 | set(LIBRARY_OUTPUT_PATH ${LIBRARY_OUTPUT_DIRECTORY}) # compatibility issue: linux uses LIBRARY_OUTPUT_PATH, windows uses LIBRARY_OUTPUT_DIRECTORY | ||
110 | else() | ||
111 | - set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
112 | - set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
113 | - set(CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
114 | - set(CMAKE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
115 | - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
116 | - set(LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
117 | + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
118 | + set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
119 | + set(CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
120 | + set(CMAKE_PDB_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
121 | + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
122 | + set(LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
123 | set(LIBRARY_OUTPUT_PATH ${LIBRARY_OUTPUT_DIRECTORY}/lib) | ||
124 | endif() | ||
125 | |||
126 | diff --git a/inference-engine/cmake/ie_parallel.cmake b/inference-engine/cmake/ie_parallel.cmake | ||
127 | index 97e8c5e..9b03652 100644 | ||
128 | --- a/inference-engine/cmake/ie_parallel.cmake | ||
129 | +++ b/inference-engine/cmake/ie_parallel.cmake | ||
130 | @@ -36,8 +36,8 @@ function(set_ie_threading_interface_for TARGET_NAME) | ||
131 | endif () | ||
132 | |||
133 | if (NOT TBB_INCLUDE_DIRS OR NOT TBB_LIBRARIES_RELEASE) | ||
134 | - find_path(TBB_INCLUDE_DIRS tbb/tbb.h ${incl_path} NO_DEFAULT_PATH) | ||
135 | - find_library(TBB_LIBRARIES_RELEASE tbb ${lib_rel_path} NO_DEFAULT_PATH) | ||
136 | + find_path(TBB_INCLUDE_DIRS tbb/tbb.h) | ||
137 | + find_library(TBB_LIBRARIES_RELEASE tbb) | ||
138 | ext_message(STATUS "TBB include: ${TBB_INCLUDE_DIRS}") | ||
139 | ext_message(STATUS "TBB Release lib: ${TBB_LIBRARIES_RELEASE}") | ||
140 | if (NOT LINUX) | ||
141 | @@ -98,7 +98,7 @@ function(set_ie_threading_interface_for TARGET_NAME) | ||
142 | endif () | ||
143 | |||
144 | if (NOT OMP_LIBRARIES_RELEASE) | ||
145 | - find_library(OMP_LIBRARIES_RELEASE ${omp_lib_name} ${lib_rel_path} NO_DEFAULT_PATH) | ||
146 | + find_library(OMP_LIBRARIES_RELEASE ${omp_lib_name}) | ||
147 | ext_message(STATUS "OMP Release lib: ${OMP_LIBRARIES_RELEASE}") | ||
148 | if (NOT LINUX) | ||
149 | find_library(OMP_LIBRARIES_DEBUG ${omp_lib_name} ${lib_dbg_path} NO_DEFAULT_PATH) | ||
150 | diff --git a/inference-engine/cmake/linux_name.cmake b/inference-engine/cmake/linux_name.cmake | ||
151 | index 6713808..7e5e47a 100644 | ||
152 | --- a/inference-engine/cmake/linux_name.cmake | ||
153 | +++ b/inference-engine/cmake/linux_name.cmake | ||
154 | @@ -5,7 +5,7 @@ | ||
155 | if (LINUX) | ||
156 | function(get_linux_name res_var) | ||
157 | if (NOT EXISTS "/etc/lsb-release") | ||
158 | - execute_process(COMMAND find -L /etc/ -maxdepth 1 -type f -name *-release -exec cat {} \; | ||
159 | + execute_process(COMMAND find /usr/lib/ /etc/ -maxdepth 1 -type f -name *-release -exec cat {} \; | ||
160 | OUTPUT_VARIABLE release_data RESULT_VARIABLE result) | ||
161 | set(name_regex "NAME=\"([^ \"\n]*).*\"\n") | ||
162 | set(version_regex "VERSION=\"([0-9]+(\\.[0-9]+)?)[^\n]*\"") | ||
163 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | ||
164 | index d3a094c..884b0a6 100644 | ||
165 | --- a/inference-engine/samples/CMakeLists.txt | ||
166 | +++ b/inference-engine/samples/CMakeLists.txt | ||
167 | @@ -91,8 +91,6 @@ set (GFLAGS_IS_SUBPROJECT TRUE) | ||
168 | set (HAVE_SYS_STAT_H 1) | ||
169 | set (HAVE_INTTYPES_H 1) | ||
170 | |||
171 | -add_subdirectory(thirdparty/gflags) | ||
172 | - | ||
173 | if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) | ||
174 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | ||
175 | endif() | ||
176 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
177 | index f4b34ad..2604c32 100644 | ||
178 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
179 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
180 | @@ -116,6 +116,7 @@ target_include_directories(${TARGET_NAME} PUBLIC ${PUBLIC_HEADERS_DIR} | ||
181 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/pugixml/src") | ||
182 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/ngraph/src") | ||
183 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/ocv") | ||
184 | +include_directories(${TARGET_NAME} "/usr/include/ngraph") | ||
185 | |||
186 | if(ENABLE_MKL_DNN) | ||
187 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/mkl-dnn/src/cpu/xbyak") | ||
188 | @@ -125,7 +126,7 @@ if(ENABLE_UNICODE_PATH_SUPPORT) | ||
189 | target_compile_definitions(${TARGET_NAME} PUBLIC ENABLE_UNICODE_PATH_SUPPORT) | ||
190 | endif() | ||
191 | |||
192 | -set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) | ||
193 | +set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME} SOVERSION 1) | ||
194 | |||
195 | # Static library used for unit tests which are always built | ||
196 | |||
197 | @@ -159,7 +160,7 @@ if(ENABLE_UNICODE_PATH_SUPPORT) | ||
198 | target_compile_definitions(${TARGET_NAME}_s PUBLIC ENABLE_UNICODE_PATH_SUPPORT) | ||
199 | endif() | ||
200 | |||
201 | -set_target_properties(${TARGET_NAME}_s PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}_s) | ||
202 | +set_target_properties(${TARGET_NAME}_s PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}_s SOVERSION 1) | ||
203 | |||
204 | target_link_libraries(${TARGET_NAME}_s PRIVATE fluid | ||
205 | PRIVATE ngraph | ||
206 | diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt | ||
207 | index 54de20f..4ea20f5 100644 | ||
208 | --- a/inference-engine/thirdparty/CMakeLists.txt | ||
209 | +++ b/inference-engine/thirdparty/CMakeLists.txt | ||
210 | @@ -35,10 +35,6 @@ function(build_with_lto) | ||
211 | set(CMAKE_RANLIB "gcc-ranlib") | ||
212 | endif() | ||
213 | |||
214 | - add_subdirectory(pugixml) | ||
215 | - export(TARGETS pugixml NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets.cmake") | ||
216 | - export(TARGETS pugixml NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
217 | - | ||
218 | if (TARGET pugixml_mt) | ||
219 | export(TARGETS pugixml_mt NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets.cmake") | ||
220 | export(TARGETS pugixml_mt NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
221 | @@ -46,11 +42,6 @@ function(build_with_lto) | ||
222 | |||
223 | add_subdirectory(stb_lib) | ||
224 | |||
225 | - add_subdirectory(ade) | ||
226 | - export(TARGETS ade NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
227 | - | ||
228 | - include(ngraph.cmake) | ||
229 | - | ||
230 | add_subdirectory(fluid/modules/gapi) | ||
231 | export(TARGETS fluid NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
232 | endfunction() | ||
233 | -- | ||
234 | 2.7.4 | ||
235 | |||
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/0002-R2-Install-DLDT-headers-libs-sample-Apps.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-R2-Install-DLDT-headers-libs-sample-Apps.patch deleted file mode 100644 index b89964b1..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-R2-Install-DLDT-headers-libs-sample-Apps.patch +++ /dev/null | |||
@@ -1,267 +0,0 @@ | |||
1 | From 518cd8afb38810924371209416fd5b5d2c23a92e Mon Sep 17 00:00:00 2001 | ||
2 | From: Erin Park <erin.park@intel.com> | ||
3 | Date: Wed, 11 Sep 2019 10:33:58 -0700 | ||
4 | Subject: [PATCH] R2 Install DLDT headers, libs, sample Apps | ||
5 | |||
6 | -Update to R3 | ||
7 | -Libraries to /usr/lib64 | ||
8 | -Headers to /usr/include | ||
9 | -Sample Apps executable to /usr/bin | ||
10 | -Sample Apps source code to /usr/share/doc/inference_engine | ||
11 | -Python library to ${libdir}/python<version>/site-packages | ||
12 | -plugins.xml to /usr/share/openvino/inference-engine | ||
13 | -Create targets_cpu_extension.cmake | ||
14 | |||
15 | Upstream-Status: Pending [Taken from Clear Linux with changes to install | ||
16 | libs at CMAKE_INSTALL_LIBDIR instead of hardcoded lib64 and update to R3] | ||
17 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
18 | Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> | ||
19 | --- | ||
20 | inference-engine/CMakeLists.txt | 2 ++ | ||
21 | inference-engine/cmake/config.cmake.in | 1 + | ||
22 | inference-engine/ie_bridges/python/CMakeLists.txt | 2 +- | ||
23 | .../src/openvino/inference_engine/CMakeLists.txt | 4 +++- | ||
24 | inference-engine/samples/CMakeLists.txt | 9 +------- | ||
25 | .../samples/common/format_reader/CMakeLists.txt | 2 ++ | ||
26 | inference-engine/src/CMakeLists.txt | 4 +++- | ||
27 | inference-engine/src/extension/CMakeLists.txt | 5 ++++- | ||
28 | inference-engine/src/hetero_plugin/CMakeLists.txt | 2 ++ | ||
29 | .../src/inference_engine/CMakeLists.txt | 25 ++++++++++++++++++---- | ||
30 | .../src/inference_engine/ie_util_internal.cpp | 7 +++--- | ||
31 | inference-engine/src/mkldnn_plugin/CMakeLists.txt | 1 + | ||
32 | .../src/vpu/myriad_plugin/CMakeLists.txt | 2 ++ | ||
33 | inference-engine/tests/unit/CMakeLists.txt | 2 ++ | ||
34 | 14 files changed, 49 insertions(+), 19 deletions(-) | ||
35 | |||
36 | diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt | ||
37 | index a282cb4..abb4de4 100644 | ||
38 | --- a/inference-engine/CMakeLists.txt | ||
39 | +++ b/inference-engine/CMakeLists.txt | ||
40 | @@ -70,3 +70,5 @@ if (ENABLE_PYTHON) | ||
41 | endif() | ||
42 | |||
43 | add_cpplint_report_target() | ||
44 | + | ||
45 | +install(DIRECTORY samples DESTINATION share/doc/inference_engine) | ||
46 | diff --git a/inference-engine/cmake/config.cmake.in b/inference-engine/cmake/config.cmake.in | ||
47 | index ebe82ee..0d7e6a4 100644 | ||
48 | --- a/inference-engine/cmake/config.cmake.in | ||
49 | +++ b/inference-engine/cmake/config.cmake.in | ||
50 | @@ -7,6 +7,7 @@ if(DEFINED IE_MAIN_SOURCE_DIR AND TARGET inference_engine) | ||
51 | set(InferenceEngine_LIBRARIES inference_engine) | ||
52 | else() | ||
53 | include("${CMAKE_CURRENT_LIST_DIR}/targets.cmake") | ||
54 | + include("${CMAKE_CURRENT_LIST_DIR}/targets_cpu_extension.cmake") | ||
55 | if(NOT WIN32) | ||
56 | set_target_properties(IE::inference_engine PROPERTIES INTERFACE_COMPILE_OPTIONS "-Wno-error=deprecated-declarations") | ||
57 | endif() | ||
58 | diff --git a/inference-engine/ie_bridges/python/CMakeLists.txt b/inference-engine/ie_bridges/python/CMakeLists.txt | ||
59 | index bba853f..444cce9 100644 | ||
60 | --- a/inference-engine/ie_bridges/python/CMakeLists.txt | ||
61 | +++ b/inference-engine/ie_bridges/python/CMakeLists.txt | ||
62 | @@ -53,4 +53,4 @@ endif() | ||
63 | |||
64 | set (PYTHON_BRIDGE_SRC_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) | ||
65 | add_subdirectory (src/openvino/inference_engine) | ||
66 | -add_subdirectory (src/openvino/tools/statistics_collector) | ||
67 | +#add_subdirectory (src/openvino/tools/statistics_collector) | ||
68 | diff --git a/inference-engine/ie_bridges/python/src/openvino/inference_engine/CMakeLists.txt b/inference-engine/ie_bridges/python/src/openvino/inference_engine/CMakeLists.txt | ||
69 | index 1f46013..952c173 100644 | ||
70 | --- a/inference-engine/ie_bridges/python/src/openvino/inference_engine/CMakeLists.txt | ||
71 | +++ b/inference-engine/ie_bridges/python/src/openvino/inference_engine/CMakeLists.txt | ||
72 | @@ -29,4 +29,6 @@ ADD_CUSTOM_COMMAND (TARGET ${TARGET_NAME} | ||
73 | COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_BRIDGE_SRC_ROOT}/src/openvino/inference_engine/__init__.py ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/__init__.py | ||
74 | COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_BRIDGE_SRC_ROOT}/requirements.txt ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../../requirements.txt | ||
75 | COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_BRIDGE_SRC_ROOT}/src/openvino/__init__.py ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../__init__.py | ||
76 | -) | ||
77 | \ No newline at end of file | ||
78 | +) | ||
79 | + | ||
80 | +install(DIRECTORY ${PYTHON_BRIDGE_OUTPUT_DIRECTORY} DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PYTHON_VERSION}/site-packages/) | ||
81 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | ||
82 | index 884b0a6..25f9f23 100644 | ||
83 | --- a/inference-engine/samples/CMakeLists.txt | ||
84 | +++ b/inference-engine/samples/CMakeLists.txt | ||
85 | @@ -39,14 +39,6 @@ if(NOT(UNIX)) | ||
86 | set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}) | ||
87 | set (LIBRARY_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}) | ||
88 | set (LIBRARY_OUTPUT_PATH ${LIBRARY_OUTPUT_DIRECTORY}) # compatibility issue: linux uses LIBRARY_OUTPUT_PATH, windows uses LIBRARY_OUTPUT_DIRECTORY | ||
89 | -else () | ||
90 | - set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
91 | - set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
92 | - set (CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
93 | - set (CMAKE_PDB_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
94 | - set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}) | ||
95 | - set (LIBRARY_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib) | ||
96 | - set (LIBRARY_OUTPUT_PATH ${LIBRARY_OUTPUT_DIRECTORY}/lib) | ||
97 | endif() | ||
98 | |||
99 | if (WIN32) | ||
100 | @@ -188,6 +180,7 @@ macro(ie_add_sample) | ||
101 | if(COMMAND add_cpplint_target AND NOT IE_SAMPLE_EXCLUDE_CPPLINT) | ||
102 | add_cpplint_target(${IE_SAMPLE_NAME}_cpplint FOR_TARGETS ${IE_SAMPLE_NAME}) | ||
103 | endif() | ||
104 | + install(TARGETS ${IE_SAMPLE_NAME} DESTINATION bin) | ||
105 | endmacro() | ||
106 | |||
107 | |||
108 | diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
109 | index a8c9caf..dffa8cb 100644 | ||
110 | --- a/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
111 | +++ b/inference-engine/samples/common/format_reader/CMakeLists.txt | ||
112 | @@ -40,3 +40,5 @@ set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) | ||
113 | |||
114 | export(TARGETS ${TARGET_NAME} NAMESPACE IE:: | ||
115 | APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
116 | + | ||
117 | +install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
118 | diff --git a/inference-engine/src/CMakeLists.txt b/inference-engine/src/CMakeLists.txt | ||
119 | index 63fda2a..350e3f5 100644 | ||
120 | --- a/inference-engine/src/CMakeLists.txt | ||
121 | +++ b/inference-engine/src/CMakeLists.txt | ||
122 | @@ -37,8 +37,10 @@ set(InferenceEngine_SRC_DIRS ${CMAKE_SOURCE_DIR}/src) | ||
123 | function(set_target_cpu_flags TARGET_NAME) | ||
124 | endfunction() | ||
125 | |||
126 | -add_subdirectory(extension EXCLUDE_FROM_ALL) | ||
127 | +add_subdirectory(extension) | ||
128 | add_library(IE::ie_cpu_extension ALIAS ie_cpu_extension) | ||
129 | |||
130 | file(GLOB_RECURSE EXTENSION_SOURCES extension/*.cpp extension/*.hpp extension/*.h) | ||
131 | add_cpplint_target(ie_cpu_extension_cpplint FOR_SOURCES ${EXTENSION_SOURCES}) | ||
132 | + | ||
133 | +install(DIRECTORY extension DESTINATION include/inference_engine) | ||
134 | diff --git a/inference-engine/src/extension/CMakeLists.txt b/inference-engine/src/extension/CMakeLists.txt | ||
135 | index 799a62d..fb14ebe 100644 | ||
136 | --- a/inference-engine/src/extension/CMakeLists.txt | ||
137 | +++ b/inference-engine/src/extension/CMakeLists.txt | ||
138 | @@ -49,7 +49,7 @@ set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "cpu_extension") | ||
139 | |||
140 | target_link_libraries(${TARGET_NAME} PRIVATE ${InferenceEngine_LIBRARIES}) | ||
141 | |||
142 | -target_include_directories(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
143 | +target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) | ||
144 | set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) | ||
145 | |||
146 | set_target_cpu_flags(${TARGET_NAME}) | ||
147 | @@ -61,3 +61,6 @@ if (IE_MAIN_SOURCE_DIR) | ||
148 | export(TARGETS ${TARGET_NAME} NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
149 | endif() | ||
150 | |||
151 | +set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/InferenceEngine) | ||
152 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
153 | +install(EXPORT ${TARGET_NAME} DESTINATION ${ConfigPackageLocation} NAMESPACE IE:: FILE targets_cpu_extension.cmake) | ||
154 | diff --git a/inference-engine/src/hetero_plugin/CMakeLists.txt b/inference-engine/src/hetero_plugin/CMakeLists.txt | ||
155 | index fdb1b0f..4955dc9 100644 | ||
156 | --- a/inference-engine/src/hetero_plugin/CMakeLists.txt | ||
157 | +++ b/inference-engine/src/hetero_plugin/CMakeLists.txt | ||
158 | @@ -21,3 +21,5 @@ target_include_directories(${TARGET_NAME} PRIVATE | ||
159 | ) | ||
160 | |||
161 | target_link_libraries(${TARGET_NAME} PRIVATE inference_engine ade) | ||
162 | + | ||
163 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
164 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
165 | index 2604c32..54d3828 100644 | ||
166 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
167 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
168 | @@ -110,8 +110,11 @@ if(WIN32) | ||
169 | endif() | ||
170 | |||
171 | # Properties->C/C++->General->Additional Include Directories | ||
172 | -target_include_directories(${TARGET_NAME} PUBLIC ${PUBLIC_HEADERS_DIR} | ||
173 | - PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}") | ||
174 | +target_include_directories(${TARGET_NAME} PUBLIC | ||
175 | + $<BUILD_INTERFACE:${IE_MAIN_SOURCE_DIR}/include> | ||
176 | + $<INSTALL_INTERFACE:include/${TARGET_NAME}> | ||
177 | + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
178 | + "${IE_MAIN_SOURCE_DIR}/src/dumper") | ||
179 | |||
180 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/pugixml/src") | ||
181 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/ngraph/src") | ||
182 | @@ -137,7 +140,9 @@ add_library(${TARGET_NAME}_s STATIC | ||
183 | set_ie_threading_interface_for(${TARGET_NAME}_s) | ||
184 | |||
185 | # Properties->C/C++->General->Additional Include Directories | ||
186 | -target_include_directories(${TARGET_NAME}_s PUBLIC "${PUBLIC_HEADERS_DIR}" | ||
187 | +target_include_directories(${TARGET_NAME}_s PUBLIC | ||
188 | + $<BUILD_INTERFACE:${IE_MAIN_SOURCE_DIR}/include> | ||
189 | + $<INSTALL_INTERFACE:include/${TARGET_NAME}> | ||
190 | PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" | ||
191 | PRIVATE "${IE_MAIN_SOURCE_DIR}/src/dumper") | ||
192 | |||
193 | @@ -173,7 +178,8 @@ target_link_libraries(${TARGET_NAME}_s PRIVATE fluid | ||
194 | add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}) | ||
195 | |||
196 | ie_register_plugins(MAIN_TARGET ${TARGET_NAME} | ||
197 | - POSSIBLE_PLUGINS MultiDevicePlugin HeteroPlugin clDNNPlugin dliaPlugin GNAPlugin MKLDNNPlugin myriadPlugin HDDLPlugin) | ||
198 | + P $<BUILD_INTERFACE:${IE_MAIN_SOURCE_DIR}/include> | ||
199 | ++ $<INSTALL_INTERFACE:include/${TARGET_NAME}>OSSIBLE_PLUGINS clDNNPlugin dliaPlugin GNAPlugin MKLDNNPlugin myriadPlugin) | ||
200 | |||
201 | # export targets | ||
202 | export(TARGETS ${TARGET_NAME} NAMESPACE IE:: FILE "${CMAKE_BINARY_DIR}/targets.cmake") | ||
203 | @@ -204,3 +210,14 @@ configure_file( | ||
204 | "${CMAKE_SOURCE_DIR}/cmake/share/InferenceEngineConfig-version.cmake.in" | ||
205 | "${CMAKE_BINARY_DIR}/InferenceEngineDeveloperPackageConfig-version.cmake" | ||
206 | COPYONLY) | ||
207 | + | ||
208 | +set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/InferenceEngine) | ||
209 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
210 | +install(EXPORT ${TARGET_NAME} DESTINATION ${ConfigPackageLocation} NAMESPACE IE:: FILE targets.cmake) | ||
211 | +install(DIRECTORY ${PUBLIC_HEADERS_DIR}/ DESTINATION include/${TARGET_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp") | ||
212 | +install(FILES | ||
213 | + "${CMAKE_BINARY_DIR}/InferenceEngineConfig.cmake" | ||
214 | + "${CMAKE_BINARY_DIR}/InferenceEngineConfig-version.cmake" | ||
215 | + DESTINATION ${ConfigPackageLocation}) | ||
216 | + | ||
217 | +install(FILES "$<TARGET_FILE_DIR:${TARGET_NAME}>/plugins.xml" DESTINATION /usr/share/openvino/inference-engine) | ||
218 | diff --git a/inference-engine/src/inference_engine/ie_util_internal.cpp b/inference-engine/src/inference_engine/ie_util_internal.cpp | ||
219 | index 1a2f078..b2668a9 100644 | ||
220 | --- a/inference-engine/src/inference_engine/ie_util_internal.cpp | ||
221 | +++ b/inference-engine/src/inference_engine/ie_util_internal.cpp | ||
222 | @@ -760,9 +760,10 @@ std::string getIELibraryPath() { | ||
223 | GetModuleFileNameA(hm, (LPSTR)ie_library_path, sizeof(ie_library_path)); | ||
224 | return getPathName(ie_library_path); | ||
225 | #else | ||
226 | - Dl_info info; | ||
227 | - dladdr(reinterpret_cast<void *>(getIELibraryPath), &info); | ||
228 | - return getPathName(info.dli_fname); | ||
229 | + //Dl_info info; | ||
230 | + //dladdr(reinterpret_cast<void *>(getIELibraryPath), &info); | ||
231 | + //return getPathName(info.dli_fname); | ||
232 | + return "/usr/share/openvino/inference-engine"; | ||
233 | #endif | ||
234 | } | ||
235 | |||
236 | diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt | ||
237 | index d767724..80d33e6 100644 | ||
238 | --- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt | ||
239 | +++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt | ||
240 | @@ -69,3 +69,4 @@ target_compile_definitions(test_${TARGET_NAME} PUBLIC -DMKLDNN_THR=${MKLDNN_THR} | ||
241 | target_link_libraries(test_${TARGET_NAME} PRIVATE inference_engine_s mkldnn) | ||
242 | |||
243 | set_target_properties(test_${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME test_${TARGET_NAME}) | ||
244 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
245 | diff --git a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
246 | index 7023513..b533f07 100644 | ||
247 | --- a/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
248 | +++ b/inference-engine/src/vpu/myriad_plugin/CMakeLists.txt | ||
249 | @@ -36,3 +36,5 @@ endif() | ||
250 | target_link_libraries(${TARGET_NAME} | ||
251 | PRIVATE | ||
252 | ${INTEL_ITT_LIBS} inference_engine vpu_graph_transformer mvnc) | ||
253 | + | ||
254 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
255 | diff --git a/inference-engine/tests/unit/CMakeLists.txt b/inference-engine/tests/unit/CMakeLists.txt | ||
256 | index 8180802..2d37b1e 100644 | ||
257 | --- a/inference-engine/tests/unit/CMakeLists.txt | ||
258 | +++ b/inference-engine/tests/unit/CMakeLists.txt | ||
259 | @@ -122,3 +122,5 @@ add_test(NAME ${TARGET_NAME} | ||
260 | COMMAND ${TARGET_NAME}) | ||
261 | |||
262 | add_dependencies(${TARGET_NAME} mock_engine) | ||
263 | + | ||
264 | +install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
265 | -- | ||
266 | 2.7.4 | ||
267 | |||
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-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/0003-use-GNUInstallDirs-on-nix.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-use-GNUInstallDirs-on-nix.patch deleted file mode 100644 index c6371181..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-use-GNUInstallDirs-on-nix.patch +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | From 32c30549fa821b0df3f5f7fdf33d7989a9f1a776 Mon Sep 17 00:00:00 2001 | ||
2 | From: Kevron Rees <kevron.m.rees@intel.com> | ||
3 | Date: Wed, 3 Apr 2019 09:20:48 -0700 | ||
4 | Subject: [PATCH 3/7] use GNUInstallDirs on *nix | ||
5 | |||
6 | Upstream-Status: Submitted [Patch taken from Clear Linux and has been submitted | ||
7 | upstream] | ||
8 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
9 | --- | ||
10 | inference-engine/thirdparty/clDNN/CMakeLists.txt | 3 +- | ||
11 | .../thirdparty/clDNN/src/CMakeLists.txt | 36 +++++++++++++++++----- | ||
12 | 2 files changed, 31 insertions(+), 8 deletions(-) | ||
13 | |||
14 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
15 | index c39fe5c..03e5bad 100644 | ||
16 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
17 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
18 | @@ -93,7 +93,8 @@ set(CLDNN__GTEST_DIR "${CLDNN__COMMON_DIR}/googletest-fused") | ||
19 | # Build targets settings. | ||
20 | |||
21 | # Path which points to default root directory for compilation output. | ||
22 | -set(CLDNN_BUILD__DEFAULT_OUT_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/build/out") | ||
23 | +set(CLDNN_BUILD__DEFAULT_OUT_ROOT "${CMAKE_BINARY_DIR}") | ||
24 | +set(CLDNN__OUTPUT_DIR, "${CMAKE_BINARY_DIR}") | ||
25 | |||
26 | # Prefix for all targets in internal pass. | ||
27 | set(CLDNN_BUILD__PROJ_NAME_PREFIX "") | ||
28 | diff --git a/inference-engine/thirdparty/clDNN/src/CMakeLists.txt b/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
29 | index 99e947e..fb25578 100644 | ||
30 | --- a/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
31 | +++ b/inference-engine/thirdparty/clDNN/src/CMakeLists.txt | ||
32 | @@ -206,17 +206,39 @@ target_link_libraries("${CLDNN_BUILD__PROJ}" PRIVATE ${CLDNN__SYSTEM_LINK_LIBRAR | ||
33 | |||
34 | # ========================================== Installation ============================================== | ||
35 | |||
36 | +if(UNIX) | ||
37 | + include(GNUInstallDirs) | ||
38 | +endif(UNIX) | ||
39 | + | ||
40 | + | ||
41 | # API headers. | ||
42 | -install(DIRECTORY "${CLDNN__API_DIR}/" | ||
43 | +if(UNIX) | ||
44 | + install(DIRECTORY "${CLDNN__API_DIR}/" | ||
45 | + DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/clDNN" | ||
46 | + FILE_PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ | ||
47 | + ) | ||
48 | +else() | ||
49 | + install(DIRECTORY "${CLDNN__API_DIR}/" | ||
50 | DESTINATION "include/clDNN" | ||
51 | FILE_PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ | ||
52 | ) | ||
53 | +endif(UNIX) | ||
54 | + | ||
55 | # Binaries. | ||
56 | -install(TARGETS "${CLDNN_BUILD__PROJ}" | ||
57 | - ARCHIVE DESTINATION "lib" | ||
58 | - LIBRARY DESTINATION "lib" | ||
59 | - RUNTIME DESTINATION "bin" | ||
60 | - INCLUDES DESTINATION "include/clDNN" | ||
61 | - ) | ||
62 | +if(UNIX) | ||
63 | + install(TARGETS "${CLDNN_BUILD__PROJ}" | ||
64 | + ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}" | ||
65 | + LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}" | ||
66 | + RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}" | ||
67 | + INCLUDES DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/clDNN" | ||
68 | + ) | ||
69 | +else() | ||
70 | + install(TARGETS "${CLDNN_BUILD__PROJ}" | ||
71 | + ARCHIVE DESTINATION "lib" | ||
72 | + LIBRARY DESTINATION "lib" | ||
73 | + RUNTIME DESTINATION "bin" | ||
74 | + INCLUDES DESTINATION "include/clDNN" | ||
75 | + ) | ||
76 | +endif(UNIX) | ||
77 | |||
78 | # ====================================================================================================== | ||
79 | -- | ||
80 | 2.7.4 | ||
81 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-disable-werror.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-disable-werror.patch deleted file mode 100644 index ca912fdf..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-disable-werror.patch +++ /dev/null | |||
@@ -1,97 +0,0 @@ | |||
1 | From 1ca4d5de754c6ee90f685f2706f657800cad8386 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Fri, 27 Sep 2019 20:32:08 +0800 | ||
4 | Subject: [PATCH 4/7] disable werror | ||
5 | |||
6 | This shouldn't be enabled and leads to multiple errors when compiling | ||
7 | cldnn and samples. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> | ||
13 | --- | ||
14 | inference-engine/cmake/os_flags.cmake | 1 - | ||
15 | inference-engine/samples/CMakeLists.txt | 1 - | ||
16 | inference-engine/src/extension/CMakeLists.txt | 1 - | ||
17 | inference-engine/thirdparty/clDNN/CMakeLists.txt | 2 -- | ||
18 | inference-engine/thirdparty/mkl-dnn/cmake/platform.cmake | 1 - | ||
19 | inference-engine/tools/CMakeLists.txt | 1 - | ||
20 | 6 files changed, 7 deletions(-) | ||
21 | |||
22 | diff --git a/inference-engine/cmake/os_flags.cmake b/inference-engine/cmake/os_flags.cmake | ||
23 | index ad15859..d471246 100644 | ||
24 | --- a/inference-engine/cmake/os_flags.cmake | ||
25 | +++ b/inference-engine/cmake/os_flags.cmake | ||
26 | @@ -47,7 +47,6 @@ if (WIN32) | ||
27 | set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${DEBUG_SYMBOLS_LINKER_FLAGS}") | ||
28 | endif() | ||
29 | else() | ||
30 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Werror=return-type ") | ||
31 | if (APPLE) | ||
32 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") | ||
33 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function") | ||
34 | diff --git a/inference-engine/samples/CMakeLists.txt b/inference-engine/samples/CMakeLists.txt | ||
35 | index 25f9f23..9aa5d5a 100644 | ||
36 | --- a/inference-engine/samples/CMakeLists.txt | ||
37 | +++ b/inference-engine/samples/CMakeLists.txt | ||
38 | @@ -59,7 +59,6 @@ if (WIN32) | ||
39 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4267") #disable some warnings | ||
40 | endif() | ||
41 | else() | ||
42 | - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") #treating warnings as errors | ||
43 | if (APPLE) | ||
44 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") | ||
45 | elseif(UNIX) | ||
46 | diff --git a/inference-engine/src/extension/CMakeLists.txt b/inference-engine/src/extension/CMakeLists.txt | ||
47 | index fb14ebe..228bb8c 100644 | ||
48 | --- a/inference-engine/src/extension/CMakeLists.txt | ||
49 | +++ b/inference-engine/src/extension/CMakeLists.txt | ||
50 | @@ -25,7 +25,6 @@ if (WIN32) | ||
51 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4267") #disable some warnings | ||
52 | endif() | ||
53 | else() | ||
54 | - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") | ||
55 | endif() | ||
56 | |||
57 | if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) | ||
58 | diff --git a/inference-engine/thirdparty/clDNN/CMakeLists.txt b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
59 | index 03e5bad..b9a3f5d 100644 | ||
60 | --- a/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
61 | +++ b/inference-engine/thirdparty/clDNN/CMakeLists.txt | ||
62 | @@ -760,8 +760,6 @@ foreach(__CLDNN_CompilerFlagName IN ITEMS "CMAKE_CXX_FLAGS" "CMAKE_C_FLAGS") | ||
63 | MultiProcessorCompilation | ||
64 | DeadCodeEliminate | ||
65 | ExtensionsEnabled | ||
66 | - TreatWarnAsErrorEnabled | ||
67 | - WarnLevel4 | ||
68 | NoFastMath | ||
69 | StackProtector | ||
70 | ) | ||
71 | diff --git a/inference-engine/thirdparty/mkl-dnn/cmake/platform.cmake b/inference-engine/thirdparty/mkl-dnn/cmake/platform.cmake | ||
72 | index a541215..bed8a59 100644 | ||
73 | --- a/inference-engine/thirdparty/mkl-dnn/cmake/platform.cmake | ||
74 | +++ b/inference-engine/thirdparty/mkl-dnn/cmake/platform.cmake | ||
75 | @@ -63,7 +63,6 @@ if(MSVC) | ||
76 | endif() | ||
77 | elseif(UNIX OR MINGW) | ||
78 | append(CMAKE_CCXX_FLAGS "-Wall -Wno-unknown-pragmas") | ||
79 | - append_if_product(CMAKE_CCXX_FLAGS "-Werror") | ||
80 | append(CMAKE_CCXX_FLAGS "-fvisibility=internal") | ||
81 | append(CMAKE_C_FLAGS "-std=c99") | ||
82 | append(CMAKE_CXX_FLAGS "-std=c++11 -fvisibility-inlines-hidden") | ||
83 | diff --git a/inference-engine/tools/CMakeLists.txt b/inference-engine/tools/CMakeLists.txt | ||
84 | index 3d80df3..b6cb7d8 100644 | ||
85 | --- a/inference-engine/tools/CMakeLists.txt | ||
86 | +++ b/inference-engine/tools/CMakeLists.txt | ||
87 | @@ -24,7 +24,6 @@ endif() | ||
88 | if (WIN32) | ||
89 | # add_compile_options("/WX") | ||
90 | else() | ||
91 | - add_compile_options("-Werror") | ||
92 | endif() | ||
93 | |||
94 | if (ENABLE_OPENCV) | ||
95 | -- | ||
96 | 2.7.4 | ||
97 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-point-to-correct-location-of-ngraph-headers.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-point-to-correct-location-of-ngraph-headers.patch deleted file mode 100644 index 0a01f5ac..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0005-point-to-correct-location-of-ngraph-headers.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From c17cee8005b9635699feea98bfc34ede340daf07 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Fri, 27 Sep 2019 23:06:18 +0800 | ||
4 | Subject: [PATCH 5/7] point to correct location of ngraph headers | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
8 | --- | ||
9 | inference-engine/src/inference_engine/CMakeLists.txt | 2 +- | ||
10 | inference-engine/tests/unit/CMakeLists.txt | 3 ++- | ||
11 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
14 | index 54d3828..4a9bedf 100644 | ||
15 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
16 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
17 | @@ -119,7 +119,7 @@ target_include_directories(${TARGET_NAME} PUBLIC | ||
18 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/pugixml/src") | ||
19 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/ngraph/src") | ||
20 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/ocv") | ||
21 | -include_directories(${TARGET_NAME} "/usr/include/ngraph") | ||
22 | +include_directories(${TARGET_NAME} "${NGRAPH_INCLUDES}") | ||
23 | |||
24 | if(ENABLE_MKL_DNN) | ||
25 | target_include_directories(${TARGET_NAME} SYSTEM PRIVATE "${IE_MAIN_SOURCE_DIR}/thirdparty/mkl-dnn/src/cpu/xbyak") | ||
26 | diff --git a/inference-engine/tests/unit/CMakeLists.txt b/inference-engine/tests/unit/CMakeLists.txt | ||
27 | index 2d37b1e..b98d5a6 100644 | ||
28 | --- a/inference-engine/tests/unit/CMakeLists.txt | ||
29 | +++ b/inference-engine/tests/unit/CMakeLists.txt | ||
30 | @@ -83,7 +83,8 @@ target_include_directories(${TARGET_NAME} PRIVATE | ||
31 | ${IE_MAIN_SOURCE_DIR}/src/extension | ||
32 | ${IE_MAIN_SOURCE_DIR}/src/extension/common | ||
33 | ${IE_MAIN_SOURCE_DIR}/thirdparty/ngraph/src | ||
34 | - "${CMAKE_CURRENT_SOURCE_DIR}/mocks") | ||
35 | + "${CMAKE_CURRENT_SOURCE_DIR}/mocks" | ||
36 | + ${NGRAPH_INCLUDES}) | ||
37 | |||
38 | set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_PDB_NAME ${TARGET_NAME}) | ||
39 | |||
40 | -- | ||
41 | 2.7.4 | ||
42 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0006-Install-clDNN-plugin-to-CMAKE_INSTALL_LIBDIR.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0006-Install-clDNN-plugin-to-CMAKE_INSTALL_LIBDIR.patch deleted file mode 100644 index b0c0a5d4..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0006-Install-clDNN-plugin-to-CMAKE_INSTALL_LIBDIR.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From e41aafcd133ecf7215e941e01a58fcacd5c91bd7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chin Huat Ang <chin.huat.ang@intel.com> | ||
3 | Date: Mon, 30 Sep 2019 13:50:45 +0800 | ||
4 | Subject: [PATCH 6/7] Install clDNN plugin to CMAKE_INSTALL_LIBDIR | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> | ||
8 | --- | ||
9 | inference-engine/src/cldnn_engine/CMakeLists.txt | 2 ++ | ||
10 | 1 file changed, 2 insertions(+) | ||
11 | |||
12 | diff --git a/inference-engine/src/cldnn_engine/CMakeLists.txt b/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
13 | index b618084..7bdb311 100644 | ||
14 | --- a/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
15 | +++ b/inference-engine/src/cldnn_engine/CMakeLists.txt | ||
16 | @@ -22,6 +22,8 @@ target_include_directories(${TARGET_NAME} PRIVATE | ||
17 | ${IE_MAIN_SOURCE_DIR}/src/inference_engine | ||
18 | ${IE_MAIN_SOURCE_DIR}/thirdparty/pugixml/src) | ||
19 | |||
20 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
21 | + | ||
22 | # copy default global xml file describing the custom kernels and the *.cl files | ||
23 | |||
24 | add_custom_command(TARGET ${TARGET_NAME} POST_BUILD | ||
25 | -- | ||
26 | 2.7.4 | ||
27 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-mock_engine-to-CMAKE_INSTALL_LIBDIR.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-mock_engine-to-CMAKE_INSTALL_LIBDIR.patch deleted file mode 100644 index 2a2b1ba3..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-mock_engine-to-CMAKE_INSTALL_LIBDIR.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | From 41c81231a9f3222423510f2b6b10f4e7024150de Mon Sep 17 00:00:00 2001 | ||
2 | From: Chin Huat Ang <chin.huat.ang@intel.com> | ||
3 | Date: Wed, 16 Oct 2019 13:06:26 +0800 | ||
4 | Subject: [PATCH 7/7] Install mock_engine to CMAKE_INSTALL_LIBDIR | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> | ||
8 | --- | ||
9 | inference-engine/tests/mock_engine/CMakeLists.txt | 2 ++ | ||
10 | 1 file changed, 2 insertions(+) | ||
11 | |||
12 | diff --git a/inference-engine/tests/mock_engine/CMakeLists.txt b/inference-engine/tests/mock_engine/CMakeLists.txt | ||
13 | index a0f77cf..e23b93a 100644 | ||
14 | --- a/inference-engine/tests/mock_engine/CMakeLists.txt | ||
15 | +++ b/inference-engine/tests/mock_engine/CMakeLists.txt | ||
16 | @@ -38,3 +38,5 @@ target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_ENGINE_API | ||
17 | set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD 11) | ||
18 | set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
19 | set_property(TARGET ${TARGET_NAME} PROPERTY COMPILE_PDB_NAME ${TARGET_NAME}) | ||
20 | + | ||
21 | +install(TARGETS ${TARGET_NAME} EXPORT ${TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
22 | -- | ||
23 | 2.7.4 | ||
24 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0008-Simplify-searching-for-firmware-files.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0008-Simplify-searching-for-firmware-files.patch deleted file mode 100644 index a4c75ff3..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0008-Simplify-searching-for-firmware-files.patch +++ /dev/null | |||
@@ -1,104 +0,0 @@ | |||
1 | From 1f6f05ae4d3fba95ccc34a4622d06b9d2bf88e80 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Fri, 27 Sep 2019 11:34:36 +0800 | ||
4 | Subject: [PATCH] Simplify searching for firmware files | ||
5 | |||
6 | Disable runtime fetching when VPU_FIRMWARE_*_FILE variables are defined | ||
7 | and point to already fetched firmware instead. | ||
8 | |||
9 | Do it all in one foreach loop. | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/opencv/dldt/pull/302] | ||
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | --- | ||
15 | inference-engine/cmake/vpu_dependencies.cmake | 63 ++++++------------- | ||
16 | 1 file changed, 20 insertions(+), 43 deletions(-) | ||
17 | |||
18 | diff --git a/inference-engine/cmake/vpu_dependencies.cmake b/inference-engine/cmake/vpu_dependencies.cmake | ||
19 | index 1550163d..e0bc844e 100644 | ||
20 | --- a/inference-engine/cmake/vpu_dependencies.cmake | ||
21 | +++ b/inference-engine/cmake/vpu_dependencies.cmake | ||
22 | @@ -4,52 +4,29 @@ | ||
23 | |||
24 | set(VPU_SUPPORTED_SOC ma2450 ma2x8x mv0262) | ||
25 | |||
26 | -# | ||
27 | -# Default firmware packages | ||
28 | -# | ||
29 | - | ||
30 | -RESOLVE_DEPENDENCY(VPU_FIRMWARE_MA2450 | ||
31 | - ARCHIVE_UNIFIED firmware_ma2450_759W.zip | ||
32 | - TARGET_PATH "${TEMP}/vpu/firmware/ma2450" | ||
33 | - ENVIRONMENT "VPU_FIRMWARE_MA2450" | ||
34 | - FOLDER) | ||
35 | -debug_message(STATUS "ma2450=" ${VPU_FIRMWARE_MA2450}) | ||
36 | - | ||
37 | -RESOLVE_DEPENDENCY(VPU_FIRMWARE_MV0262 | ||
38 | - ARCHIVE_UNIFIED firmware_mv0262_mdk_R9.8.zip | ||
39 | - TARGET_PATH "${TEMP}/vpu/firmware/mv0262" | ||
40 | - ENVIRONMENT "VPU_FIRMWARE_MV0262" | ||
41 | - FOLDER) | ||
42 | -debug_message(STATUS "mv0262=" ${VPU_FIRMWARE_MV0262}) | ||
43 | - | ||
44 | -RESOLVE_DEPENDENCY(VPU_FIRMWARE_MA2X8X | ||
45 | - ARCHIVE_UNIFIED firmware_ma2x8x_mdk_R9.8.zip | ||
46 | - TARGET_PATH "${TEMP}/vpu/firmware/ma2x8x" | ||
47 | - ENVIRONMENT "VPU_FIRMWARE_MA2X8X" | ||
48 | - FOLDER) | ||
49 | -debug_message(STATUS "ma2x8x=" ${VPU_FIRMWARE_MA2X8X}) | ||
50 | - | ||
51 | -# | ||
52 | -# CMake variables to override default firmware files | ||
53 | -# | ||
54 | - | ||
55 | foreach(soc IN LISTS VPU_SUPPORTED_SOC) | ||
56 | string(TOUPPER "${soc}" soc_upper) | ||
57 | - set(var_name VPU_FIRMWARE_${soc_upper}_FILE) | ||
58 | + set(var_name_file VPU_FIRMWARE_${soc_upper}_FILE) | ||
59 | + set(var_name VPU_FIRMWARE_${soc_upper}) | ||
60 | + set(var_name_zip firmware_${soc}_mdk_R9.8.zip) | ||
61 | + if(${soc} STREQUAL "ma2450") | ||
62 | + set(var_name_zip firmware_${soc}_759W.zip) | ||
63 | + endif() | ||
64 | |||
65 | - find_file(${var_name} MvNCAPI-${soc}.mvcmd "${VPU_FIRMWARE_${soc_upper}}/mvnc") | ||
66 | - if(NOT ${var_name}) | ||
67 | - message(FATAL_ERROR "[VPU] Missing ${soc} firmware") | ||
68 | + if(NOT DEFINED ${var_name_file}) | ||
69 | + RESOLVE_DEPENDENCY(${var_name} | ||
70 | + ARCHIVE_UNIFIED ${var_name_zip} | ||
71 | + TARGET_PATH "${TEMP}/vpu/firmware/${soc}" | ||
72 | + ENVIRONMENT "${var_name}" | ||
73 | + FOLDER) | ||
74 | + find_file(${var_name_file} NAMES "MvNCAPI-${soc}.mvcmd" PATHS "${VPU_FIRMWARE_${soc_upper}}/mvnc" NO_CMAKE_FIND_ROOT_PATH) | ||
75 | endif() | ||
76 | -endforeach() | ||
77 | |||
78 | -# | ||
79 | -# `vpu_copy_firmware` CMake target | ||
80 | -# | ||
81 | + if(NOT ${var_name_file}) | ||
82 | + message(FATAL_ERROR "[VPU] Missing ${soc} firmware, MvNCAPI-${soc}.mvcmd not found in ${VPU_FIRMWARE_${soc_upper}}/mvnc env $ENV{${var_name}} ") | ||
83 | + endif() | ||
84 | |||
85 | -foreach(soc IN LISTS VPU_SUPPORTED_SOC) | ||
86 | - string(TOUPPER "${soc}" soc_upper) | ||
87 | - set(var_name VPU_FIRMWARE_${soc_upper}_FILE) | ||
88 | + debug_message(STATUS "${soc}=" ${${var_name_file}}) | ||
89 | |||
90 | set(firmware_out_file "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/MvNCAPI-${soc}.mvcmd") | ||
91 | list(APPEND all_firmware_files ${firmware_out_file}) | ||
92 | @@ -57,9 +34,9 @@ foreach(soc IN LISTS VPU_SUPPORTED_SOC) | ||
93 | add_custom_command( | ||
94 | OUTPUT ${firmware_out_file} | ||
95 | COMMAND | ||
96 | - ${CMAKE_COMMAND} -E copy ${${var_name}} ${firmware_out_file} | ||
97 | - MAIN_DEPENDENCY ${${var_name}} | ||
98 | - COMMENT "[VPU] Copy ${${var_name}} to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" | ||
99 | + ${CMAKE_COMMAND} -E copy ${${var_name_file}} ${firmware_out_file} | ||
100 | + MAIN_DEPENDENCY ${${var_name_file}} | ||
101 | + COMMENT "[VPU] Copy ${${var_name_file}} to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" | ||
102 | VERBATIM) | ||
103 | endforeach() | ||
104 | |||
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 92f238a9..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/run-ptest +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # InferenceEngineUnitTests requires libmock_engine.so, since they are | ||
4 | # installed in the same directory we will need to set LD_LIBRARY_PATH | ||
5 | # so that libmock_engine.so is picked up correctly. We also assume that | ||
6 | # this script is only execute within the same directory where it is | ||
7 | # installed. | ||
8 | |||
9 | export LD_LIBRARY_PATH=. | ||
10 | |||
11 | ./InferenceEngineUnitTests |sed \ | ||
12 | -e 's|\[.*OK.*\]\(.*\)|PASS:\1|' \ | ||
13 | -e 's|\[.*FAILED.*\]\(.*\)|FAIL:\1|' | ||
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 new file mode 100644 index 00000000..816a98a3 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 804b08023b3f8e72b8e3eb09e464d6775c11d966 Mon Sep 17 00:00:00 2001 | ||
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
3 | Date: Fri, 21 Oct 2022 11:38:23 +0800 | ||
4 | Subject: [PATCH] demos: use gflags from meta-oe | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
9 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
10 | |||
11 | --- | ||
12 | demos/CMakeLists.txt | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt | ||
16 | index 51767051c..fb7e3d22f 100644 | ||
17 | --- a/demos/CMakeLists.txt | ||
18 | +++ b/demos/CMakeLists.txt | ||
19 | @@ -141,7 +141,7 @@ endmacro() | ||
20 | find_package(OpenCV REQUIRED COMPONENTS core highgui videoio imgproc imgcodecs) | ||
21 | find_package(OpenVINO REQUIRED COMPONENTS Runtime) | ||
22 | |||
23 | -add_subdirectory(thirdparty/gflags) | ||
24 | +#add_subdirectory(thirdparty/gflags) | ||
25 | add_subdirectory(common/cpp) | ||
26 | |||
27 | find_package(OpenCV QUIET COMPONENTS gapi) | ||
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_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+))$" | ||