summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
blob: 3333b34a1f1f5819f942c23fa8397a9d9428f7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FILESEXTRAPATHS =. "${FILE_DIRNAME}/clang:"

LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \
                    file://clang/LICENSE.TXT;md5=${CLANGMD5SUM} \
"
LICENSE = "Apache-2.0-with-LLVM-exception"

BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}"
SRC_URI = "\
    ${BASEURI} \
    file://0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \
    file://0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \
    file://0003-compiler-rt-support-a-new-embedded-linux-target.patch \
    file://0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch \
    file://0005-compiler-rt-Disable-tsan-on-OE-glibc.patch \
    file://0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \
    file://0007-llvm-allow-env-override-of-exe-path.patch \
    file://0008-llvm-Enhance-path-prefix-mapping.patch \
    file://0009-clang-Enable-SSP-and-PIE-by-default.patch \
    file://0010-clang-driver-Check-sysroot-for-ldso-path.patch \
    file://0011-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch \
    file://0012-clang-musl-ppc-does-not-support-128-bit-long-double.patch \
    file://0013-clang-Prepend-trailing-to-sysroot.patch \
    file://0014-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch \
    file://0015-clang-Define-releative-gcc-installation-dir.patch \
    file://0016-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch \
    file://0017-clang-scan-view-needs-python-2.x.patch \
    file://0018-clang-Initial-implementation-of-fmacro-prefix-map-an.patch \
    file://0019-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch \
    file://0020-clang-default-to-lp64d-ABI-and-rv64gc-ISA.patch \
    file://0021-RISCV-Add-support-for-floating-point-registers-in-in.patch \
    file://0022-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch \
    file://0023-openmp-Recognise-ARMv7ve-machine-arch.patch \
    file://0024-Check-for-atomic-double-intrinsics.patch \
    file://0025-llvm-Let-llvm-ar-name-contain-lib.patch \
    file://0026-libclang-Use-CMAKE_DL_LIBS-for-deducing-libdl.patch \
    file://0027-Fix-sanitizer-common-build-with-glibc-2.31.patch \
    file://0028-Add-libgcc-to-link-step-for-libcxx.patch \
"

# Fallback to no-PIE if not set
GCCPIE ??= ""

S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git"
B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"

# We need to ensure that for the shared work directory, the do_patch signatures match
# The real WORKDIR location isn't a dependency for the shared workdir.
src_patches[vardepsexclude] = "WORKDIR"
should_apply[vardepsexclude] += "PN"