diff options
Diffstat (limited to 'meta/recipes-devtools/clang')
-rw-r--r-- | meta/recipes-devtools/clang/clang-cross_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/clang-crosssdk_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/clang_git.bb | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/common-clang.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/common.inc | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/compiler-rt_git.bb | 10 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/libcxx_git.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/llvm-project-source.inc | 1 |
9 files changed, 17 insertions, 12 deletions
diff --git a/meta/recipes-devtools/clang/clang-cross_git.bb b/meta/recipes-devtools/clang/clang-cross_git.bb index 9b9b120a3d..323cc0d880 100644 --- a/meta/recipes-devtools/clang/clang-cross_git.bb +++ b/meta/recipes-devtools/clang/clang-cross_git.bb | |||
@@ -11,6 +11,7 @@ PN = "clang-cross-${TARGET_ARCH}" | |||
11 | require common-clang.inc | 11 | require common-clang.inc |
12 | require common-source.inc | 12 | require common-source.inc |
13 | inherit cross | 13 | inherit cross |
14 | TOOLCHAIN = "clang" | ||
14 | DEPENDS += "clang-native virtual/cross-binutils" | 15 | DEPENDS += "clang-native virtual/cross-binutils" |
15 | 16 | ||
16 | #INHIBIT_PACKAGE_STRIP = "1" | 17 | #INHIBIT_PACKAGE_STRIP = "1" |
diff --git a/meta/recipes-devtools/clang/clang-crosssdk_git.bb b/meta/recipes-devtools/clang/clang-crosssdk_git.bb index 47ac96f4f9..ef162ef153 100644 --- a/meta/recipes-devtools/clang/clang-crosssdk_git.bb +++ b/meta/recipes-devtools/clang/clang-crosssdk_git.bb | |||
@@ -11,6 +11,7 @@ PN = "clang-crosssdk-${SDK_SYS}" | |||
11 | require common-clang.inc | 11 | require common-clang.inc |
12 | require common-source.inc | 12 | require common-source.inc |
13 | inherit crosssdk | 13 | inherit crosssdk |
14 | TOOLCHAIN = "clang" | ||
14 | DEPENDS += "clang-native nativesdk-clang-glue virtual/nativesdk-cross-binutils virtual/nativesdk-libc" | 15 | DEPENDS += "clang-native nativesdk-clang-glue virtual/nativesdk-cross-binutils virtual/nativesdk-libc" |
15 | 16 | ||
16 | do_install() { | 17 | do_install() { |
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb index f958b72414..23dfbb5deb 100644 --- a/meta/recipes-devtools/clang/clang_git.bb +++ b/meta/recipes-devtools/clang/clang_git.bb | |||
@@ -22,7 +22,7 @@ INHIBIT_DEFAULT_DEPS:class-native = "1" | |||
22 | LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 22 | LDFLAGS:append:class-target:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
23 | LDFLAGS:append:class-target:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" | 23 | LDFLAGS:append:class-target:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" |
24 | 24 | ||
25 | inherit cmake pkgconfig python3native python3targetconfig | 25 | inherit cmake pkgconfig python3native python3targetconfig multilib_header |
26 | 26 | ||
27 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" | 27 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" |
28 | 28 | ||
@@ -237,6 +237,9 @@ do_install:append() { | |||
237 | install -Dm 0755 ${B}${BINPATHPREFIX}/bin/$t ${D}${bindir}/$t | 237 | install -Dm 0755 ${B}${BINPATHPREFIX}/bin/$t ${D}${bindir}/$t |
238 | fi | 238 | fi |
239 | done | 239 | done |
240 | |||
241 | oe_multilib_header llvm/Config/llvm-config.h | ||
242 | oe_multilib_header clang/Config/config.h | ||
240 | } | 243 | } |
241 | 244 | ||
242 | do_install:append:class-target () { | 245 | do_install:append:class-target () { |
@@ -316,7 +319,6 @@ PROVIDES:append:class-nativesdk = " nativesdk-llvm nativesdk-libclc" | |||
316 | PACKAGES =+ "${PN}-libllvm ${PN}-lldb-python ${PN}-libclang-python ${PN}-libclang-cpp ${PN}-tidy ${PN}-format ${PN}-tools ${PN}-clc \ | 319 | PACKAGES =+ "${PN}-libllvm ${PN}-lldb-python ${PN}-libclang-python ${PN}-libclang-cpp ${PN}-tidy ${PN}-format ${PN}-tools ${PN}-clc \ |
317 | libclang lldb lldb-server liblldb llvm-linker-tools" | 320 | libclang lldb lldb-server liblldb llvm-linker-tools" |
318 | 321 | ||
319 | |||
320 | BBCLASSEXTEND = "native nativesdk" | 322 | BBCLASSEXTEND = "native nativesdk" |
321 | 323 | ||
322 | RDEPENDS:lldb += "${PN}-lldb-python lldb-server" | 324 | RDEPENDS:lldb += "${PN}-lldb-python lldb-server" |
diff --git a/meta/recipes-devtools/clang/common-clang.inc b/meta/recipes-devtools/clang/common-clang.inc index 15e6610b9b..cbea6b4d75 100644 --- a/meta/recipes-devtools/clang/common-clang.inc +++ b/meta/recipes-devtools/clang/common-clang.inc | |||
@@ -5,7 +5,7 @@ LLVM_HTTP ?= "https://github.com/llvm" | |||
5 | 5 | ||
6 | MAJOR_VER = "20" | 6 | MAJOR_VER = "20" |
7 | MINOR_VER = "1" | 7 | MINOR_VER = "1" |
8 | PATCH_VER = "6" | 8 | PATCH_VER = "7" |
9 | # could be 'rcX' or 'git' or empty ( for release ) | 9 | # could be 'rcX' or 'git' or empty ( for release ) |
10 | VER_SUFFIX = "" | 10 | VER_SUFFIX = "" |
11 | 11 | ||
diff --git a/meta/recipes-devtools/clang/common.inc b/meta/recipes-devtools/clang/common.inc index 5244298dfb..37d37ec197 100644 --- a/meta/recipes-devtools/clang/common.inc +++ b/meta/recipes-devtools/clang/common.inc | |||
@@ -17,7 +17,7 @@ BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-proje | |||
17 | UPSTREAM_CHECK_URI = "${LLVM_HTTP}/llvm-project/releases/" | 17 | UPSTREAM_CHECK_URI = "${LLVM_HTTP}/llvm-project/releases/" |
18 | UPSTREAM_CHECK_REGEX = "releases/tag/llvmorg-?(?P<pver>\d+(\.\d+)+)" | 18 | UPSTREAM_CHECK_REGEX = "releases/tag/llvmorg-?(?P<pver>\d+(\.\d+)+)" |
19 | SOURCEDIR ?= "llvm-project-${PV}.src" | 19 | SOURCEDIR ?= "llvm-project-${PV}.src" |
20 | SRC_URI[sha256sum] = "5c70549d524284c184fe9fbff862c3d2d7a61b787570611b5a30e5cc345f145e" | 20 | SRC_URI[sha256sum] = "cd8fd55d97ad3e360b1d5aaf98388d1f70dfffb7df36beee478be3b839ff9008" |
21 | 21 | ||
22 | SRC_URI = "\ | 22 | SRC_URI = "\ |
23 | ${BASEURI} \ | 23 | ${BASEURI} \ |
@@ -63,7 +63,8 @@ SRC_URI = "\ | |||
63 | # Fallback to no-PIE if not set | 63 | # Fallback to no-PIE if not set |
64 | GCCPIE ??= "" | 64 | GCCPIE ??= "" |
65 | 65 | ||
66 | S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/${SOURCEDIR}" | 66 | UNPACKDIR = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/sources" |
67 | S = "${UNPACKDIR}/${SOURCEDIR}" | ||
67 | B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | 68 | B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
68 | 69 | ||
69 | # We need to ensure that for the shared work directory, the do_patch signatures match | 70 | # We need to ensure that for the shared work directory, the do_patch signatures match |
diff --git a/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb index 47438014b2..087a766302 100644 --- a/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb +++ b/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb | |||
@@ -37,6 +37,7 @@ CFLAGS += "${COMPILER_RT}" | |||
37 | CXXFLAGS += "${COMPILER_RT} ${LIBCPLUSPLUS}" | 37 | CXXFLAGS += "${COMPILER_RT} ${LIBCPLUSPLUS}" |
38 | 38 | ||
39 | TOOLCHAIN = "clang" | 39 | TOOLCHAIN = "clang" |
40 | TOOLCHAIN_NATIVE = "clang" | ||
40 | 41 | ||
41 | DEPENDS += "ninja-native virtual/crypt compiler-rt" | 42 | DEPENDS += "ninja-native virtual/crypt compiler-rt" |
42 | DEPENDS:append:class-native = " clang-native libxcrypt-native libcxx-native" | 43 | DEPENDS:append:class-native = " clang-native libxcrypt-native libcxx-native" |
diff --git a/meta/recipes-devtools/clang/compiler-rt_git.bb b/meta/recipes-devtools/clang/compiler-rt_git.bb index 7b442183ef..342a7b0e95 100644 --- a/meta/recipes-devtools/clang/compiler-rt_git.bb +++ b/meta/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -16,7 +16,6 @@ BPN = "compiler-rt" | |||
16 | 16 | ||
17 | inherit cmake pkgconfig python3native | 17 | inherit cmake pkgconfig python3native |
18 | 18 | ||
19 | |||
20 | LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a" | 19 | LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a" |
21 | 20 | ||
22 | LIBCPLUSPLUS = "" | 21 | LIBCPLUSPLUS = "" |
@@ -30,14 +29,15 @@ DEPENDS += "ninja-native libgcc" | |||
30 | DEPENDS:append:class-target = " virtual/cross-c++ clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" | 29 | DEPENDS:append:class-target = " virtual/cross-c++ clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" |
31 | DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-native clang-crosssdk-${SDK_SYS} nativesdk-gcc-runtime" | 30 | DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-native clang-crosssdk-${SDK_SYS} nativesdk-gcc-runtime" |
32 | DEPENDS:append:class-native = " clang-native" | 31 | DEPENDS:append:class-native = " clang-native" |
32 | DEPENDS:remove:class-native = "libcxx-native compiler-rt-native" | ||
33 | 33 | ||
34 | # Trick clang.bbclass into not creating circular dependencies | 34 | # Trick clang.bbclass into not creating circular dependencies |
35 | UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" | 35 | UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" |
36 | COMPILER_RT:class-nativesdk = "-rtlib=libgcc" | 36 | COMPILER_RT:class-nativesdk = "-rtlib=libgcc" |
37 | LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" | 37 | LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" |
38 | UNWINDLIB:class-native = "--unwindlib=libgcc" | 38 | UNWINDLIB:class-native = "" |
39 | COMPILER_RT:class-native = "-rtlib=libgcc" | 39 | COMPILER_RT:class-native = "" |
40 | LIBCPLUSPLUS:class-native = "-stdlib=libstdc++" | 40 | LIBCPLUSPLUS:class-native = "" |
41 | UNWINDLIB:class-target = "--unwindlib=libgcc" | 41 | UNWINDLIB:class-target = "--unwindlib=libgcc" |
42 | COMPILER_RT:class-target = "-rtlib=libgcc" | 42 | COMPILER_RT:class-target = "-rtlib=libgcc" |
43 | LIBCPLUSPLUS:class-target = "-stdlib=libstdc++" | 43 | LIBCPLUSPLUS:class-target = "-stdlib=libstdc++" |
@@ -53,8 +53,6 @@ HF:class-target = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', | |||
53 | 53 | ||
54 | CC = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 54 | CC = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
55 | CXX = "${CCACHE}${HOST_PREFIX}clang++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 55 | CXX = "${CCACHE}${HOST_PREFIX}clang++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
56 | BUILD_CC = "${CCACHE}clang ${BUILD_CC_ARCH}" | ||
57 | BUILD_CXX = "${CCACHE}clang++ ${BUILD_CC_ARCH}" | ||
58 | LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}" | 56 | LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}" |
59 | CXXFLAGS += "${LIBCPLUSPLUS}" | 57 | CXXFLAGS += "${LIBCPLUSPLUS}" |
60 | 58 | ||
diff --git a/meta/recipes-devtools/clang/libcxx_git.bb b/meta/recipes-devtools/clang/libcxx_git.bb index f5bf17f30a..d355fc3a0f 100644 --- a/meta/recipes-devtools/clang/libcxx_git.bb +++ b/meta/recipes-devtools/clang/libcxx_git.bb | |||
@@ -25,6 +25,7 @@ DEPENDS += "ninja-native" | |||
25 | DEPENDS:append:class-target = " virtual/cross-c++ clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${MLPREFIX}compilerlibs" | 25 | DEPENDS:append:class-target = " virtual/cross-c++ clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${MLPREFIX}compilerlibs" |
26 | DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-crosssdk-${SDK_SYS} nativesdk-compiler-rt" | 26 | DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-crosssdk-${SDK_SYS} nativesdk-compiler-rt" |
27 | DEPENDS:append:class-native = " clang-native compiler-rt-native" | 27 | DEPENDS:append:class-native = " clang-native compiler-rt-native" |
28 | DEPENDS:remove:class-native = "libcxx-native" | ||
28 | 29 | ||
29 | COMPILER_RT ?= "${@bb.utils.contains("PACKAGECONFIG", "compiler-rt", "-rtlib=compiler-rt", "-rtlib=libgcc", d)}" | 30 | COMPILER_RT ?= "${@bb.utils.contains("PACKAGECONFIG", "compiler-rt", "-rtlib=compiler-rt", "-rtlib=libgcc", d)}" |
30 | UNWINDLIB ?= "${@bb.utils.contains("PACKAGECONFIG", "unwind", "-unwindlib=none", "-unwindlib=libgcc", d)}" | 31 | UNWINDLIB ?= "${@bb.utils.contains("PACKAGECONFIG", "unwind", "-unwindlib=none", "-unwindlib=libgcc", d)}" |
@@ -55,6 +56,7 @@ LDFLAGS += "${COMPILER_RT} ${UNWINDLIB} ${LIBCPLUSPLUS}" | |||
55 | CXXFLAGS += "${LIBCPLUSPLUS}" | 56 | CXXFLAGS += "${LIBCPLUSPLUS}" |
56 | 57 | ||
57 | TOOLCHAIN = "clang" | 58 | TOOLCHAIN = "clang" |
59 | TOOLCHAIN_NATIVE = "clang" | ||
58 | 60 | ||
59 | OECMAKE_SOURCEPATH = "${S}/llvm" | 61 | OECMAKE_SOURCEPATH = "${S}/llvm" |
60 | EXTRA_OECMAKE += "\ | 62 | EXTRA_OECMAKE += "\ |
diff --git a/meta/recipes-devtools/clang/llvm-project-source.inc b/meta/recipes-devtools/clang/llvm-project-source.inc index 0820dd3492..13e54efbc2 100644 --- a/meta/recipes-devtools/clang/llvm-project-source.inc +++ b/meta/recipes-devtools/clang/llvm-project-source.inc | |||
@@ -66,7 +66,6 @@ python do_preconfigure() { | |||
66 | cmd = d.expand("sed -i 's#//CLANG_EXTRA_OE_VENDORS_CASES#%s#g' -i ${S}/llvm/lib/TargetParser/Triple.cpp" % (case)) | 66 | cmd = d.expand("sed -i 's#//CLANG_EXTRA_OE_VENDORS_CASES#%s#g' -i ${S}/llvm/lib/TargetParser/Triple.cpp" % (case)) |
67 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) | 67 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
68 | 68 | ||
69 | |||
70 | case = "" | 69 | case = "" |
71 | triple = "" | 70 | triple = "" |
72 | name = "" | 71 | name = "" |