diff options
20 files changed, 154 insertions, 150 deletions
diff --git a/recipes-devtools/clang/clang-cross-canadian_git.bb b/recipes-devtools/clang/clang-cross-canadian_git.bb index 58e2206..b547f47 100644 --- a/recipes-devtools/clang/clang-cross-canadian_git.bb +++ b/recipes-devtools/clang/clang-cross-canadian_git.bb | |||
@@ -10,6 +10,7 @@ SECTION = "devel" | |||
10 | PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 10 | PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
11 | 11 | ||
12 | require clang.inc | 12 | require clang.inc |
13 | require common-source.inc | ||
13 | inherit cross-canadian | 14 | inherit cross-canadian |
14 | 15 | ||
15 | DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-libc" | 16 | DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-libc" |
@@ -18,8 +19,6 @@ DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} vi | |||
18 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" | 19 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" |
19 | TARGET_ARCH[vardepsexclude] = "TUNE_ARCH" | 20 | TARGET_ARCH[vardepsexclude] = "TUNE_ARCH" |
20 | 21 | ||
21 | S = "${WORKDIR}" | ||
22 | |||
23 | do_install() { | 22 | do_install() { |
24 | install -d ${D}${bindir} | 23 | install -d ${D}${bindir} |
25 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang | 24 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang |
diff --git a/recipes-devtools/clang/clang-cross_git.bb b/recipes-devtools/clang/clang-cross_git.bb index 083acb5..618aa5d 100644 --- a/recipes-devtools/clang/clang-cross_git.bb +++ b/recipes-devtools/clang/clang-cross_git.bb | |||
@@ -10,11 +10,10 @@ SECTION = "devel" | |||
10 | PN = "clang-cross-${TARGET_ARCH}" | 10 | PN = "clang-cross-${TARGET_ARCH}" |
11 | 11 | ||
12 | require clang.inc | 12 | require clang.inc |
13 | require common-source.inc | ||
13 | inherit cross | 14 | inherit cross |
14 | DEPENDS += "clang-native binutils-cross-${TARGET_ARCH}" | 15 | DEPENDS += "clang-native binutils-cross-${TARGET_ARCH}" |
15 | 16 | ||
16 | S = "${WORKDIR}" | ||
17 | |||
18 | do_install() { | 17 | do_install() { |
19 | install -d ${D}${bindir} | 18 | install -d ${D}${bindir} |
20 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang | 19 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang |
diff --git a/recipes-devtools/clang/clang-crosssdk_git.bb b/recipes-devtools/clang/clang-crosssdk_git.bb index d23fc66..0fd80be 100644 --- a/recipes-devtools/clang/clang-crosssdk_git.bb +++ b/recipes-devtools/clang/clang-crosssdk_git.bb | |||
@@ -10,11 +10,10 @@ SECTION = "devel" | |||
10 | PN = "clang-crosssdk-${TARGET_ARCH}" | 10 | PN = "clang-crosssdk-${TARGET_ARCH}" |
11 | 11 | ||
12 | require clang.inc | 12 | require clang.inc |
13 | require common-source.inc | ||
13 | inherit crosssdk | 14 | inherit crosssdk |
14 | DEPENDS += "clang-native nativesdk-clang-glue virtual/${TARGET_PREFIX}binutils-crosssdk virtual/nativesdk-libc" | 15 | DEPENDS += "clang-native nativesdk-clang-glue virtual/${TARGET_PREFIX}binutils-crosssdk virtual/nativesdk-libc" |
15 | 16 | ||
16 | S = "${WORKDIR}" | ||
17 | |||
18 | do_install() { | 17 | do_install() { |
19 | install -d ${D}${bindir} | 18 | install -d ${D}${bindir} |
20 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang | 19 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang |
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index bd2dc56..34730f7 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -1,32 +1,24 @@ | |||
1 | LLVM_RELEASE = "" | 1 | LLVM_RELEASE = "" |
2 | LLVM_DIR = "llvm${LLVM_RELEASE}" | 2 | LLVM_DIR = "llvm${LLVM_RELEASE}" |
3 | 3 | ||
4 | LLVM_GIT ?= "git://github.com/llvm-mirror" | 4 | LLVM_GIT ?= "git://github.com/llvm-project" |
5 | LLVM_GIT_PROTOCOL ?= "https" | 5 | LLVM_GIT_PROTOCOL ?= "https" |
6 | 6 | ||
7 | # | ||
8 | # Uncomment below to enable master version of clang/llvm | ||
9 | # | ||
10 | MAJOR_VER = "7" | 7 | MAJOR_VER = "7" |
11 | MINOR_VER = "0" | 8 | MINOR_VER = "0" |
12 | PATCH_VER = "1" | 9 | PATCH_VER = "1" |
13 | 10 | ||
11 | SRCREV ?= "b8e7044dd2e6e7af9e58cef99b840bd88cfd2dec" | ||
12 | |||
14 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" | 13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" |
15 | BRANCH = "release_${MAJOR_VER}${MINOR_VER}" | 14 | BRANCH = "release_${MAJOR_VER}${MINOR_VER}" |
16 | 15 | ||
17 | SRCREV_llvm = "cd98f42d0747826062fc3d2d2fad383aedf58dd6" | ||
18 | SRCREV_clang = "4519e2637fcc4bf6e3049a0a80e6a5e7b97667cb" | ||
19 | SRCREV_compiler-rt = "a4cbb02bca3b952117e9ccfbad8a485857f25935" | ||
20 | SRCREV_cxxabi = "a5b1f6f7644b30c97a59d512d4dbe6825db424d9" | ||
21 | SRCREV_libcxx = "2ac8add7b38ccbbdf75399caf84aeabaf687da29" | ||
22 | SRCREV_libunwind = "d1dee9d525dac7d7146b6e197bc330a7bd963075" | ||
23 | SRCREV_lld = "b9f34e3a65782a9f33fe9eaf2240ec4f1f6e3f6e" | ||
24 | SRCREV_lldb = "637da661b5ef6fd47f4b077ffd26a79b1c1892f9" | ||
25 | SRCREV_openmp = "366ce74b85790ed41f94fba7f17a0911bde83500" | ||
26 | |||
27 | LLVMMD5SUM = "c520ed40e11887bb1d24d86f7f5b1f05" | 16 | LLVMMD5SUM = "c520ed40e11887bb1d24d86f7f5b1f05" |
28 | CLANGMD5SUM = "444af0e124949f07f791f12c928e5994" | 17 | CLANGMD5SUM = "444af0e124949f07f791f12c928e5994" |
29 | LLDMD5SUM = "f4941ace8ddb3d6cf177fff94966319a" | 18 | LLDMD5SUM = "f4941ace8ddb3d6cf177fff94966319a" |
30 | LLDBMD5SUM = "b6320ed0b0d00ae661dd94f277bbf024" | 19 | LLDBMD5SUM = "b6320ed0b0d00ae661dd94f277bbf024" |
31 | 20 | ||
21 | # risc-v comes with clang-8+ | ||
32 | COMPATIBLE_HOST_riscv64 = "(null)" | 22 | COMPATIBLE_HOST_riscv64 = "(null)" |
23 | |||
24 | require common.inc | ||
diff --git a/recipes-devtools/clang/compiler-rt/0001-support-a-new-embedded-linux-target.patch b/recipes-devtools/clang/clang/0001-compiler-rt-support-a-new-embedded-linux-target.patch index 19651d1..8b0c9fe 100644 --- a/recipes-devtools/clang/compiler-rt/0001-support-a-new-embedded-linux-target.patch +++ b/recipes-devtools/clang/clang/0001-compiler-rt-support-a-new-embedded-linux-target.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 0bff81915ecc52416e20b7226dddf6d7f3df29c9 Mon Sep 17 00:00:00 2001 | 1 | From 8b0d5d19e8ebec9b6508b51701cb0c64069091cb Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 | 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 |
4 | Subject: [PATCH 1/5] support a new embedded linux target | 4 | Subject: [PATCH 1/4] compiler-rt: support a new embedded linux target |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | --- | 7 | --- |
@@ -322,5 +322,5 @@ diff --git a/make/platform/clang_linux_embedded_test_input.c b/make/platform/cla | |||
322 | new file mode 100644 | 322 | new file mode 100644 |
323 | index 000000000..e69de29bb | 323 | index 000000000..e69de29bb |
324 | -- | 324 | -- |
325 | 2.18.0 | 325 | 2.20.1 |
326 | 326 | ||
diff --git a/recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch b/recipes-devtools/clang/clang/0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch index b4b835b..1c42931 100644 --- a/recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch +++ b/recipes-devtools/clang/clang/0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From d1b12ce65b563ed5eb0fdd6460d592d829fabc75 Mon Sep 17 00:00:00 2001 | 1 | From ff8d7137ed4d62e9db6d31581822a2ce06d5cbc6 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 18 May 2017 23:12:34 -0700 | 3 | Date: Thu, 18 May 2017 23:12:34 -0700 |
4 | Subject: [PATCH 1/2] Include limits.h for PATH_MAX definition | 4 | Subject: [PATCH 1/2] lldb: Include limits.h for PATH_MAX definition |
5 | 5 | ||
6 | Helps compiling on musl targets | 6 | Helps compiling on musl targets |
7 | 7 | ||
@@ -24,5 +24,5 @@ index b6952f7e3..2cedf5d90 100644 | |||
24 | using namespace lldb_private; | 24 | using namespace lldb_private; |
25 | 25 | ||
26 | -- | 26 | -- |
27 | 2.18.0 | 27 | 2.20.1 |
28 | 28 | ||
diff --git a/recipes-devtools/clang/compiler-rt/0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch b/recipes-devtools/clang/clang/0002-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch index a3d2a66..2ff903b 100644 --- a/recipes-devtools/clang/compiler-rt/0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch +++ b/recipes-devtools/clang/clang/0002-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | From b1b791a330d6399c85fd304f4af12fd01c5b58b2 Mon Sep 17 00:00:00 2001 | 1 | From 5ee148af76169aa327bfa0bfc1c2618a68e873fb Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 19 May 2016 23:11:45 -0700 | 3 | Date: Thu, 19 May 2016 23:11:45 -0700 |
4 | Subject: [PATCH 2/5] Simplify cross-compilation. Don't use native-compiled | 4 | Subject: [PATCH 2/4] compiler-rt: Simplify cross-compilation. Don't use |
5 | llvm-config. | 5 | native-compiled llvm-config. |
6 | 6 | ||
7 | Note: AddLLVM.cmake does not expose the LLVM source directory. | 7 | Note: AddLLVM.cmake does not expose the LLVM source directory. |
8 | So if you want to run the test suite, you need to either: | 8 | So if you want to run the test suite, you need to either: |
@@ -42,5 +42,5 @@ index 86ca2b3ef..07d894c8a 100644 | |||
42 | # Loading the llvm config causes this target to be imported so place it | 42 | # Loading the llvm config causes this target to be imported so place it |
43 | # under the appropriate folder in an IDE. | 43 | # under the appropriate folder in an IDE. |
44 | -- | 44 | -- |
45 | 2.18.0 | 45 | 2.20.1 |
46 | 46 | ||
diff --git a/recipes-devtools/clang/lldb/0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch b/recipes-devtools/clang/clang/0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch index 42e75f2..c331e7a 100644 --- a/recipes-devtools/clang/lldb/0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch +++ b/recipes-devtools/clang/clang/0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 479c943c3b87887d2b93c711220894e94d49979d Mon Sep 17 00:00:00 2001 | 1 | From fa140ec90e72da40d49301e674c84854fdac804b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 22 May 2017 17:36:16 -0700 | 3 | Date: Mon, 22 May 2017 17:36:16 -0700 |
4 | Subject: [PATCH 2/2] lldb: Add -lxml2 to linker cmdline of xml is found | 4 | Subject: [PATCH 2/2] lldb: Add -lxml2 to linker cmdline of xml is found |
@@ -36,5 +36,5 @@ index 5a92447ed..22ce6eee4 100644 | |||
36 | endif () | 36 | endif () |
37 | if (HAVE_LIBDL) | 37 | if (HAVE_LIBDL) |
38 | -- | 38 | -- |
39 | 2.18.0 | 39 | 2.20.1 |
40 | 40 | ||
diff --git a/recipes-devtools/clang/compiler-rt/0003-Disable-tsan-on-OE-glibc.patch b/recipes-devtools/clang/clang/0003-compiler-rt-Disable-tsan-on-OE-glibc.patch index 83f2d82..8f45c2b 100644 --- a/recipes-devtools/clang/compiler-rt/0003-Disable-tsan-on-OE-glibc.patch +++ b/recipes-devtools/clang/clang/0003-compiler-rt-Disable-tsan-on-OE-glibc.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From c90304ffca9c886443e5736ae312e32415651dfe Mon Sep 17 00:00:00 2001 | 1 | From c7d41a6e4dd61733530d2f44c377b91e13004b71 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 | 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 |
4 | Subject: [PATCH 3/5] Disable tsan on OE/glibc | 4 | Subject: [PATCH 3/4] compiler-rt: Disable tsan on OE/glibc |
5 | 5 | ||
6 | It does not build see | 6 | It does not build see |
7 | http://lists.llvm.org/pipermail/llvm-dev/2016-July/102235.html | 7 | http://lists.llvm.org/pipermail/llvm-dev/2016-July/102235.html |
@@ -38,5 +38,5 @@ index 4e2c80390..990315f11 100644 | |||
38 | list(APPEND SUPPORTED_TOOLS ubsan) | 38 | list(APPEND SUPPORTED_TOOLS ubsan) |
39 | endif() | 39 | endif() |
40 | -- | 40 | -- |
41 | 2.18.0 | 41 | 2.20.1 |
42 | 42 | ||
diff --git a/recipes-devtools/clang/compiler-rt/0004-cmake-mips-Do-not-specify-target-with-OE.patch b/recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch index 5868c6e..0356e2a 100644 --- a/recipes-devtools/clang/compiler-rt/0004-cmake-mips-Do-not-specify-target-with-OE.patch +++ b/recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 4c3f384a73a545183b0210f20ab84e7a5075b209 Mon Sep 17 00:00:00 2001 | 1 | From b29deaeb42a8f56bb5dd72b5a8c3e2c755a6bb9e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 11 Feb 2017 17:54:33 +0000 | 3 | Date: Sat, 11 Feb 2017 17:54:33 +0000 |
4 | Subject: [PATCH 4/5] cmake/mips: Do not specify --target with OE | 4 | Subject: [PATCH 4/4] compiler-rt: cmake/mips: Do not specify --target with OE |
5 | 5 | ||
6 | OE already specifies cross compiler correctly, adding this additional | 6 | OE already specifies cross compiler correctly, adding this additional |
7 | --target confuses the clang driver and it resorts to invoke host assembler | 7 | --target confuses the clang driver and it resorts to invoke host assembler |
@@ -40,5 +40,5 @@ index 91fe2494b..789b80628 100644 | |||
40 | if(WIN32) | 40 | if(WIN32) |
41 | test_target_arch(arm "" "" "") | 41 | test_target_arch(arm "" "" "") |
42 | -- | 42 | -- |
43 | 2.18.0 | 43 | 2.20.1 |
44 | 44 | ||
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index 058797c..894c721 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb | |||
@@ -3,30 +3,13 @@ | |||
3 | 3 | ||
4 | DESCRIPTION = "LLVM based C/C++ compiler" | 4 | DESCRIPTION = "LLVM based C/C++ compiler" |
5 | HOMEPAGE = "http://clang.llvm.org/" | 5 | HOMEPAGE = "http://clang.llvm.org/" |
6 | LICENSE = "NCSA" | ||
7 | SECTION = "devel" | 6 | SECTION = "devel" |
8 | 7 | ||
9 | require clang.inc | 8 | require clang.inc |
10 | require common.inc | 9 | require common-source.inc |
11 | |||
12 | PV .= "+git${SRCPV}" | ||
13 | |||
14 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=${LLVMMD5SUM}; \ | ||
15 | file://tools/clang/LICENSE.TXT;md5=${CLANGMD5SUM}; \ | ||
16 | " | ||
17 | SRC_URI = "\ | ||
18 | ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ | ||
19 | ${LLVM_GIT}/clang.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};destsuffix=git/tools/clang;name=clang \ | ||
20 | ${LLVMPATCHES} \ | ||
21 | ${CLANGPATCHES} \ | ||
22 | " | ||
23 | |||
24 | SRCREV_FORMAT = "llvm_clang" | ||
25 | 10 | ||
26 | INHIBIT_DEFAULT_DEPS = "1" | 11 | INHIBIT_DEFAULT_DEPS = "1" |
27 | 12 | ||
28 | S = "${WORKDIR}/git" | ||
29 | |||
30 | inherit cmake cmake-native | 13 | inherit cmake cmake-native |
31 | 14 | ||
32 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" | 15 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" |
@@ -80,7 +63,8 @@ EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \ | |||
80 | -DCMAKE_SYSTEM_NAME=Linux \ | 63 | -DCMAKE_SYSTEM_NAME=Linux \ |
81 | -DCMAKE_BUILD_TYPE=Release \ | 64 | -DCMAKE_BUILD_TYPE=Release \ |
82 | -DBUILD_SHARED_LIBS=OFF \ | 65 | -DBUILD_SHARED_LIBS=OFF \ |
83 | -G Ninja \ | 66 | -DLLVM_ENABLE_PROJECTS='clang;lld' \ |
67 | -G Ninja ${S}/llvm \ | ||
84 | " | 68 | " |
85 | 69 | ||
86 | EXTRA_OECMAKE_append_class-native = "\ | 70 | EXTRA_OECMAKE_append_class-native = "\ |
@@ -90,6 +74,7 @@ EXTRA_OECMAKE_append_class-nativesdk = "\ | |||
90 | -DCMAKE_CROSSCOMPILING:BOOL=ON \ | 74 | -DCMAKE_CROSSCOMPILING:BOOL=ON \ |
91 | -DCROSS_TOOLCHAIN_FLAGS_NATIVE='-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain-native.cmake' \ | 75 | -DCROSS_TOOLCHAIN_FLAGS_NATIVE='-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain-native.cmake' \ |
92 | -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS_TO_BUILD}' \ | 76 | -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS_TO_BUILD}' \ |
77 | -DLLVM_ENABLE_RUNTIMES='compiler-rt;libcxx;libcxxabi;libunwind' \ | ||
93 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 78 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
94 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ | 79 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ |
95 | " | 80 | " |
diff --git a/recipes-devtools/clang/common-source.inc b/recipes-devtools/clang/common-source.inc new file mode 100644 index 0000000..e7fb06f --- /dev/null +++ b/recipes-devtools/clang/common-source.inc | |||
@@ -0,0 +1,11 @@ | |||
1 | do_fetch() { | ||
2 | : | ||
3 | } | ||
4 | do_fetch[noexec] = "1" | ||
5 | deltask do_unpack | ||
6 | deltask do_patch | ||
7 | |||
8 | SRC_URI = "" | ||
9 | |||
10 | do_configure[depends] += "llvm-project-source-${PV}:do_patch" | ||
11 | do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack" | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 74bccf4..1b4cf9b 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -1,33 +1,70 @@ | |||
1 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/clang:" | 1 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/clang:" |
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \ | ||
4 | file://clang/LICENSE.TXT;md5=${CLANGMD5SUM} \ | ||
5 | " | ||
6 | LICENSE = "NCSA" | ||
7 | |||
8 | BASEURI ??= "${LLVM_GIT}/llvm-project-20170507;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" | ||
9 | SRC_URI = "\ | ||
10 | ${BASEURI} \ | ||
11 | ${LLVMPATCHES} \ | ||
12 | ${CLANGPATCHES} \ | ||
13 | ${COMPILERRTPATCHES} \ | ||
14 | ${LIBCXXABIPATCHES} \ | ||
15 | ${LIBCXXPATCHES} \ | ||
16 | ${LLDBPATCHES} \ | ||
17 | " | ||
18 | |||
3 | # llvm patches | 19 | # llvm patches |
4 | # | 20 | # |
5 | LLVMPATCHES = "\ | 21 | LLVMPATCHES = "\ |
6 | file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ | 22 | file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch;patchdir=llvm \ |
7 | file://0002-llvm-allow-env-override-of-exe-path.patch \ | 23 | file://0002-llvm-allow-env-override-of-exe-path.patch;patchdir=llvm \ |
8 | file://0003-llvm-Disable-calls-to-_finite-and-other-glibc-only-f.patch \ | 24 | file://0003-llvm-Disable-calls-to-_finite-and-other-glibc-only-f.patch;patchdir=llvm \ |
9 | " | 25 | " |
10 | # Fallback to no-PIE if not set | 26 | # Fallback to no-PIE if not set |
11 | GCCPIE ??= "" | 27 | GCCPIE ??= "" |
12 | 28 | ||
13 | # Clang patches | 29 | # Clang patches |
14 | CLANGPATCHES = "\ | 30 | CLANGPATCHES = "\ |
15 | file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch;patchdir=tools/clang \ | 31 | file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch;patchdir=clang \ |
16 | file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch;patchdir=tools/clang \ | 32 | file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch;patchdir=clang \ |
17 | file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch;patchdir=tools/clang \ | 33 | file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch;patchdir=clang \ |
18 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ | 34 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=clang \ |
19 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ | 35 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=clang \ |
20 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=tools/clang \ | 36 | file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=clang \ |
21 | file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=tools/clang \ | 37 | file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=clang \ |
22 | file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=tools/clang \ | 38 | file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=clang \ |
23 | " | 39 | " |
24 | CLANGPATCHES += "${@'file://0009-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=tools/clang' if '${GCCPIE}' else ''}" | 40 | CLANGPATCHES += "${@'file://0009-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=clang' if '${GCCPIE}' else ''}" |
25 | 41 | ||
42 | # compiler-rt patches | ||
43 | COMPILERRTPATCHES = "\ | ||
44 | file://0001-compiler-rt-support-a-new-embedded-linux-target.patch;patchdir=compiler-rt \ | ||
45 | file://0002-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch;patchdir=compiler-rt \ | ||
46 | file://0003-compiler-rt-Disable-tsan-on-OE-glibc.patch;patchdir=compiler-rt \ | ||
47 | file://0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch;patchdir=compiler-rt \ | ||
48 | " | ||
26 | # libcxxabi patches | 49 | # libcxxabi patches |
27 | LIBCXXABIPATCHES ="\ | 50 | LIBCXXABIPATCHES ="\ |
28 | file://0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch;patchdir=projects/libcxxabi \ | 51 | file://0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch;patchdir=libcxxabi \ |
29 | " | 52 | " |
30 | 53 | ||
31 | # libc++ patches | 54 | # libc++ patches |
32 | LIBCXXPATCHES = "\ | 55 | LIBCXXPATCHES = "\ |
33 | " | 56 | " |
57 | |||
58 | # lldb patches | ||
59 | LLDBPATCHES = "\ | ||
60 | file://0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch;patchdir=lldb \ | ||
61 | file://0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch;patchdir=lldb \ | ||
62 | " | ||
63 | |||
64 | S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" | ||
65 | B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
66 | |||
67 | # We need to ensure that for the shared work directory, the do_patch signatures match | ||
68 | # The real WORKDIR location isn't a dependency for the shared workdir. | ||
69 | src_patches[vardepsexclude] = "WORKDIR" | ||
70 | should_apply[vardepsexclude] += "PN" | ||
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index c458836..0bc5a49 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -7,34 +7,22 @@ LICENSE = "MIT | NCSA" | |||
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | 8 | ||
9 | require clang.inc | 9 | require clang.inc |
10 | require common-source.inc | ||
10 | 11 | ||
11 | TOOLCHAIN = "clang" | 12 | inherit cmake pkgconfig pythonnative |
12 | 13 | ||
13 | PV .= "+git${SRCPV}" | ||
14 | 14 | ||
15 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=92bfbe70fc44c6e5efc6403a31180ed7; \ | 15 | LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=92bfbe70fc44c6e5efc6403a31180ed7; \ |
16 | " | ||
17 | SRC_URI = "\ | ||
18 | ${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ | ||
19 | file://0001-support-a-new-embedded-linux-target.patch \ | ||
20 | file://0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ | ||
21 | file://0003-Disable-tsan-on-OE-glibc.patch \ | ||
22 | file://0004-cmake-mips-Do-not-specify-target-with-OE.patch \ | ||
23 | " | 16 | " |
24 | 17 | ||
25 | SRCREV_FORMAT = "compiler-rt" | ||
26 | |||
27 | BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" | 18 | BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" |
28 | BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" | 19 | BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" |
29 | TARGET_CXXFLAGS_remove_toolchain-clang = " -stdlib=libc++ " | 20 | TARGET_CXXFLAGS_remove_toolchain-clang = " -stdlib=libc++ " |
30 | TUNE_CCARGS_remove = "-no-integrated-as" | 21 | TUNE_CCARGS_remove = "-no-integrated-as" |
22 | LDFLAGS_append = " -fuse-ld=lld" | ||
31 | 23 | ||
32 | DEPENDS += "ninja-native" | 24 | DEPENDS += "ninja-native" |
33 | 25 | ||
34 | S = "${WORKDIR}/git" | ||
35 | |||
36 | inherit cmake pkgconfig pythonnative | ||
37 | |||
38 | THUMB_TUNE_CCARGS = "" | 26 | THUMB_TUNE_CCARGS = "" |
39 | #TUNE_CCARGS += "-nostdlib" | 27 | #TUNE_CCARGS += "-nostdlib" |
40 | 28 | ||
@@ -43,7 +31,7 @@ HF[vardepvalue] = "${HF}" | |||
43 | EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=ON \ | 31 | EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=ON \ |
44 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ | 32 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ |
45 | -DCOMPILER_RT_BUILD_XRAY=OFF \ | 33 | -DCOMPILER_RT_BUILD_XRAY=OFF \ |
46 | -G Ninja \ | 34 | -G Ninja ${S}/compiler-rt \ |
47 | " | 35 | " |
48 | 36 | ||
49 | EXTRA_OECMAKE_append_class-nativesdk = "\ | 37 | EXTRA_OECMAKE_append_class-nativesdk = "\ |
@@ -101,3 +89,5 @@ BBCLASSEXTEND = "native nativesdk" | |||
101 | 89 | ||
102 | ALLOW_EMPTY_${PN} = "1" | 90 | ALLOW_EMPTY_${PN} = "1" |
103 | ALLOW_EMPTY_${PN}-dev = "1" | 91 | ALLOW_EMPTY_${PN}-dev = "1" |
92 | |||
93 | TOOLCHAIN = "clang" | ||
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 10dd3c8..a320e05 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -7,10 +7,9 @@ LICENSE = "MIT | NCSA" | |||
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | 8 | ||
9 | require clang.inc | 9 | require clang.inc |
10 | require common.inc | 10 | require common-source.inc |
11 | 11 | ||
12 | inherit cmake pythonnative | 12 | inherit cmake pythonnative |
13 | PV .= "+git${SRCPV}" | ||
14 | 13 | ||
15 | DEPENDS += "ninja-native" | 14 | DEPENDS += "ninja-native" |
16 | BASEDEPENDS_remove_toolchain-clang = "libcxx" | 15 | BASEDEPENDS_remove_toolchain-clang = "libcxx" |
@@ -24,24 +23,10 @@ PACKAGECONFIG[unwind] = "-DLIBCXXABI_USE_LLVM_UNWINDER=ON -DLIBCXXABI_LIBUNWIND_ | |||
24 | 23 | ||
25 | PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'unwind', 'libunwind', '', d)}" | 24 | PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'unwind', 'libunwind', '', d)}" |
26 | 25 | ||
27 | LIC_FILES_CHKSUM = "file://projects/libcxx/LICENSE.TXT;md5=7b3a0e1b99822669d630011defe9bfd9; \ | 26 | LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=7b3a0e1b99822669d630011defe9bfd9; \ |
28 | file://projects/libcxxabi/LICENSE.TXT;md5=3600117b7c18121ab04c53e4615dc36e \ | 27 | file://libcxxabi/LICENSE.TXT;md5=3600117b7c18121ab04c53e4615dc36e \ |
29 | file://projects/libunwind/LICENSE.TXT;md5=7ea986af7f70eaea5a297dd2744c79a5 \ | 28 | file://libunwind/LICENSE.TXT;md5=7ea986af7f70eaea5a297dd2744c79a5 \ |
30 | " | 29 | " |
31 | SRC_URI = "\ | ||
32 | ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ | ||
33 | ${LLVM_GIT}/libcxx.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ | ||
34 | ${LLVM_GIT}/libcxxabi.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=cxxabi;destsuffix=git/projects/libcxxabi \ | ||
35 | ${LLVM_GIT}/libunwind.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libunwind;destsuffix=git/projects/libunwind \ | ||
36 | ${LLVMPATCHES} \ | ||
37 | ${LIBCXXPATCHES} \ | ||
38 | ${LIBCXXABIPATCHES} \ | ||
39 | " | ||
40 | |||
41 | SRCREV_FORMAT = "llvm_libcxx_cxxabi_libunwind" | ||
42 | |||
43 | S = "${WORKDIR}/git" | ||
44 | |||
45 | THUMB_TUNE_CCARGS = "" | 30 | THUMB_TUNE_CCARGS = "" |
46 | #TUNE_CCARGS += "-nostdlib" | 31 | #TUNE_CCARGS += "-nostdlib" |
47 | 32 | ||
@@ -49,11 +34,12 @@ EXTRA_OECMAKE += "\ | |||
49 | -DLIBCXX_CXX_ABI=libcxxabi \ | 34 | -DLIBCXX_CXX_ABI=libcxxabi \ |
50 | -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ | 35 | -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ |
51 | -DCXX_SUPPORTS_CXX11=ON \ | 36 | -DCXX_SUPPORTS_CXX11=ON \ |
52 | -DLIBCXXABI_LIBCXX_INCLUDES=${S}/projects/libcxx/include \ | 37 | -DLIBCXXABI_LIBCXX_INCLUDES=${S}/libcxx/include \ |
53 | -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/projects/libcxxabi/include \ | 38 | -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/libcxxabi/include \ |
54 | -DLIBCXX_CXX_ABI_LIBRARY_PATH=${B}/lib \ | 39 | -DLIBCXX_CXX_ABI_LIBRARY_PATH=${B}/lib \ |
40 | -DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi;libunwind' \ | ||
55 | -G Ninja \ | 41 | -G Ninja \ |
56 | ${S} \ | 42 | ${S}/llvm \ |
57 | " | 43 | " |
58 | 44 | ||
59 | EXTRA_OECMAKE_append_class-native = " -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF" | 45 | EXTRA_OECMAKE_append_class-native = " -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF" |
diff --git a/recipes-devtools/clang/lldb_git.bb b/recipes-devtools/clang/lldb_git.bb index 3488d6b..7c4be42 100644 --- a/recipes-devtools/clang/lldb_git.bb +++ b/recipes-devtools/clang/lldb_git.bb | |||
@@ -8,34 +8,15 @@ SECTION = "devel" | |||
8 | 8 | ||
9 | DEPENDS += "clang-native zlib libxml2 ninja-native" | 9 | DEPENDS += "clang-native zlib libxml2 ninja-native" |
10 | 10 | ||
11 | FILESPATH =. "${FILE_DIRNAME}/clang:" | ||
12 | require clang.inc | 11 | require clang.inc |
13 | require common.inc | 12 | require common-source.inc |
14 | 13 | ||
15 | inherit cmake pkgconfig | 14 | inherit cmake pkgconfig |
16 | PV .= "+git${SRCPV}" | ||
17 | 15 | ||
18 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=${LLVMMD5SUM}; \ | 16 | LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM}; \ |
19 | file://tools/clang/LICENSE.TXT;md5=${CLANGMD5SUM}; \ | 17 | file://clang/LICENSE.TXT;md5=${CLANGMD5SUM}; \ |
20 | file://tools/lldb/LICENSE.TXT;md5=${LLDBMD5SUM}; \ | 18 | file://lldb/LICENSE.TXT;md5=${LLDBMD5SUM}; \ |
21 | " | 19 | " |
22 | |||
23 | SRC_URI = "\ | ||
24 | ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ | ||
25 | ${LLVM_GIT}/clang.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};destsuffix=git/tools/clang;name=clang \ | ||
26 | ${LLVM_GIT}/lldb.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};destsuffix=git/tools/lldb;name=lldb \ | ||
27 | ${LLVMPATCHES} \ | ||
28 | ${CLANGPATCHES} \ | ||
29 | " | ||
30 | |||
31 | # lldb patches | ||
32 | SRC_URI += "\ | ||
33 | file://0001-Include-limits.h-for-PATH_MAX-definition.patch;patchdir=tools/lldb \ | ||
34 | file://0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch;patchdir=tools/lldb \ | ||
35 | " | ||
36 | SRCREV_FORMAT = "llvm_clang_lldb" | ||
37 | |||
38 | S = "${WORKDIR}/git" | ||
39 | 20 | ||
40 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" | 21 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" |
41 | 22 | ||
@@ -52,10 +33,15 @@ EXTRA_OECMAKE="\ | |||
52 | -DLLVM_ENABLE_TERMINFO=0 \ | 33 | -DLLVM_ENABLE_TERMINFO=0 \ |
53 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 34 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
54 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ | 35 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ |
36 | -DLLVM_HOST_TRIPLE=${TARGET_SYS} \ | ||
37 | -DLLDB_TEST_USE_CUSTOM_C_COMPILER=ON \ | ||
38 | -DLLDB_TEST_USE_CUSTOM_CXX_COMPILER=ON \ | ||
39 | -DLLDB_TEST_C_COMPILER='${CC}' \ | ||
40 | -DLLDB_TEST_CXX_COMPILER='${CXX}' \ | ||
55 | -DCMAKE_BUILD_TYPE=Release \ | 41 | -DCMAKE_BUILD_TYPE=Release \ |
56 | -G Ninja \ | 42 | -DLLVM_ENABLE_PROJECTS='clang;lldb' \ |
57 | ${S} \ | 43 | -G Ninja ${S}/llvm \ |
58 | " | 44 | " |
59 | 45 | ||
60 | EXTRA_OEMAKE = "VERBOSE=1" | 46 | EXTRA_OEMAKE = "VERBOSE=1" |
61 | 47 | ||
diff --git a/recipes-devtools/clang/llvm-project-source.bb b/recipes-devtools/clang/llvm-project-source.bb new file mode 100644 index 0000000..a3133b2 --- /dev/null +++ b/recipes-devtools/clang/llvm-project-source.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | # Copyright (C) 2018 Khem Raj <raj.khem@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | SUMMARY = "Flat monorepo imported from http://llvm.org/git/ (17 repos)" | ||
5 | HOMEPAGE = "https://github.com/llvm-project/llvm-project-20170507" | ||
6 | |||
7 | require llvm-project-source.inc | ||
8 | require clang.inc | ||
9 | |||
10 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/recipes-devtools/clang/llvm-project-source.inc b/recipes-devtools/clang/llvm-project-source.inc new file mode 100644 index 0000000..f6c552d --- /dev/null +++ b/recipes-devtools/clang/llvm-project-source.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | deltask do_configure | ||
2 | deltask do_compile | ||
3 | deltask do_install | ||
4 | deltask do_populate_sysroot | ||
5 | deltask do_populate_lic | ||
6 | RM_WORK_EXCLUDE += "${PN}" | ||
7 | |||
8 | inherit nopackages | ||
9 | |||
10 | PN = "llvm-project-source-${PV}" | ||
11 | |||
12 | WORKDIR = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}" | ||
13 | SSTATE_SWSPEC = "sstate:llvm-project-source::${PV}:${PR}::${SSTATE_VERSION}:" | ||
14 | |||
15 | STAMP = "${STAMPS_DIR}/work-shared/llvm-project-source-${PV}-${PR}" | ||
16 | STAMPCLEAN = "${STAMPS_DIR}/work-shared/llvm-project-source-${PV}-*" | ||
17 | |||
18 | INHIBIT_DEFAULT_DEPS = "1" | ||
19 | DEPENDS = "" | ||
20 | PACKAGES = "" | ||
diff --git a/recipes-devtools/clang/nativesdk-clang-glue.bb b/recipes-devtools/clang/nativesdk-clang-glue.bb index 5453990..6824bcb 100644 --- a/recipes-devtools/clang/nativesdk-clang-glue.bb +++ b/recipes-devtools/clang/nativesdk-clang-glue.bb | |||
@@ -8,11 +8,10 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/NCSA;md5=1b5fdec70ee13ad8a91667 | |||
8 | SECTION = "devel" | 8 | SECTION = "devel" |
9 | 9 | ||
10 | require clang.inc | 10 | require clang.inc |
11 | require common-source.inc | ||
11 | inherit nativesdk | 12 | inherit nativesdk |
12 | DEPENDS += "nativesdk-clang" | 13 | DEPENDS += "nativesdk-clang" |
13 | 14 | ||
14 | S = "${WORKDIR}" | ||
15 | |||
16 | do_install() { | 15 | do_install() { |
17 | install -d ${D}${prefix_nativesdk} | 16 | install -d ${D}${prefix_nativesdk} |
18 | cd ${D}${prefix_nativesdk} | 17 | cd ${D}${prefix_nativesdk} |
diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb index b141b98..30bc307 100644 --- a/recipes-devtools/clang/openmp_git.bb +++ b/recipes-devtools/clang/openmp_git.bb | |||
@@ -7,6 +7,7 @@ LICENSE = "MIT | NCSA" | |||
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | 8 | ||
9 | require clang.inc | 9 | require clang.inc |
10 | require common-source.inc | ||
10 | 11 | ||
11 | DEPENDS += "ninja-native" | 12 | DEPENDS += "ninja-native" |
12 | 13 | ||
@@ -15,24 +16,14 @@ RPROVIDES_${PN}-dev += "libgomp-dev" | |||
15 | 16 | ||
16 | TOOLCHAIN = "clang" | 17 | TOOLCHAIN = "clang" |
17 | 18 | ||
18 | PV .= "+git${SRCPV}" | 19 | LIC_FILES_CHKSUM = "file://openmp/LICENSE.txt;md5=5dcbca021bcb2fbc22186bc7a8a159e6" |
19 | |||
20 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dcbca021bcb2fbc22186bc7a8a159e6; \ | ||
21 | " | ||
22 | SRC_URI = "\ | ||
23 | ${LLVM_GIT}/openmp.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=openmp \ | ||
24 | " | ||
25 | |||
26 | SRCREV_FORMAT = "openmp" | ||
27 | 20 | ||
28 | BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" | 21 | BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" |
29 | BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" | 22 | BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" |
30 | 23 | ||
31 | S = "${WORKDIR}/git" | ||
32 | |||
33 | inherit cmake pkgconfig perlnative | 24 | inherit cmake pkgconfig perlnative |
34 | 25 | ||
35 | EXTRA_OECMAKE = "-G Ninja" | 26 | EXTRA_OECMAKE = "-G Ninja ${S}/openmp" |
36 | 27 | ||
37 | THUMB_TUNE_CCARGS = "" | 28 | THUMB_TUNE_CCARGS = "" |
38 | 29 | ||