summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-18 01:45:00 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commit65662ac814dae595fe45f1270d91a6f8fbf167ac (patch)
tree32d7fa4fbdc0a3d4deffc4ee2d8c5c4655f884c0
parente142ab31246e9e9eca73ef6e82778469b6d1ba43 (diff)
downloadmeta-clang-65662ac814dae595fe45f1270d91a6f8fbf167ac.tar.gz
llvm-project-source: Emit all default MULTILIB_GLOBAL_VARIANTS
This ensures that signature of do_patch does not change between multilib and non-multilib builds of clang-native, this essentially hardcodes the multilib variants to lib32 lib64 libx32 which is 99.9% usecase, if you fall into 0.1% then go ahead and modify MULTILIB_VARIANTS in a bbappend file and it will be fine. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 2979956a6925c5a167de451fc804738e96d41637)
-rw-r--r--recipes-devtools/clang/llvm-project-source.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-devtools/clang/llvm-project-source.inc b/recipes-devtools/clang/llvm-project-source.inc
index a840030..4afd1bb 100644
--- a/recipes-devtools/clang/llvm-project-source.inc
+++ b/recipes-devtools/clang/llvm-project-source.inc
@@ -26,13 +26,14 @@ CLANG_EXTRA_OE_VENDORS ?= "${TARGET_VENDOR} ${SDK_VENDOR}"
26# ":" separated the ID in "/etc/os-release" and the triple for finding gcc on this OE DISTRO. 26# ":" separated the ID in "/etc/os-release" and the triple for finding gcc on this OE DISTRO.
27# eg: "poky:poky wrlinux:wrs" 27# eg: "poky:poky wrlinux:wrs"
28CLANG_EXTRA_OE_DISTRO ?= "poky:poky" 28CLANG_EXTRA_OE_DISTRO ?= "poky:poky"
29 29# Match with MULTILIB_GLOBAL_VARIANTS
30MULTILIB_VARIANTS = "lib32 lib64 libx32"
30python add_distro_vendor() { 31python add_distro_vendor() {
31 import subprocess 32 import subprocess
32 case = "" 33 case = ""
33 triple = "" 34 triple = ""
34 vendors = d.getVar('CLANG_EXTRA_OE_VENDORS') 35 vendors = d.getVar('CLANG_EXTRA_OE_VENDORS')
35 multilib_variants = (d.getVar("MULTILIB_GLOBAL_VARIANTS") or "").split() 36 multilib_variants = (d.getVar("MULTILIB_VARIANTS") or "").split()
36 vendors_to_add = [] 37 vendors_to_add = []
37 for vendor in vendors.split(): 38 for vendor in vendors.split():
38 # convert -yoe into yoe 39 # convert -yoe into yoe