diff options
Diffstat (limited to 'external/meta-clang/recipes-devtools/clang/openmp_git.bb')
-rw-r--r-- | external/meta-clang/recipes-devtools/clang/openmp_git.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/external/meta-clang/recipes-devtools/clang/openmp_git.bb b/external/meta-clang/recipes-devtools/clang/openmp_git.bb new file mode 100644 index 00000000..30bc3071 --- /dev/null +++ b/external/meta-clang/recipes-devtools/clang/openmp_git.bb @@ -0,0 +1,40 @@ +# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "LLVM based C/C++ compiler Runtime" +HOMEPAGE = "http://openmp.llvm.org/" +LICENSE = "MIT | NCSA" +SECTION = "base" + +require clang.inc +require common-source.inc + +DEPENDS += "ninja-native" + +RPROVIDES_${PN} += "libgomp" +RPROVIDES_${PN}-dev += "libgomp-dev" + +TOOLCHAIN = "clang" + +LIC_FILES_CHKSUM = "file://openmp/LICENSE.txt;md5=5dcbca021bcb2fbc22186bc7a8a159e6" + +BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" +BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" + +inherit cmake pkgconfig perlnative + +EXTRA_OECMAKE = "-G Ninja ${S}/openmp" + +THUMB_TUNE_CCARGS = "" + +do_compile() { + ninja ${PARALLEL_MAKE} +} + +do_install() { + DESTDIR=${D} ninja ${PARALLEL_MAKE} install +} + +FILES_SOLIBSDEV = "" +FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}" +INSANE_SKIP_${PN} = "dev-so" |