diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support')
11 files changed, 71 insertions, 495 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-fix-build-failure-by-removing-pie-from-sh.patch b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-fix-build-failure-by-removing-pie-from-sh.patch new file mode 100644 index 00000000..3545cd5e --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/ipmctl/ipmctl/0001-CMakeLists-fix-build-failure-by-removing-pie-from-sh.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 5b8b59a18f4a54ba912faad861f0af3fdcf127c6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Wed, 10 Sep 2025 21:15:53 +0800 | ||
| 4 | Subject: [PATCH] CMakeLists: fix build failure by removing -pie from shared | ||
| 5 | library targets | ||
| 6 | |||
| 7 | With CMake 4.1.0 the build of libipmctl started failing with: | ||
| 8 | |||
| 9 | error: undefined reference to `main` in *.S | ||
| 10 | |||
| 11 | - `-pie` is only valid when linking executables (PIE), not shared | ||
| 12 | libraries. | ||
| 13 | - When applied to a shared library, the linker expects a `main` | ||
| 14 | symbol, causing the undefined reference error. | ||
| 15 | - Remove `-pie` from shared libraries linker flag | ||
| 16 | |||
| 17 | Upstream-Status: Submitted [https://github.com/intel/ipmctl/pull/221] | ||
| 18 | |||
| 19 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 20 | --- | ||
| 21 | CMakeLists.txt | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 25 | index 1c07e682..d7aab78f 100644 | ||
| 26 | --- a/CMakeLists.txt | ||
| 27 | +++ b/CMakeLists.txt | ||
| 28 | @@ -156,7 +156,7 @@ endif() | ||
| 29 | if(UNIX) | ||
| 30 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_MSABI_VA_FUNCS -std=c99 -Wformat -Wformat-security -D_XOPEN_SOURCE=500 -Wall -Wfatal-errors -MMD -fPIC -fno-strict-aliasing") | ||
| 31 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wformat -Wformat-security -D_XOPEN_SOURCE=500 -Drestrict=__restrict__ -Wall -Wfatal-errors -MMD -fPIC -fno-strict-aliasing") | ||
| 32 | - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z noexecstack -z relro -z now -pie") | ||
| 33 | + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z noexecstack -z relro -z now") | ||
| 34 | elseif(MSVC) | ||
| 35 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /GS /DynamicBase /sdl") | ||
| 36 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GS /DynamicBase /sdl") | ||
| 37 | -- | ||
| 38 | 2.37.3 | ||
| 39 | |||
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 index 11305e83..8a734ed2 100644 --- 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 | |||
| @@ -6,10 +6,10 @@ Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com> | |||
| 6 | MdePkg/Include/Base.h | 12 ++++++++++++ | 6 | MdePkg/Include/Base.h | 12 ++++++++++++ |
| 7 | 1 file changed, 12 insertions(+) | 7 | 1 file changed, 12 insertions(+) |
| 8 | 8 | ||
| 9 | diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h | 9 | Index: edk2/MdePkg/Include/Base.h |
| 10 | index d209e6de28..6e61b8f3d3 100644 | 10 | =================================================================== |
| 11 | --- a/MdePkg/Include/Base.h | 11 | --- edk2.orig/MdePkg/Include/Base.h |
| 12 | +++ b/MdePkg/Include/Base.h | 12 | +++ edk2/MdePkg/Include/Base.h |
| 13 | @@ -316,8 +316,12 @@ struct _LIST_ENTRY { | 13 | @@ -316,8 +316,12 @@ struct _LIST_ENTRY { |
| 14 | #define NULL __null | 14 | #define NULL __null |
| 15 | #endif | 15 | #endif |
| @@ -20,40 +20,43 @@ index d209e6de28..6e61b8f3d3 100644 | |||
| 20 | #endif | 20 | #endif |
| 21 | +#endif | 21 | +#endif |
| 22 | +#endif | 22 | +#endif |
| 23 | 23 | ||
| 24 | // | 24 | // |
| 25 | // Null character | 25 | // Null character |
| 26 | @@ -779,6 +783,8 @@ typedef UINTN *BASE_LIST; | 26 | @@ -813,6 +817,8 @@ typedef UINTN *BASE_LIST; |
| 27 | // Section 2.3.1 of the UEFI 2.3 Specification. | 27 | // Section 2.3.1 of the UEFI 2.3 Specification. |
| 28 | // | 28 | // |
| 29 | 29 | ||
| 30 | +#ifndef OS_BUILD | 30 | +#ifndef OS_BUILD |
| 31 | +#ifndef UNIT_TEST_UEFI_BUILD | 31 | +#ifndef UNIT_TEST_UEFI_BUILD |
| 32 | STATIC_ASSERT (sizeof (BOOLEAN) == 1, "sizeof (BOOLEAN) does not meet UEFI Specification Data Type requirements"); | 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"); | 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"); | 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 | 35 | @@ -841,7 +847,8 @@ STATIC_ASSERT (ALIGNOF (CHAR16) == size |
| 36 | STATIC_ASSERT (sizeof (CHAR16) == 2, "sizeof (CHAR16) does not meet UEFI Specification Data Type requirements"); | 36 | STATIC_ASSERT (ALIGNOF (INTN) == sizeof (INTN), "Alignment of INTN 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"); | 37 | STATIC_ASSERT (ALIGNOF (UINTN) == sizeof (UINTN), "Alignment of UINTN 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"); | 38 | STATIC_ASSERT (ALIGNOF (VOID *) == sizeof (VOID *), "Alignment of VOID * does not meet UEFI Specification Data Type requirements"); |
| 39 | - | ||
| 39 | +#endif | 40 | +#endif |
| 40 | +#endif | 41 | +#endif |
| 41 | |||
| 42 | // | 42 | // |
| 43 | // The following three enum types are used to verify that the compiler | 43 | // The following three enum types are used to verify that the compiler |
| 44 | @@ -812,9 +820,13 @@ typedef enum { | 44 | // configuration for enum types is compliant with Section 2.3.1 of the |
| 45 | __VerifyUint32EnumValue = 0xffffffff | 45 | @@ -861,6 +868,8 @@ typedef enum { |
| 46 | } __VERIFY_UINT32_ENUM_SIZE; | 46 | __VerifyInt32EnumValue = 0x7fffffff |
| 47 | 47 | } __VERIFY_INT32_ENUM_SIZE; | |
| 48 | |||
| 48 | +#ifndef OS_BUILD | 49 | +#ifndef OS_BUILD |
| 49 | +#ifndef UNIT_TEST_UEFI_BUILD | 50 | +#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_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_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 | STATIC_ASSERT (sizeof (__VERIFY_INT32_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); |
| 54 | @@ -868,6 +877,8 @@ STATIC_ASSERT (sizeof (__VERIFY_INT32_EN | ||
| 55 | STATIC_ASSERT (ALIGNOF (__VERIFY_UINT8_ENUM_SIZE) == sizeof (__VERIFY_UINT8_ENUM_SIZE), "Alignment of enum does not meet UEFI Specification Data Type requirements"); | ||
| 56 | STATIC_ASSERT (ALIGNOF (__VERIFY_UINT16_ENUM_SIZE) == sizeof (__VERIFY_UINT16_ENUM_SIZE), "Alignment of enum does not meet UEFI Specification Data Type requirements"); | ||
| 57 | STATIC_ASSERT (ALIGNOF (__VERIFY_INT32_ENUM_SIZE) == sizeof (__VERIFY_INT32_ENUM_SIZE), "Alignment of enum does not meet UEFI Specification Data Type requirements"); | ||
| 53 | +#endif | 58 | +#endif |
| 54 | +#endif | 59 | +#endif |
| 55 | 60 | ||
| 56 | /** | 61 | /** |
| 57 | Macro that returns a pointer to the data structure that contains a specified field of | 62 | 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.0499.bb index c4743d1c..a0877071 100644 --- 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.0499.bb | |||
| @@ -15,24 +15,25 @@ LICENSE = "BSD-3-Clause | BSD-2-Clause" | |||
| 15 | LIC_FILES_CHKSUM = "file://LICENSE;md5=72b9da60da6219d612ce30b746a0fe71 \ | 15 | LIC_FILES_CHKSUM = "file://LICENSE;md5=72b9da60da6219d612ce30b746a0fe71 \ |
| 16 | file://edk2/License.txt;md5=6123e5bf044a66db96c4ce88a36b2d08" | 16 | file://edk2/License.txt;md5=6123e5bf044a66db96c4ce88a36b2d08" |
| 17 | 17 | ||
| 18 | SRC_URI = "git://github.com/intel/ipmctl.git;protocol=https;branch=master;name=ipmctl; \ | 18 | SRC_URI = "git://github.com/intel/ipmctl.git;protocol=https;branch=master_3_0;name=ipmctl; \ |
| 19 | git://github.com/tianocore/edk2.git;protocol=https;name=edk2;destsuffix=git/edk2;branch=master \ | 19 | git://github.com/tianocore/edk2.git;protocol=https;name=edk2;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/edk2;branch=master \ |
| 20 | file://0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch;patchdir=edk2 \ | 20 | file://0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch;patchdir=edk2 \ |
| 21 | file://0001-CMakeLists-disable-Werror.patch \ | 21 | file://0001-CMakeLists-disable-Werror.patch \ |
| 22 | file://0001-CMakeLists-fix-build-failure-by-removing-pie-from-sh.patch \ | ||
| 22 | " | 23 | " |
| 23 | 24 | ||
| 24 | SRCREV_ipmctl = "c75bd840ea7820c8f93a5488fcff75d08beedd51" | 25 | SRCREV_ipmctl = "a71f2fb1c90dd07f9862b71c789881132193e8f9" |
| 25 | #tag edk2-stable202302 | 26 | #tag edk2-stable202408 |
| 26 | SRCREV_edk2 = "f80f052277c88a67c55e107b550f504eeea947d3" | 27 | SRCREV_edk2 = "b158dad150bf02879668f72ce306445250838201" |
| 27 | SRCREV_FORMAT = "ipmctl_edk2" | 28 | SRCREV_FORMAT = "ipmctl_edk2" |
| 28 | 29 | ||
| 29 | S = "${WORKDIR}/git" | ||
| 30 | |||
| 31 | inherit cmake dos2unix | 30 | inherit cmake dos2unix |
| 32 | 31 | ||
| 33 | DEPENDS = "ndctl pkgconfig-native" | 32 | DEPENDS = "ndctl pkgconfig-native" |
| 34 | 33 | ||
| 35 | EXTRA_OECMAKE = "-DRELEASE=ON" | 34 | EXTRA_OECMAKE = "-DRELEASE=ON \ |
| 35 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | ||
| 36 | " | ||
| 36 | 37 | ||
| 37 | do_configure:prepend() { | 38 | do_configure:prepend() { |
| 38 | for dir in BaseTools MdeModulePkg MdePkg ShellPkg ; do | 39 | for dir in BaseTools MdeModulePkg MdePkg ShellPkg ; do |
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-CPU-Solving-the-build-failure-caused-by-setting-the-.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-CPU-Solving-the-build-failure-caused-by-setting-the-.patch deleted file mode 100644 index d1851406..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-CPU-Solving-the-build-failure-caused-by-setting-the-.patch +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | From b8c3bae71e6d3417ade5cb537cb1785fd75a75c8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Razvan Apetroaie <117895604+razvanapetroaie@users.noreply.github.com> | ||
| 3 | Date: Tue, 20 Feb 2024 02:28:14 +0200 | ||
| 4 | Subject: [PATCH] [CPU] Solving the build failure caused by setting the | ||
| 5 | "ENABLE_OV_ONNX_FRONTEND" option to "OFF" (#22934) | ||
| 6 | |||
| 7 | ### Details: | ||
| 8 | See the [ticket | ||
| 9 | description](https://jira.devtools.intel.com/browse/CVS-132119). The | ||
| 10 | solution was checked only on a local setup on Ubuntu, if there's a way | ||
| 11 | to check that using the CI please let me know (or if you could run the | ||
| 12 | job and paste the link in the comments I would be grateful). | ||
| 13 | |||
| 14 | Disclaimer: I'm not a CPU plugin developer, so I can't tell for sure if | ||
| 15 | this is the ideal fix and no side effects are introduced. Please take | ||
| 16 | that into account when reviewing/merging. | ||
| 17 | |||
| 18 | ### Tickets: | ||
| 19 | - [CVS-132119](https://jira.devtools.intel.com/browse/CVS-132119) | ||
| 20 | |||
| 21 | Upstream-Status: Backport [https://github.com/openvinotoolkit/openvino/commit/b8c3bae71e6d3417ade5cb537cb1785fd75a75c8] | ||
| 22 | |||
| 23 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 24 | --- | ||
| 25 | src/plugins/intel_cpu/tests/functional/CMakeLists.txt | 2 +- | ||
| 26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/src/plugins/intel_cpu/tests/functional/CMakeLists.txt b/src/plugins/intel_cpu/tests/functional/CMakeLists.txt | ||
| 29 | index db5ae8d01c..6941cb528d 100644 | ||
| 30 | --- a/src/plugins/intel_cpu/tests/functional/CMakeLists.txt | ||
| 31 | +++ b/src/plugins/intel_cpu/tests/functional/CMakeLists.txt | ||
| 32 | @@ -16,7 +16,7 @@ set(LINK_LIBRARIES funcSharedTests cpuSpecificRtInfo openvino::snippets ov_snipp | ||
| 33 | if(ENABLE_OV_ONNX_FRONTEND) | ||
| 34 | list(APPEND DEFINES TEST_MODELS="${TEST_MODEL_ZOO}") | ||
| 35 | else() | ||
| 36 | - set(EXCLUDED_SOURCE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/extension ${CMAKE_CURRENT_SOURCE_DIR}/shared_tests_instances/onnx) | ||
| 37 | + set(EXCLUDED_SOURCE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/custom/extension ${CMAKE_CURRENT_SOURCE_DIR}/shared_tests_instances/onnx) | ||
| 38 | endif() | ||
| 39 | |||
| 40 | if(NOT (ARM OR AARCH64)) | ||
| 41 | -- | ||
| 42 | 2.34.1 | ||
| 43 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-fix-build-when-using-sysroot.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-fix-build-when-using-sysroot.patch deleted file mode 100644 index d251f21b..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-fix-build-when-using-sysroot.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From b5dfcf8bc1245e804c847745c237068eb6f19931 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Fri, 15 Mar 2024 16:28:41 +0800 | ||
| 4 | Subject: [PATCH] cmake: fix build when using sysroot | ||
| 5 | |||
| 6 | When cross-compiling against a sysroot, system headers will not be at a place | ||
| 7 | that starts with /usr. Update conditional check to exclude directories | ||
| 8 | which have "/usr/include" in them to not add <sysroot>/usr/include as well. | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://github.com/openvinotoolkit/openvino/pull/23486] | ||
| 11 | |||
| 12 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 13 | --- | ||
| 14 | src/cmake/ov_parallel.cmake | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/src/cmake/ov_parallel.cmake b/src/cmake/ov_parallel.cmake | ||
| 18 | index 3793db98e30..819d3410531 100644 | ||
| 19 | --- a/src/cmake/ov_parallel.cmake | ||
| 20 | +++ b/src/cmake/ov_parallel.cmake | ||
| 21 | @@ -296,7 +296,7 @@ function(ov_set_threading_interface_for TARGET_NAME) | ||
| 22 | if(include_directories) | ||
| 23 | foreach(include_directory IN LISTS include_directories) | ||
| 24 | # cannot include /usr/include headers as SYSTEM | ||
| 25 | - if(NOT "${include_directory}" MATCHES "^/usr.*$") | ||
| 26 | + if(NOT "${include_directory}" MATCHES ".*/usr/include.*$") | ||
| 27 | target_include_directories(${TARGET_NAME} SYSTEM | ||
| 28 | ${LINK_TYPE} $<BUILD_INTERFACE:${include_directory}>) | ||
| 29 | else() | ||
| 30 | -- | ||
| 31 | 2.34.1 | ||
| 32 | |||
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 deleted file mode 100644 index 7ab31309..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-cmake-yocto-specific-tweaks-to-the-build-process.patch +++ /dev/null | |||
| @@ -1,90 +0,0 @@ | |||
| 1 | From bfcf5ae581ca4e7266cf7dc65b1c71754cd78cc0 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 1/4] 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 | * Install sample binaries as well. | ||
| 8 | * Dont strip binaries. | ||
| 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 | 2 +- | ||
| 18 | samples/cpp/CMakeLists.txt | 6 +++--- | ||
| 19 | src/bindings/python/CMakeLists.txt | 2 +- | ||
| 20 | src/bindings/python/wheel/setup.py | 1 - | ||
| 21 | 5 files changed, 6 insertions(+), 7 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/cmake/developer_package/packaging/rpm/rpm.cmake b/cmake/developer_package/packaging/rpm/rpm.cmake | ||
| 24 | index a7c0ec2cf61..40448e8a962 100644 | ||
| 25 | --- a/cmake/developer_package/packaging/rpm/rpm.cmake | ||
| 26 | +++ b/cmake/developer_package/packaging/rpm/rpm.cmake | ||
| 27 | @@ -154,7 +154,7 @@ ov_rpm_specific_settings() | ||
| 28 | # needed to add triggers for packages with libraries | ||
| 29 | set(def_triggers "${OpenVINO_BINARY_DIR}/_CPack_Packages/triggers") | ||
| 30 | set(triggers_content "# /bin/sh -p\n/sbin/ldconfig\n") | ||
| 31 | -file(WRITE "${def_triggers}" "${triggers_content}") | ||
| 32 | +#file(WRITE "${def_triggers}" "${triggers_content}") | ||
| 33 | |||
| 34 | # | ||
| 35 | # Functions helpful for packaging your modules with RPM cpack | ||
| 36 | diff --git a/cmake/developer_package/target_flags.cmake b/cmake/developer_package/target_flags.cmake | ||
| 37 | index 29f23e713e1..942dd445b19 100644 | ||
| 38 | --- a/cmake/developer_package/target_flags.cmake | ||
| 39 | +++ b/cmake/developer_package/target_flags.cmake | ||
| 40 | @@ -145,4 +145,4 @@ function(ov_glibc_version) | ||
| 41 | endif() | ||
| 42 | endfunction() | ||
| 43 | |||
| 44 | -ov_glibc_version() | ||
| 45 | +#ov_glibc_version() | ||
| 46 | diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt | ||
| 47 | index c814cc37e2c..431e7bd2ed3 100644 | ||
| 48 | --- a/samples/cpp/CMakeLists.txt | ||
| 49 | +++ b/samples/cpp/CMakeLists.txt | ||
| 50 | @@ -206,9 +206,9 @@ macro(ov_add_sample) | ||
| 51 | target_link_libraries(${SAMPLE_NAME} PRIVATE ${ov_link_libraries} Threads::Threads ${SAMPLE_DEPENDENCIES}) | ||
| 52 | |||
| 53 | install(TARGETS ${SAMPLE_NAME} | ||
| 54 | - RUNTIME DESTINATION samples_bin/ | ||
| 55 | - COMPONENT samples_bin | ||
| 56 | - EXCLUDE_FROM_ALL) | ||
| 57 | + DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
| 58 | + COMPONENT samples_bin) | ||
| 59 | + | ||
| 60 | |||
| 61 | # create global target with all samples / demo apps | ||
| 62 | if(NOT TARGET ov_samples) | ||
| 63 | diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt | ||
| 64 | index 58ff9b74302..4763994ba56 100644 | ||
| 65 | --- a/src/bindings/python/CMakeLists.txt | ||
| 66 | +++ b/src/bindings/python/CMakeLists.txt | ||
| 67 | @@ -356,7 +356,7 @@ if(ENABLE_PYTHON_PACKAGING) | ||
| 68 | endif() | ||
| 69 | |||
| 70 | set(python_package_prefix "${CMAKE_CURRENT_BINARY_DIR}/install_${pyversion}") | ||
| 71 | - set(install_lib "${python_package_prefix}/lib/${python_versioned_folder}/${ov_site_packages}") | ||
| 72 | + set(install_lib "${python_package_prefix}/${CMAKE_INSTALL_LIBDIR}/${python_versioned_folder}/${ov_site_packages}") | ||
| 73 | set(meta_info_subdir "openvino-${OpenVINO_VERSION}-py${python_xy}.egg-info") | ||
| 74 | set(meta_info_file "${install_lib}/${meta_info_subdir}/PKG-INFO") | ||
| 75 | |||
| 76 | diff --git a/src/bindings/python/wheel/setup.py b/src/bindings/python/wheel/setup.py | ||
| 77 | index 4b056912212..5f05d891310 100644 | ||
| 78 | --- a/src/bindings/python/wheel/setup.py | ||
| 79 | +++ b/src/bindings/python/wheel/setup.py | ||
| 80 | @@ -270,7 +270,6 @@ class CustomBuild(build): | ||
| 81 | self.spawn(["cmake", "--install", binary_dir, | ||
| 82 | "--prefix", prefix, | ||
| 83 | "--config", CONFIG, | ||
| 84 | - "--strip", | ||
| 85 | "--component", cpack_comp_name]) | ||
| 86 | |||
| 87 | def run(self): | ||
| 88 | -- | ||
| 89 | 2.34.1 | ||
| 90 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-cmake-Fix-overloaded-virtual-error.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-cmake-Fix-overloaded-virtual-error.patch deleted file mode 100644 index e0967d55..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-cmake-Fix-overloaded-virtual-error.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From 900eeeb2953095e651270c0f42ccd8b26fd7885c 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 3/4] 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 b0c66a435d6..a3037147cc2 100644 | ||
| 20 | --- a/src/plugins/intel_gpu/CMakeLists.txt | ||
| 21 | +++ b/src/plugins/intel_gpu/CMakeLists.txt | ||
| 22 | @@ -38,7 +38,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/0004-protobuf-allow-target-protoc-to-be-built.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-protobuf-allow-target-protoc-to-be-built.patch deleted file mode 100644 index 59095133..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0004-protobuf-allow-target-protoc-to-be-built.patch +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | From 3e288ed876c6bcb6aa3174e52446b479255ddf22 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 4/4] 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 49c5b881030..2a1ea8562bc 100644 | ||
| 19 | --- a/cmake/developer_package/frontends/frontends.cmake | ||
| 20 | +++ b/cmake/developer_package/frontends/frontends.cmake | ||
| 21 | @@ -143,7 +143,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 4b6d6da87f3..409e492a5b3 100644 | ||
| 32 | --- a/thirdparty/protobuf/CMakeLists.txt | ||
| 33 | +++ b/thirdparty/protobuf/CMakeLists.txt | ||
| 34 | @@ -28,7 +28,7 @@ set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "Abseil protogate CXX standard to depen | ||
| 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/open-model-zoo/0001-use-oe-gflags.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch deleted file mode 100644 index 816a98a3..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-use-oe-gflags.patch +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 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.0.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2024.0.0.bb deleted file mode 100644 index 495a4786..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2024.0.0.bb +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | SUMMARY = "OpenVINO(TM) Toolkit - Open Model Zoo repository" | ||
| 2 | HOMEPAGE = "https://github.com/opencv/open_model_zoo" | ||
| 3 | DESCRIPTION = "This repository includes optimized deep learning \ | ||
| 4 | models and a set of demos to expedite development of high-performance \ | ||
| 5 | deep learning inference applications." | ||
| 6 | |||
| 7 | SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=https;branch=master \ | ||
| 8 | file://0001-use-oe-gflags.patch \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRCREV = "37f60eb7fe1dcdedc552b2fb184d646723ed5e80" | ||
| 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 ${WORKDIR}/build/intel64/Release/*.a ${D}${libdir} | ||
| 48 | cp -rf ${WORKDIR}/build/intel64/Release/*_demo* ${D}${bindir} | ||
| 49 | cp -rf ${WORKDIR}/git/models ${D}${datadir}/openvino/open-model-zoo | ||
| 50 | cp -rf ${WORKDIR}/git/demos ${D}${datadir}/openvino/open-model-zoo | ||
| 51 | cp -rf ${WORKDIR}/git/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.0.0.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2024.0.0.bb deleted file mode 100644 index 94edd1b8..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2024.0.0.bb +++ /dev/null | |||
| @@ -1,143 +0,0 @@ | |||
| 1 | SUMMARY = "OpenVINO(TM) Toolkit - Deep Learning Deployment Toolkit" | ||
| 2 | HOMEPAGE = "https://github.com/opencv/dldt" | ||
| 3 | DESCRIPTION = "This toolkit allows developers to deploy pre-trained \ | ||
| 4 | deep learning models through a high-level C++ Inference Engine API \ | ||
| 5 | integrated with application logic." | ||
| 6 | |||
| 7 | SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=https;name=openvino;branch=releases/2024/0;lfs=0 \ | ||
| 8 | git://github.com/openvinotoolkit/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_cpu/thirdparty/onednn;name=mkl;nobranch=1 \ | ||
| 9 | git://github.com/oneapi-src/oneDNN.git;protocol=https;destsuffix=git/src/plugins/intel_gpu/thirdparty/onednn_gpu;name=onednn;nobranch=1 \ | ||
| 10 | git://github.com/herumi/xbyak.git;protocol=https;destsuffix=git/thirdparty/xbyak;name=xbyak;branch=master \ | ||
| 11 | git://github.com/nlohmann/json.git;protocol=https;destsuffix=git/thirdparty/json/nlohmann_json;name=json;branch=develop \ | ||
| 12 | git://github.com/opencv/ade.git;protocol=https;destsuffix=git/thirdparty/ade;name=ade;nobranch=1 \ | ||
| 13 | git://github.com/protocolbuffers/protobuf.git;protocol=https;destsuffix=git/thirdparty/protobuf/protobuf;name=protobuf;branch=3.20.x \ | ||
| 14 | 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 | file://0001-cmake-yocto-specific-tweaks-to-the-build-process.patch \ | ||
| 20 | file://0003-cmake-Fix-overloaded-virtual-error.patch \ | ||
| 21 | file://0004-protobuf-allow-target-protoc-to-be-built.patch \ | ||
| 22 | file://0001-cmake-fix-build-when-using-sysroot.patch \ | ||
| 23 | file://0001-CPU-Solving-the-build-failure-caused-by-setting-the-.patch \ | ||
| 24 | " | ||
| 25 | |||
| 26 | SRCREV_openvino = "34caeefd07800b59065345d651949efbe8ab6649" | ||
| 27 | SRCREV_mkl = "f82148befdbdc9576ec721c9d500155ee4de8060" | ||
| 28 | SRCREV_onednn = "494af5f9921bdae98f1a0e2955fa7d76ff386c4f" | ||
| 29 | SRCREV_xbyak = "740dff2e866f3ae1a70dd42d6e8836847ed95cc2" | ||
| 30 | SRCREV_json = "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03" | ||
| 31 | SRCREV_ade = "0e8a2ccdd34f29dba55894f5f3c5179809888b9e" | ||
| 32 | SRCREV_protobuf = "fe271ab76f2ad2b2b28c10443865d2af21e27e0e" | ||
| 33 | SRCREV_gflags = "e171aa2d15ed9eb17054558e0b3a6a413bb01067" | ||
| 34 | SRCREV_zlib = "09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851" | ||
| 35 | SRCREV_mlas = "d1bc25ec4660cddd87804fcf03b2411b5dfb2e94" | ||
| 36 | SRCREV_node-api-headers = "186e04b5e40e54d7fd1655bc67081cc483f12488" | ||
| 37 | SRCREV_node-addon-api = "39a25bf27788ff7a7ea5c64978c4dcd1e7b9d80d" | ||
| 38 | SRCREV_FORMAT = "openvino_mkl_onednn_xbyak_json_ade_protobuf_gflags_zlib_node-api-headers_node-addon-api_mlas" | ||
| 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 | " | ||
| 54 | |||
| 55 | inherit cmake python3native pkgconfig qemu | ||
| 56 | |||
| 57 | S = "${WORKDIR}/git" | ||
| 58 | EXTRA_OECMAKE += " \ | ||
| 59 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ | ||
| 60 | -DENABLE_OPENCV=OFF \ | ||
| 61 | -DENABLE_INTEL_GNA=OFF \ | ||
| 62 | -DENABLE_SYSTEM_TBB=ON \ | ||
| 63 | -DPYTHON_EXECUTABLE=${PYTHON} \ | ||
| 64 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
| 65 | -DTHREADING=TBB -DTBB_DIR="${STAGING_LIBDIR}/cmake/TBB" \ | ||
| 66 | -DTREAT_WARNING_AS_ERROR=FALSE \ | ||
| 67 | -DENABLE_DATA=FALSE \ | ||
| 68 | -DENABLE_SYSTEM_PUGIXML=TRUE \ | ||
| 69 | -DENABLE_OV_ONNX_FRONTEND=FALSE \ | ||
| 70 | -DUSE_BUILD_TYPE_SUBFOLDER=OFF \ | ||
| 71 | -DENABLE_FUZZING=OFF \ | ||
| 72 | -DENABLE_TBBBIND_2_5=OFF \ | ||
| 73 | -DCPACK_GENERATOR=RPM \ | ||
| 74 | -DENABLE_SYSTEM_FLATBUFFERS=ON \ | ||
| 75 | -DENABLE_SYSTEM_SNAPPY=ON \ | ||
| 76 | -DFETCHCONTENT_BASE_DIR="${S}" \ | ||
| 77 | " | ||
| 78 | |||
| 79 | DEPENDS += "\ | ||
| 80 | flatbuffers-native \ | ||
| 81 | pugixml \ | ||
| 82 | python3-pybind11 \ | ||
| 83 | python3-pybind11-native \ | ||
| 84 | qemu-native \ | ||
| 85 | snappy \ | ||
| 86 | tbb \ | ||
| 87 | " | ||
| 88 | |||
| 89 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 90 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 91 | |||
| 92 | PACKAGECONFIG ?= "opencl samples" | ||
| 93 | PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE, -DENABLE_INTEL_GPU=FALSE, virtual/opencl-icd opencl-headers opencl-clhpp," | ||
| 94 | 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" | ||
| 95 | PACKAGECONFIG[samples] = "-DENABLE_SAMPLES=ON -DENABLE_COMPILE_TOOL=ON, -DENABLE_SAMPLES=OFF -DENABLE_COMPILE_TOOL=OFF, opencv" | ||
| 96 | PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0" | ||
| 97 | |||
| 98 | do_configure:prepend() { | ||
| 99 | # Dont set PROJECT_ROOT_DIR | ||
| 100 | sed -i -e 's:\${OpenVINO_SOURCE_DIR}::;' ${S}/src/CMakeLists.txt | ||
| 101 | |||
| 102 | # qemu wrapper that can be used by cmake to run target binaries. | ||
| 103 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" | ||
| 104 | cat > ${WORKDIR}/qemuwrapper << EOF | ||
| 105 | #!/bin/sh | ||
| 106 | $qemu_binary "\$@" | ||
| 107 | EOF | ||
| 108 | chmod +x ${WORKDIR}/qemuwrapper | ||
| 109 | } | ||
| 110 | |||
| 111 | do_install:append() { | ||
| 112 | rm -rf ${D}${prefix}/install_dependencies | ||
| 113 | rm -rf ${D}${prefix}/setupvars.sh | ||
| 114 | |||
| 115 | find ${B}/src/plugins/intel_cpu/cross-compiled/ -type f -name *_disp.cpp -exec sed -i -e 's%'"${S}"'%'"${TARGET_DBGSRC_DIR}"'%g' {} + | ||
| 116 | } | ||
| 117 | |||
| 118 | # Otherwise e.g. ros-openvino-toolkit-dynamic-vino-sample when using dldt-inference-engine uses dldt-inference-engine WORKDIR | ||
| 119 | # instead of RSS | ||
| 120 | SSTATE_SCAN_FILES:append = " *.cmake" | ||
| 121 | |||
| 122 | FILES:${PN} += "\ | ||
| 123 | ${libdir}/openvino-${PV}/lib*${SOLIBSDEV} \ | ||
| 124 | ${libdir}/openvino-${PV}/plugins.xml \ | ||
| 125 | ${libdir}/openvino-${PV}/cache.json \ | ||
| 126 | " | ||
| 127 | |||
| 128 | # Move inference engine samples into a separate package | ||
| 129 | PACKAGES =+ "${PN}-samples" | ||
| 130 | |||
| 131 | FILES:${PN}-samples = "${datadir}/openvino \ | ||
| 132 | ${bindir} \ | ||
| 133 | ${libdir}/libformat_reader.a \ | ||
| 134 | ${libdir}/libopencv_c_wrapper.a \ | ||
| 135 | " | ||
| 136 | RDEPENDS:${PN}-samples += "python3-core" | ||
| 137 | |||
| 138 | # Package for inference engine python API | ||
| 139 | PACKAGES =+ "${PN}-python3" | ||
| 140 | |||
| 141 | FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}" | ||
| 142 | |||
| 143 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+\.\d+\.\d+))$" | ||
