common.inc 3.4 KB

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