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