diff options
| author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2021-08-10 13:52:19 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-26 22:09:43 +0100 |
| commit | 61e1570c6a09c1984e919e8c0a82a74c1a08d821 (patch) | |
| tree | accab4b08aa3c62f098c9bb19399efb46906256a /meta/recipes-devtools/rust/rust-llvm | |
| parent | 705b1d757fa221614f4f72cabf0fac5884cb6bfd (diff) | |
| download | poky-61e1570c6a09c1984e919e8c0a82a74c1a08d821.tar.gz | |
rust: initial merge of most of meta-rust
In the meta-rust repo at commit:
448047c Upgrade to 1.54.0 (#359)
Make the required directories:
mkdir ../oe-core/meta/recipes-devtools/rust
mkdir ../oe-core/meta/recipes-devtools/cargo
mkdir ../oe-core/meta/recipes-example
and then:
cp recipes-devtools/rust/* ../oe-core/meta/recipes-devtools/rust
cp recipes-devtools/cargo/* ../oe-core/meta/recipes-devtools/cargo
cp lib/crate.py ../oe-core/meta/lib
cp recipes-example/* ../oe-core/meta/recipes-example
cp conf/distro/include/rust_* ../oe-core/meta/conf/distro/include/
cp classes/* ../oe-core/meta/classes/
cp recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb ../oe-core/meta/recipes-core/packagegroups
(From OE-Core rev: 3ed57578cca93ff1ba4e0bf3f25566e10659a2f9)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust-llvm')
| -rw-r--r-- | meta/recipes-devtools/rust/rust-llvm/0001-nfc-Fix-missing-include.patch | 26 | ||||
| -rw-r--r-- | meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch | 32 |
2 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm/0001-nfc-Fix-missing-include.patch b/meta/recipes-devtools/rust/rust-llvm/0001-nfc-Fix-missing-include.patch new file mode 100644 index 0000000000..f6dee77ab2 --- /dev/null +++ b/meta/recipes-devtools/rust/rust-llvm/0001-nfc-Fix-missing-include.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 3b7e611bd58ba842470d17374c550e14bceca5c7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: serge-sans-paille <sguelton@redhat.com> | ||
| 3 | Date: Tue, 10 Nov 2020 14:55:25 +0100 | ||
| 4 | Subject: [PATCH] [nfc] Fix missing include | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | llvm/utils/benchmark/src/benchmark_register.h | 1 + | ||
| 10 | 1 file changed, 1 insertion(+) | ||
| 11 | |||
| 12 | diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h | ||
| 13 | index 0705e219f2fa..4caa5ad4da07 100644 | ||
| 14 | --- a/llvm/utils/benchmark/src/benchmark_register.h | ||
| 15 | +++ b/llvm/utils/benchmark/src/benchmark_register.h | ||
| 16 | @@ -1,6 +1,7 @@ | ||
| 17 | #ifndef BENCHMARK_REGISTER_H | ||
| 18 | #define BENCHMARK_REGISTER_H | ||
| 19 | |||
| 20 | +#include <limits> | ||
| 21 | #include <vector> | ||
| 22 | |||
| 23 | #include "check.h" | ||
| 24 | -- | ||
| 25 | 2.30.1 | ||
| 26 | |||
diff --git a/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch b/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch new file mode 100644 index 0000000000..943c2118bb --- /dev/null +++ b/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 7111770e8290082530d920e120995bf81431b0aa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Kelly <mkelly@xevo.com> | ||
| 3 | Date: Fri, 19 May 2017 00:22:57 -0700 | ||
| 4 | Subject: [PATCH 12/18] llvm: allow env override of exe path | ||
| 5 | |||
| 6 | When using a native llvm-config from inside a sysroot, we need llvm-config to | ||
| 7 | return the libraries, include directories, etc. from inside the sysroot rather | ||
| 8 | than from the native sysroot. Thus provide an env override for calling | ||
| 9 | llvm-config from a target sysroot. | ||
| 10 | |||
| 11 | Signed-off-by: Martin Kelly <mkelly@xevo.com> | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | llvm/tools/llvm-config/llvm-config.cpp | 7 +++++++ | ||
| 15 | 1 file changed, 7 insertions(+) | ||
| 16 | |||
| 17 | --- a/llvm/tools/llvm-config/llvm-config.cpp | ||
| 18 | +++ b/llvm/tools/llvm-config/llvm-config.cpp | ||
| 19 | @@ -226,6 +226,13 @@ Typical components:\n\ | ||
| 20 | |||
| 21 | /// Compute the path to the main executable. | ||
| 22 | std::string GetExecutablePath(const char *Argv0) { | ||
| 23 | + // Hack for Yocto: we need to override the root path when we are using | ||
| 24 | + // llvm-config from within a target sysroot. | ||
| 25 | + const char *Sysroot = std::getenv("YOCTO_ALTERNATE_EXE_PATH"); | ||
| 26 | + if (Sysroot != nullptr) { | ||
| 27 | + return Sysroot; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | // This just needs to be some symbol in the binary; C++ doesn't | ||
| 31 | // allow taking the address of ::main however. | ||
| 32 | void *P = (void *)(intptr_t)GetExecutablePath; | ||
