1FILESEXTRAPATHS =. "${FILE_DIRNAME}/clang:" 2 3LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \ 4 file://clang/LICENSE.TXT;md5=${CLANGMD5SUM} \ 5" 6LICENSE = "Apache-2.0-with-LLVM-exception" 7 8BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" 9SRC_URI = "\ 10 ${BASEURI} \ 11 file://llvm-config \ 12 file://libunwind.pc.in \ 13 file://0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \ 14 file://0002-compiler-rt-support-a-new-embedded-linux-target.patch \ 15 file://0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch \ 16 file://0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ 17 file://0005-llvm-allow-env-override-of-exe-and-libdir-path.patch \ 18 file://0006-clang-driver-Check-sysroot-for-ldso-path.patch \ 19 file://0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch \ 20 file://0008-clang-Prepend-trailing-to-sysroot.patch \ 21 file://0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch \ 22 file://0010-clang-Define-releative-gcc-installation-dir.patch \ 23 file://0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch \ 24 file://0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch \ 25 file://0013-Check-for-atomic-double-intrinsics.patch \ 26 file://0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch \ 27 file://0015-clang-llvm-cmake-Fix-configure-for-packages-using-fi.patch \ 28 file://0016-clang-Fix-resource-dir-location-for-cross-toolchains.patch \ 29 file://0017-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch \ 30 file://0018-clang-Use-python3-in-python-scripts.patch \ 31 file://0019-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ 32 file://0020-llvm-Do-not-use-find_library-for-ncurses.patch \ 33 file://0021-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch \ 34 file://0022-compiler-rt-Use-mcr-based-barrier-on-armv6.patch \ 35 file://0023-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch \ 36 file://0024-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch \ 37 file://0025-compiler-rt-Link-scudo-with-SANITIZER_CXX_ABI_LIBRAR.patch \ 38 file://0026-compiler-rt-Link-scudo-standalone-with-libatomic-on-.patch \ 39 file://0027-libunwind-Added-unw_backtrace-method.patch \ 40 file://0028-Do-not-force-thumb-mode-directive.patch \ 41 file://0029-clang-Do-not-use-install-relative-libc-headers.patch \ 42 file://0030-clang-Fix-how-driver-finds-GCC-installation-path-on-.patch \ 43 file://0031-Fix-lib-paths-for-OpenEmbedded-Host.patch \ 44 file://0032-Correct-library-search-path-for-OpenEmbedded-Host.patch \ 45 file://0033-lldb-Link-with-libatomic-on-x86.patch \ 46 file://0034-clang-exclude-openembedded-distributions-from-settin.patch \ 47 file://0035-compiler-rt-Enable-__int128-for-ppc32.patch \ 48 file://0036-compiler-rt-builtins-Move-DMB-definition-to-syn-opsh.patch \ 49 file://0037-sanitizer-Remove-include-linux-fs.h-to-resolve-fscon.patch \ 50 " 51# Fallback to no-PIE if not set 52GCCPIE ??= "" 53 54S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" 55B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" 56 57# We need to ensure that for the shared work directory, the do_patch signatures match 58# The real WORKDIR location isn't a dependency for the shared workdir. 59src_patches[vardepsexclude] = "WORKDIR" 60should_apply[vardepsexclude] += "PN" 61