aboutsummaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch
new file mode 100644
index 00000000..09107391
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Supply-firmware-at-build-time.patch
@@ -0,0 +1,44 @@
+From f4533f5bfce9daee08a4fea61736315fbe4ad6db Mon Sep 17 00:00:00 2001
+From: Anuj Mittal <anuj.mittal@intel.com>
+Date: Fri, 27 Sep 2019 11:34:36 +0800
+Subject: [PATCH] Supply firmware at build time
+
+We'd like to supply firmware when fetching the sources. Disable runtime
+fetching and point to fetched firmware instead.
+
+Upstream-Status: Submitted
+
+Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
+---
+ inference-engine/cmake/dependencies.cmake | 18 ------------------
+ 1 file changed, 18 deletions(-)
+
+diff --git a/inference-engine/cmake/dependencies.cmake b/inference-engine/cmake/dependencies.cmake
+index d493426..666ace6 100644
+--- a/inference-engine/cmake/dependencies.cmake
++++ b/inference-engine/cmake/dependencies.cmake
+@@ -22,24 +22,6 @@ if(COMMAND get_linux_name)
+ get_linux_name(LINUX_OS_NAME)
+ endif()
+
+-if (ENABLE_MYRIAD)
+- RESOLVE_DEPENDENCY(VPU_FIRMWARE_MA2450
+- ARCHIVE_UNIFIED firmware_ma2450_676.zip
+- TARGET_PATH "${TEMP}/vpu/firmware/ma2450"
+- ENVIRONMENT "VPU_FIRMWARE_MA2450"
+- FOLDER)
+- debug_message(STATUS "ma2450=" ${VPU_FIRMWARE_MA2450})
+-endif ()
+-
+-if (ENABLE_MYRIAD)
+- RESOLVE_DEPENDENCY(VPU_FIRMWARE_MA2X8X
+- ARCHIVE_UNIFIED firmware_ma2x8x_mdk_R8_9.zip
+- TARGET_PATH "${TEMP}/vpu/firmware/ma2x8x"
+- ENVIRONMENT "VPU_FIRMWARE_MA2X8X"
+- FOLDER)
+- debug_message(STATUS "ma2x8x=" ${VPU_FIRMWARE_MA2X8X})
+-endif ()
+-
+ ## enable cblas_gemm from OpenBLAS package
+ if (GEMM STREQUAL "OPENBLAS")
+ if(NOT BLAS_LIBRARIES OR NOT BLAS_INCLUDE_DIRS)