diff options
Diffstat (limited to 'recipes-oneapi')
-rw-r--r-- | recipes-oneapi/crypto/intel-crypto-mb/0001-CMakeLists.txt-exclude-host-system-headers.patch (renamed from recipes-oneapi/crypto/intel-crypto-mb/0003-CMakeLists.txt-exclude-host-system-headers.patch) | 17 | ||||
-rw-r--r-- | recipes-oneapi/crypto/intel-crypto-mb/0001-GNU.cmake-allow-to-pass-compiler-and-linker-flags.patch | 29 | ||||
-rw-r--r-- | recipes-oneapi/crypto/intel-crypto-mb/0001-crypto-mb-Make-sure-libs-are-installed-correctly.patch | 42 | ||||
-rw-r--r-- | recipes-oneapi/crypto/intel-crypto-mb/0002-cmake-exclude-Yocto-build-flags.patch | 45 | ||||
-rw-r--r-- | recipes-oneapi/crypto/intel-crypto-mb_2021.11.1.bb (renamed from recipes-oneapi/crypto/intel-crypto-mb_2021.3.bb) | 17 | ||||
-rw-r--r-- | recipes-oneapi/onedpl/onedpl_2022.3.0.bb (renamed from recipes-oneapi/onedpl/onedpl_2021.5.0.bb) | 6 | ||||
-rw-r--r-- | recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2023.0.0-25370.bb (renamed from recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2021.3.bb) | 8 |
7 files changed, 114 insertions, 50 deletions
diff --git a/recipes-oneapi/crypto/intel-crypto-mb/0003-CMakeLists.txt-exclude-host-system-headers.patch b/recipes-oneapi/crypto/intel-crypto-mb/0001-CMakeLists.txt-exclude-host-system-headers.patch index f9c4a923..58ed1c9a 100644 --- a/recipes-oneapi/crypto/intel-crypto-mb/0003-CMakeLists.txt-exclude-host-system-headers.patch +++ b/recipes-oneapi/crypto/intel-crypto-mb/0001-CMakeLists.txt-exclude-host-system-headers.patch | |||
@@ -1,19 +1,22 @@ | |||
1 | From 7b575fc23d246373425c3682e83634203aadc4a6 Mon Sep 17 00:00:00 2001 | 1 | From efedbf9080c19241c2aa9ee7ba901245d38c8fa2 Mon Sep 17 00:00:00 2001 |
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> |
3 | Date: Thu, 17 Jun 2021 12:35:36 +0800 | 3 | Date: Mon, 7 Mar 2022 16:44:24 +0800 |
4 | Subject: [PATCH 3/4] CMakeLists.txt: exclude host system headers | 4 | Subject: [PATCH 1/2] CMakeLists.txt: exclude host system headers |
5 | 5 | ||
6 | Upstream-Status: Inappropriate | 6 | Upstream-Status: Inappropriate |
7 | 7 | ||
8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | 8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> |
9 | --- | 9 | --- |
10 | sources/ippcp/crypto_mb/CMakeLists.txt | 1 - | ||
11 | 1 file changed, 1 deletion(-) | ||
12 | |||
10 | diff --git a/sources/ippcp/crypto_mb/CMakeLists.txt b/sources/ippcp/crypto_mb/CMakeLists.txt | 13 | diff --git a/sources/ippcp/crypto_mb/CMakeLists.txt b/sources/ippcp/crypto_mb/CMakeLists.txt |
11 | index d1f3994..db9635b 100644 | 14 | index c4cc82a..4094f34 100644 |
12 | --- a/sources/ippcp/crypto_mb/CMakeLists.txt | 15 | --- a/sources/ippcp/crypto_mb/CMakeLists.txt |
13 | +++ b/sources/ippcp/crypto_mb/CMakeLists.txt | 16 | +++ b/sources/ippcp/crypto_mb/CMakeLists.txt |
14 | @@ -75,7 +75,6 @@ endif() | 17 | @@ -82,7 +82,6 @@ include_directories( |
15 | include_directories( | 18 | ${CRYPTO_MB_INCLUDE_DIR} |
16 | ${MB_INCLUDE_DIRS} | 19 | ${OPENSSL_INCLUDE_DIR} |
17 | $<$<C_COMPILER_ID:Intel>:$ENV{ROOT}/compiler/include $ENV{ROOT}/compiler/include/icc> | 20 | $<$<C_COMPILER_ID:Intel>:$ENV{ROOT}/compiler/include $ENV{ROOT}/compiler/include/icc> |
18 | - $<$<NOT:$<C_COMPILER_ID:Intel>>:${CMAKE_SYSTEM_INCLUDE_PATH}> | 21 | - $<$<NOT:$<C_COMPILER_ID:Intel>>:${CMAKE_SYSTEM_INCLUDE_PATH}> |
19 | $<$<OR:$<C_COMPILER_ID:Intel>,$<BOOL:${MSVC_IDE}>>:$ENV{INCLUDE}> | 22 | $<$<OR:$<C_COMPILER_ID:Intel>,$<BOOL:${MSVC_IDE}>>:$ENV{INCLUDE}> |
diff --git a/recipes-oneapi/crypto/intel-crypto-mb/0001-GNU.cmake-allow-to-pass-compiler-and-linker-flags.patch b/recipes-oneapi/crypto/intel-crypto-mb/0001-GNU.cmake-allow-to-pass-compiler-and-linker-flags.patch deleted file mode 100644 index 49adf8f1..00000000 --- a/recipes-oneapi/crypto/intel-crypto-mb/0001-GNU.cmake-allow-to-pass-compiler-and-linker-flags.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From c440800cae91f857949255cc63993426bdaefb26 Mon Sep 17 00:00:00 2001 | ||
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
3 | Date: Wed, 16 Jun 2021 20:54:33 +0800 | ||
4 | Subject: [PATCH 1/4] GNU.cmake: allow to pass compiler and linker flags | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
9 | --- | ||
10 | sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | 3 ++- | ||
11 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake b/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
14 | index 5d148a1..4cb2289 100644 | ||
15 | --- a/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
16 | +++ b/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
17 | @@ -56,7 +56,8 @@ set(LINK_FLAGS_DYNAMIC "${LINK_FLAGS_DYNAMIC} ${CRYPTO_MB_SOURCES_DIR}/cmake/dll | ||
18 | # Compiler flags | ||
19 | |||
20 | # Tells the compiler to align functions and loops | ||
21 | -set(CMAKE_C_FLAGS " -falign-functions=32 -falign-loops=32") | ||
22 | +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -falign-functions=32 -falign-loops=32") | ||
23 | + | ||
24 | # Ensures that compilation takes place in a freestanding environment | ||
25 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffreestanding") | ||
26 | |||
27 | -- | ||
28 | 2.17.1 | ||
29 | |||
diff --git a/recipes-oneapi/crypto/intel-crypto-mb/0001-crypto-mb-Make-sure-libs-are-installed-correctly.patch b/recipes-oneapi/crypto/intel-crypto-mb/0001-crypto-mb-Make-sure-libs-are-installed-correctly.patch new file mode 100644 index 00000000..c47c8de5 --- /dev/null +++ b/recipes-oneapi/crypto/intel-crypto-mb/0001-crypto-mb-Make-sure-libs-are-installed-correctly.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 3b7b4eca54aa8d851e37f60c74e4a027fa7b21f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 14 Jun 2023 13:18:45 +0800 | ||
4 | Subject: [PATCH] crypto-mb: Make sure libs are installed correctly | ||
5 | |||
6 | Dont assume that "lib" is always the correct destination. This fixes | ||
7 | multilib builds when libdir != /usr/lib. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
12 | --- | ||
13 | sources/ippcp/crypto_mb/src/CMakeLists.txt | 6 +++--- | ||
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/sources/ippcp/crypto_mb/src/CMakeLists.txt b/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
17 | index c9cad06..31f52bd 100644 | ||
18 | --- a/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
19 | +++ b/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
20 | @@ -123,8 +123,8 @@ endif(DYNAMIC_LIB OR MB_STANDALONE) | ||
21 | # Installation of the shared library | ||
22 | if (MB_STANDALONE) # standalone crypto_mb's cmake run | ||
23 | install(TARGETS ${MB_DYN_LIB_TARGET} | ||
24 | - LIBRARY DESTINATION "lib" | ||
25 | - RUNTIME DESTINATION "lib" | ||
26 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
27 | + RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
28 | PUBLIC_HEADER DESTINATION "include/crypto_mb") | ||
29 | elseif (DYNAMIC_LIB) # build from ippcp's cmake | ||
30 | install(TARGETS ${MB_DYN_LIB_TARGET} | ||
31 | @@ -154,7 +154,7 @@ endif() | ||
32 | # Static lib installation | ||
33 | if(MB_STANDALONE) | ||
34 | install(TARGETS ${MB_STATIC_LIB_TARGET} | ||
35 | - ARCHIVE DESTINATION "lib" | ||
36 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
37 | PUBLIC_HEADER DESTINATION "include/crypto_mb") | ||
38 | else() | ||
39 | install(TARGETS ${MB_STATIC_LIB_TARGET} | ||
40 | -- | ||
41 | 2.37.3 | ||
42 | |||
diff --git a/recipes-oneapi/crypto/intel-crypto-mb/0002-cmake-exclude-Yocto-build-flags.patch b/recipes-oneapi/crypto/intel-crypto-mb/0002-cmake-exclude-Yocto-build-flags.patch new file mode 100644 index 00000000..62b56ea2 --- /dev/null +++ b/recipes-oneapi/crypto/intel-crypto-mb/0002-cmake-exclude-Yocto-build-flags.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From b4549bb765d279b5ba042c6340e1dd69d0890b64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
3 | Date: Thu, 10 Mar 2022 14:30:01 +0800 | ||
4 | Subject: [PATCH 2/2] cmake: exclude Yocto build flags | ||
5 | |||
6 | Ipp-crypto has its own set of flags and -march values, | ||
7 | which causes conflict with default -march=nehalem in gcc | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
12 | --- | ||
13 | sources/ippcp/crypto_mb/src/CMakeLists.txt | 2 +- | ||
14 | sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | 2 +- | ||
15 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/sources/ippcp/crypto_mb/src/CMakeLists.txt b/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
18 | index 1ca1a8c..5284d62 100644 | ||
19 | --- a/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
20 | +++ b/sources/ippcp/crypto_mb/src/CMakeLists.txt | ||
21 | @@ -81,7 +81,7 @@ endif() | ||
22 | set(MB_LIB_TARGET ${MB_DYN_LIB_TARGET}) | ||
23 | |||
24 | set_source_files_properties(${CRYPTO_MB_SOURCES} PROPERTIES COMPILE_DEFINITIONS "${AVX512_LIBRARY_DEFINES}" | ||
25 | - COMPILE_FLAGS "${AVX512_CFLAGS} ${CMAKE_ASM_FLAGS} ${CMAKE_C_FLAGS_SECURITY}") | ||
26 | + COMPILE_FLAGS "${AVX512_CFLAGS} ${CMAKE_C_FLAGS_SECURITY}") | ||
27 | |||
28 | # Don't specify architectural flags for the assembler for this sources, because of the bug in Intel® C Compiler under MacOS: error: invalid instruction mnemonic 'vkmovb' | ||
29 | # The bug has been fixed since version 2021.3. This is a workaround to support older versions of Intel® C Compiler. | ||
30 | diff --git a/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake b/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
31 | index a2abeeb..aadd6e2 100644 | ||
32 | --- a/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
33 | +++ b/sources/ippcp/crypto_mb/src/cmake/linux/GNU.cmake | ||
34 | @@ -58,7 +58,7 @@ set(LINK_FLAGS_DYNAMIC "${LINK_FLAGS_DYNAMIC} ${CRYPTO_MB_SOURCES_DIR}/cmake/dll | ||
35 | # Compiler flags | ||
36 | |||
37 | # Tells the compiler to align functions and loops | ||
38 | -set(CMAKE_C_FLAGS " -falign-functions=32 -falign-loops=32") | ||
39 | +set(CMAKE_C_FLAGS " -falign-functions=32 -falign-loops=32 ${TOOLCHAIN_OPTIONS}") | ||
40 | # Ensures that compilation takes place in a freestanding environment | ||
41 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffreestanding") | ||
42 | |||
43 | -- | ||
44 | 2.17.1 | ||
45 | |||
diff --git a/recipes-oneapi/crypto/intel-crypto-mb_2021.3.bb b/recipes-oneapi/crypto/intel-crypto-mb_2021.11.1.bb index 68010a4a..be72fd85 100644 --- a/recipes-oneapi/crypto/intel-crypto-mb_2021.3.bb +++ b/recipes-oneapi/crypto/intel-crypto-mb_2021.11.1.bb | |||
@@ -8,13 +8,14 @@ LICENSE = "Apache-2.0" | |||
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://../../../LICENSE;md5=e787af283468feca985d6b865d27d95b" | 9 | LIC_FILES_CHKSUM = "file://../../../LICENSE;md5=e787af283468feca985d6b865d27d95b" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | IPP_BRANCH = "ipp-crypto_${@'_'.join(d.getVar('PV').rsplit('.')[-3:])}" |
12 | git://github.com/intel/ipp-crypto;protocol=https;branch=ipp-crypto_2021_3 \ | ||
13 | file://0001-GNU.cmake-allow-to-pass-compiler-and-linker-flags.patch;striplevel=4 \ | ||
14 | file://0003-CMakeLists.txt-exclude-host-system-headers.patch;striplevel=4 \ | ||
15 | " | ||
16 | 12 | ||
17 | SRCREV = "d9d13aaaf8889753fb58a13c2652c39b67c2076b" | 13 | SRC_URI = "git://github.com/intel/ipp-crypto;protocol=https;branch=${IPP_BRANCH} \ |
14 | file://0001-CMakeLists.txt-exclude-host-system-headers.patch;striplevel=4 \ | ||
15 | file://0002-cmake-exclude-Yocto-build-flags.patch;striplevel=4 \ | ||
16 | file://0001-crypto-mb-Make-sure-libs-are-installed-correctly.patch;striplevel=4 \ | ||
17 | " | ||
18 | SRCREV = "d02611e34328898d16025467d3deeb7d62b6076b" | ||
18 | 19 | ||
19 | S = "${WORKDIR}/git/sources/ippcp/crypto_mb" | 20 | S = "${WORKDIR}/git/sources/ippcp/crypto_mb" |
20 | 21 | ||
@@ -23,7 +24,5 @@ DEPENDS = "openssl" | |||
23 | inherit cmake pkgconfig | 24 | inherit cmake pkgconfig |
24 | COMPATIBLE_HOST = '(x86_64).*-linux' | 25 | COMPATIBLE_HOST = '(x86_64).*-linux' |
25 | 26 | ||
26 | # error: 'SHA512_Init' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | ||
27 | CFLAGS:append = " -Wno-error=deprecated-declarations" | ||
28 | |||
29 | EXTRA_OECMAKE += " -DARCH=intel64" | 27 | EXTRA_OECMAKE += " -DARCH=intel64" |
28 | EXTRA_OECMAKE += " -DTOOLCHAIN_OPTIONS='${TOOLCHAIN_OPTIONS}'" | ||
diff --git a/recipes-oneapi/onedpl/onedpl_2021.5.0.bb b/recipes-oneapi/onedpl/onedpl_2022.3.0.bb index d38e6f0a..d80b64c9 100644 --- a/recipes-oneapi/onedpl/onedpl_2021.5.0.bb +++ b/recipes-oneapi/onedpl/onedpl_2022.3.0.bb | |||
@@ -7,13 +7,13 @@ HOMEPAGE = "https://github.com/oneapi-src/oneDPL" | |||
7 | 7 | ||
8 | LICENSE = "Apache-2.0-with-LLVM-exception" | 8 | LICENSE = "Apache-2.0-with-LLVM-exception" |
9 | LIC_FILES_CHKSUM = "file://licensing/LICENSE.txt;md5=2e982d844baa4df1c80de75470e0c5cb \ | 9 | LIC_FILES_CHKSUM = "file://licensing/LICENSE.txt;md5=2e982d844baa4df1c80de75470e0c5cb \ |
10 | file://licensing/third-party-programs.txt;md5=4075f07036267ff083d9e095c6a6019f" | 10 | file://licensing/third-party-programs.txt;md5=cfb8d6b1f04a8fcc7d0dddd817619634" |
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | SRC_URI = "git://github.com/oneapi-src/oneDPL.git;protocol=https;branch=release/2021.5 \ | 14 | SRC_URI = "git://github.com/oneapi-src/oneDPL.git;protocol=https;branch=release/2022.3 \ |
15 | " | 15 | " |
16 | SRCREV = "35830e76c16b0fbda612d8ffd440f0c712d875a5" | 16 | SRCREV = "180f18ad25fbc39fa13bad43f1df7d54ee8f5609" |
17 | 17 | ||
18 | do_compile[noexec] = "1" | 18 | do_compile[noexec] = "1" |
19 | do_configure[noexec] = "1" | 19 | do_configure[noexec] = "1" |
diff --git a/recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2021.3.bb b/recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2023.0.0-25370.bb index df6eb123..a1762a16 100644 --- a/recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2021.3.bb +++ b/recipes-oneapi/setup-oneapi-env/setup-intel-oneapi-env_2023.0.0-25370.bb | |||
@@ -3,13 +3,16 @@ DESCRIPTION = "Recipe to set up the environment for Intel® oneAPI runtime libra | |||
3 | via configuration file in ld.so.conf.d directory." | 3 | via configuration file in ld.so.conf.d directory." |
4 | 4 | ||
5 | LICENSE = "EULA" | 5 | LICENSE = "EULA" |
6 | LIC_FILES_CHKSUM = "file://${CUSTOM_LICENSES_PATH}/EULA;md5=9057fba3b8ada79f1bce0d1c195c7d1f" | 6 | LIC_FILES_CHKSUM = "file://${CUSTOM_LICENSES_PATH}/EULA;md5=7bfc91523de2e84e7131d0eacf2827d4" |
7 | 7 | ||
8 | SRC_URI = "file://intel-oneapi-runtime.conf" | 8 | SRC_URI = "file://intel-oneapi-runtime.conf" |
9 | 9 | ||
10 | S = "${WORKDIR}/sources" | ||
11 | UNPACKDIR = "${S}" | ||
12 | |||
10 | do_install() { | 13 | do_install() { |
11 | mkdir -p ${D}${sysconfdir}/ld.so.conf.d/ | 14 | mkdir -p ${D}${sysconfdir}/ld.so.conf.d/ |
12 | install -m 644 ${WORKDIR}/intel-oneapi-runtime.conf ${D}${sysconfdir}/ld.so.conf.d/ | 15 | install -m 644 ${S}/intel-oneapi-runtime.conf ${D}${sysconfdir}/ld.so.conf.d/ |
13 | } | 16 | } |
14 | 17 | ||
15 | pkg_postinst_ontarget:${PN}() { | 18 | pkg_postinst_ontarget:${PN}() { |
@@ -17,3 +20,4 @@ if [ x"$D" = "x" ]; then | |||
17 | if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi | 20 | if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi |
18 | fi | 21 | fi |
19 | } | 22 | } |
23 | BBCLASSEXTEND = "native nativesdk" | ||