aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2020-10-27 09:51:09 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-10-28 10:38:52 +0800
commit006ab3bb4c10788342a457da35c7c49ca3843076 (patch)
tree1385f660b0d3e252967fffc7ba7bce95f43b63a6
parenta30cb23e853a487e65aa043b38a377e8274d8802 (diff)
downloadmeta-intel-006ab3bb4c10788342a457da35c7c49ca3843076.tar.gz
meta-intel-006ab3bb4c10788342a457da35c7c49ca3843076.tar.bz2
meta-intel-006ab3bb4c10788342a457da35c7c49ca3843076.zip
vc-intrinsics: fix build with mulitlib
Fixes errors seen when multilib is turned on Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics/0001-Use-standard-installation-directory-variables.patch58
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics_1.0.bb1
2 files changed, 59 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics/0001-Use-standard-installation-directory-variables.patch b/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics/0001-Use-standard-installation-directory-variables.patch
new file mode 100644
index 00000000..35469a1c
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics/0001-Use-standard-installation-directory-variables.patch
@@ -0,0 +1,58 @@
+From 33f60fe2c64272cf1472aa541bcb491a62f81ca5 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <naveen.kumar.saini@intel.com>
+Date: Mon, 26 Oct 2020 16:24:09 +0800
+Subject: [PATCH] Use standard installation directory variables
+
+Upstream-Status: Submitted [https://github.com/intel/vc-intrinsics/pull/35]
+
+Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
+---
+ GenXIntrinsics/CMakeLists.txt | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/GenXIntrinsics/CMakeLists.txt b/GenXIntrinsics/CMakeLists.txt
+index c59c589..5bcf0d1 100644
+--- a/GenXIntrinsics/CMakeLists.txt
++++ b/GenXIntrinsics/CMakeLists.txt
+@@ -33,7 +33,7 @@ endif()
+ # this option is to switch on install when we are building not inside IGC
+ if(INSTALL_REQUIRED)
+ install(DIRECTORY include/llvm
+- DESTINATION include
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ COMPONENT genx-intrinsics-headers
+ FILES_MATCHING
+ PATTERN "*.h"
+@@ -43,7 +43,7 @@ if(INSTALL_REQUIRED)
+ # and then "install(DIRECTORY" installs them even if they are empty
+ # so generated file has to be installed separetely
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/llvm/GenXIntrinsics/${GENX_INTRINSICS_DESCRIPTION}
+- DESTINATION include/llvm/GenXIntrinsics
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/llvm/GenXIntrinsics
+ COMPONENT genx-intrinsics-headers
+ )
+
+@@ -52,15 +52,15 @@ if(INSTALL_REQUIRED)
+ # we need to limit it to external build
+ if(BUILD_EXTERNAL)
+ install(TARGETS LLVMGenXIntrinsics EXPORT LLVMGenXIntrinsicsTargets
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
+- RUNTIME DESTINATION bin
+- INCLUDES DESTINATION include
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )
+
+ install(EXPORT LLVMGenXIntrinsicsTargets
+ FILE LLVMGenXIntrinsicsConfig.cmake
+- DESTINATION lib/cmake/LLVMGenXIntrinsics
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/LLVMGenXIntrinsics
+ )
+ endif() # BUILD_EXTERNAL
+ endif() # INSTALL_REQUIRED
+--
+2.17.1
+
diff --git a/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics_1.0.bb b/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics_1.0.bb
index 806189b0..39bf5803 100644
--- a/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics_1.0.bb
+++ b/dynamic-layers/clang-layer/recipes-opencl/vc-intrinsics/vc-intrinsics_1.0.bb
@@ -7,6 +7,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://License.md;md5=c18ea6bb4786a26bf4eee88a7424a408"
SRC_URI = "git://github.com/intel/vc-intrinsics.git;protocol=https; \
+ file://0001-Use-standard-installation-directory-variables.patch \
"
SRCREV = "c8c52b5fb14b33e32de9df573b7de186a0c97c94"