summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch
new file mode 100644
index 00000000..e6fe3271
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0002-Change-the-working-directory-to-source-to-workaround.patch
@@ -0,0 +1,29 @@
1From a0ea332df477480f90d9dc841faf71f4b5be892e Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Wed, 29 Nov 2023 12:45:59 +0530
4Subject: [PATCH 2/4] Change the working directory to source to workaround
5 cython embedding absolute path to the pyx file in output.
6
7Upstream-Status: Inappropriate [OE build specific]
8
9Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
10---
11 .../python/src/compatibility/openvino/cmake/UseCython.cmake | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake b/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake
15index 03a208f03c2..be9af591b34 100644
16--- a/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake
17+++ b/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake
18@@ -258,7 +258,7 @@ function( compile_pyx _name generated_file )
19 add_custom_command( OUTPUT ${_generated_file}
20 COMMAND ${CYTHON_EXECUTABLE}
21 ARGS ${cxx_arg} ${include_directory_arg} ${version_arg}
22- ${annotate_arg} ${no_docstrings_arg} ${cython_debug_arg} ${CYTHON_FLAGS}
23+ ${annotate_arg} ${no_docstrings_arg} ${cython_debug_arg} ${CYTHON_FLAGS} -w ${CMAKE_CURRENT_SOURCE_DIR}
24 --output-file ${_generated_file} ${pyx_locations}
25 DEPENDS ${pyx_locations} ${pxd_dependencies} ${pxi_dependencies}
26 IMPLICIT_DEPENDS ${pyx_lang} ${c_header_dependencies}
27--
282.34.1
29