From 23a95b1adf01c7849ed88d8a2550d169c73679d1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 11 Feb 2021 21:46:38 -0800 Subject: llvm: Recognise yoe and poky vendors as OE based distro This helps llvm decide correctly on gcc installation structure Signed-off-by: Khem Raj --- ...-llvm-Recognize-yoe-and-poky-as-OE-distro.patch | 25 ++++++++++++++++++++++ recipes-devtools/clang/common.inc | 1 + 2 files changed, 26 insertions(+) create mode 100644 recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch 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 @@ +From 74beba7c8edee65e123b034cb2a28515f8e22eb8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 11 Feb 2021 16:42:49 -0800 +Subject: [PATCH] llvm: Recognize yoe and poky as OE distro + +This helps in making right detection for OE built gcc toolchains + +Signed-off-by: Khem Raj +--- + llvm/lib/Support/Triple.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp +index 4f483c965282..abd181759786 100644 +--- a/llvm/lib/Support/Triple.cpp ++++ b/llvm/lib/Support/Triple.cpp +@@ -490,6 +490,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) { + .Case("mesa", Triple::Mesa) + .Case("suse", Triple::SUSE) + .Case("oe", Triple::OpenEmbedded) ++ .Case("yoe", Triple::OpenEmbedded) ++ .Case("poky", Triple::OpenEmbedded) + .Default(Triple::UnknownVendor); + } + 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 = "\ file://0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ file://0027-compiler-rt-Include-stddef.h.patch \ file://0028-llvm-Do-not-use-find_library-for-ncurses.patch \ + file://0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch \ " # Fallback to no-PIE if not set GCCPIE ??= "" -- cgit v1.2.3-54-g00ecf