summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/clang/openmp_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/clang/openmp_git.bb')
-rw-r--r--meta/recipes-devtools/clang/openmp_git.bb65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-devtools/clang/openmp_git.bb b/meta/recipes-devtools/clang/openmp_git.bb
new file mode 100644
index 0000000000..cc0c7fbcd4
--- /dev/null
+++ b/meta/recipes-devtools/clang/openmp_git.bb
@@ -0,0 +1,65 @@
1# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "LLVM OpenMP compiler Runtime"
5HOMEPAGE = "https://openmp.llvm.org/"
6SECTION = "libs"
7
8require common-clang.inc
9require common-source.inc
10
11BPN = "openmp"
12
13LIC_FILES_CHKSUM = "file://openmp/LICENSE.TXT;md5=d75288d1ce0450b28b8d58a284c09c79"
14
15inherit cmake pkgconfig perlnative python3native python3targetconfig
16
17DEPENDS += "elfutils libffi clang"
18
19EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \
20 -DLLVM_APPEND_VC_REV=OFF \
21 -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
22 -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
23 -DOPENMP_STANDALONE_BUILD=ON \
24 -DCLANG_TOOL=${STAGING_BINDIR_NATIVE}/clang \
25 -DLINK_TOOL=${STAGING_BINDIR_NATIVE}/llvm-link \
26 -DOPT_TOOL=${STAGING_BINDIR_NATIVE}/opt \
27 -DOPENMP_LLVM_LIT_EXECUTABLE=${STAGING_BINDIR_NATIVE}/llvm-lit \
28 -DEXTRACT_TOOL=${STAGING_BINDIR_NATIVE}/llvm-extract \
29 -DPACKAGER_TOOL=${STAGING_BINDIR_NATIVE}/clang-offload-packager \
30 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
31 "
32
33OECMAKE_SOURCEPATH = "${S}/openmp"
34
35PACKAGECONFIG ?= "ompt-tools offloading-plugin"
36
37PACKAGECONFIG:remove:arm = "ompt-tools offloading-plugin"
38PACKAGECONFIG:remove:powerpc = "ompt-tools offloading-plugin"
39
40PACKAGECONFIG:append:mipsarcho32 = " no-atomics"
41
42PACKAGECONFIG[ompt-tools] = "-DOPENMP_ENABLE_OMPT_TOOLS=ON,-DOPENMP_ENABLE_OMPT_TOOLS=OFF,"
43PACKAGECONFIG[aliases] = "-DLIBOMP_INSTALL_ALIASES=ON,-DLIBOMP_INSTALL_ALIASES=OFF,"
44PACKAGECONFIG[offloading-plugin] = ",,elfutils libffi,libelf libffi"
45PACKAGECONFIG[no-atomics] = "-DLIBOMP_HAVE_BUILTIN_ATOMIC=OFF -DLIBOMP_LIBFLAGS='-latomic',,"
46
47PACKAGES += "${PN}-libomptarget ${PN}-gdb-plugin"
48FILES_SOLIBSDEV = ""
49FILES:${PN} += "${libdir}/lib*${SOLIBSDEV}"
50FILES:${PN}-libomptarget = "${libdir}/libomptarget-*.bc"
51FILES:${PN}-gdb-plugin = "${datadir}/gdb/python/ompd"
52
53RDEPENDS:${PN}-gdb-plugin += "python3-core"
54
55INSANE_SKIP:${PN} = "dev-so"
56# Currently the static libraries contain buildpaths
57INSANE_SKIP:${PN}-staticdev += "buildpaths"
58
59COMPATIBLE_HOST:mips64 = "null"
60COMPATIBLE_HOST:riscv32 = "null"
61COMPATIBLE_HOST:powerpc = "null"
62
63BBCLASSEXTEND = "native nativesdk"
64
65CVE_STATUS[CVE-2022-26345] = "cpe-incorrect: specific to the Intel distribution before 2022.1"