diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-11 21:46:38 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-03-01 11:12:14 -0800 |
commit | 23a95b1adf01c7849ed88d8a2550d169c73679d1 (patch) | |
tree | 0e3b9377484cd0ff973edced66d4f6e193e46a4c | |
parent | 596e0e7c195378a1b02e6ebcad0fb98054230e28 (diff) | |
download | meta-clang-23a95b1adf01c7849ed88d8a2550d169c73679d1.tar.gz |
llvm: Recognise yoe and poky vendors as OE based distro
This helps llvm decide correctly on gcc installation structure
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch | 25 | ||||
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch b/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch new file mode 100644 index 0000000..6eeaef0 --- /dev/null +++ b/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 74beba7c8edee65e123b034cb2a28515f8e22eb8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 11 Feb 2021 16:42:49 -0800 | ||
4 | Subject: [PATCH] llvm: Recognize yoe and poky as OE distro | ||
5 | |||
6 | This helps in making right detection for OE built gcc toolchains | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | llvm/lib/Support/Triple.cpp | 2 ++ | ||
11 | 1 file changed, 2 insertions(+) | ||
12 | |||
13 | diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp | ||
14 | index 4f483c965282..abd181759786 100644 | ||
15 | --- a/llvm/lib/Support/Triple.cpp | ||
16 | +++ b/llvm/lib/Support/Triple.cpp | ||
17 | @@ -490,6 +490,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) { | ||
18 | .Case("mesa", Triple::Mesa) | ||
19 | .Case("suse", Triple::SUSE) | ||
20 | .Case("oe", Triple::OpenEmbedded) | ||
21 | + .Case("yoe", Triple::OpenEmbedded) | ||
22 | + .Case("poky", Triple::OpenEmbedded) | ||
23 | .Default(Triple::UnknownVendor); | ||
24 | } | ||
25 | |||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 9b54432..b6af90c 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -37,6 +37,7 @@ SRC_URI = "\ | |||
37 | file://0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ | 37 | file://0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ |
38 | file://0027-compiler-rt-Include-stddef.h.patch \ | 38 | file://0027-compiler-rt-Include-stddef.h.patch \ |
39 | file://0028-llvm-Do-not-use-find_library-for-ncurses.patch \ | 39 | file://0028-llvm-Do-not-use-find_library-for-ncurses.patch \ |
40 | file://0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch \ | ||
40 | " | 41 | " |
41 | # Fallback to no-PIE if not set | 42 | # Fallback to no-PIE if not set |
42 | GCCPIE ??= "" | 43 | GCCPIE ??= "" |