summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2022-08-10 12:50:34 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2022-08-26 01:36:47 (GMT)
commit0337f4a8fc8156db6b8f84b814a3d00cb4f3c5d3 (patch)
treefacc6fba6999f5cdcc636de6377b7498544c271b
parentb5664f2f1185c133b2939c0457f95d5f40bfcad1 (diff)
downloadmeta-intel-0337f4a8fc8156db6b8f84b814a3d00cb4f3c5d3.tar.gz
intel-oneapi-mkl: Allow MKL to be used for compiling other packages
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--dynamic-layers/openembedded-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2022.0.1-117.bb18
1 files changed, 17 insertions, 1 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2022.0.1-117.bb b/dynamic-layers/openembedded-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2022.0.1-117.bb
index fc89206..0e387ae 100644
--- a/dynamic-layers/openembedded-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2022.0.1-117.bb
+++ b/dynamic-layers/openembedded-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2022.0.1-117.bb
@@ -20,20 +20,36 @@ LIC_FILES_CHKSUM = " \
20 file://opt/intel/oneapi/lib/licensing/mkl/third-party-programs.txt;md5=980965cf1f086d40998ca4981968b6a4 \ 20 file://opt/intel/oneapi/lib/licensing/mkl/third-party-programs.txt;md5=980965cf1f086d40998ca4981968b6a4 \
21 " 21 "
22 22
23MKLMAINVER = "2022.0.1"
24
23SRC_URI = " \ 25SRC_URI = " \
24 https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-mkl-${PV}_amd64.deb;subdir=${BPN};name=runtime \ 26 https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-mkl-${PV}_amd64.deb;subdir=${BPN};name=runtime \
25 https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-mkl-common-${PV}_all.deb;subdir=${BPN};name=common \ 27 https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-mkl-common-${PV}_all.deb;subdir=${BPN};name=common \
28 https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-common-devel-${MKLMAINVER}-${PV}_all.deb;subdir=${BPN};name=devel \
26 " 29 "
27 30
28SRC_URI[runtime.sha256sum] = "b20e0f7400fbbc55d8489f9f3ef35a8c8df7f5af7d87903bf305703e3a2ebc3b" 31SRC_URI[runtime.sha256sum] = "b20e0f7400fbbc55d8489f9f3ef35a8c8df7f5af7d87903bf305703e3a2ebc3b"
29SRC_URI[common.sha256sum] = "bff8b2bfedbd09c9e6d0366cca3d4de80af521302bd5938fe6fa0128c6839041" 32SRC_URI[common.sha256sum] = "bff8b2bfedbd09c9e6d0366cca3d4de80af521302bd5938fe6fa0128c6839041"
33SRC_URI[devel.sha256sum] = "1c84c0b72638415318229326cb143691a5914d5e88552abef39391db3d285cff"
30 34
31S = "${WORKDIR}/${BPN}" 35S = "${WORKDIR}/${BPN}"
32 36
33inherit bin_package 37inherit bin_package
34 38
39do_install:append () {
40 install -d ${D}${libdir}
41 (cd ${D}${libdir} ; ln -s ../../opt/intel/oneapi/lib/intel64/*.so* .)
42 install -d ${D}${libdir}/pkgconfig
43 (cd ${D}${libdir}/pkgconfig ; ln -s ../../../opt/intel/oneapi/mkl/${MKLMAINVER}/lib/pkgconfig/* .)
44
45 install -d ${D}${includedir}
46 (cd ${D}${includedir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/include/* .)
47}
48
35INHIBIT_PACKAGE_STRIP = "1" 49INHIBIT_PACKAGE_STRIP = "1"
36INHIBIT_PACKAGE_DEBUG_SPLIT = "1" 50INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
37 51
38RDEPENDS:${PN} += "tbb intel-oneapi-compiler setup-intel-oneapi-env" 52RDEPENDS:${PN} += "bash tbb intel-oneapi-compiler setup-intel-oneapi-env"
39INSANE_SKIP:${PN} = "ldflags textrel dev-so" 53INSANE_SKIP:${PN} = "ldflags textrel dev-so"
54
55SYSROOT_DIRS += "/opt"