From 3ed57578cca93ff1ba4e0bf3f25566e10659a2f9 Mon Sep 17 00:00:00 2001 From: Randy MacLeod Date: Tue, 10 Aug 2021 13:52:19 -0400 Subject: 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 Signed-off-by: Randy MacLeod Signed-off-by: Richard Purdie --- .../rust-hello-world/0001-enable-LTO.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch (limited to 'meta/recipes-example/rust-hello-world/rust-hello-world') diff --git a/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch b/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch new file mode 100644 index 0000000000..56ef9e73e6 --- /dev/null +++ b/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch @@ -0,0 +1,23 @@ +From fa40b874f6470ec11a8fd7b0c9909d0cdd2d6feb Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Fri, 5 Feb 2021 08:56:34 +1000 +Subject: [PATCH] enable LTO + +--- + Cargo.toml | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Cargo.toml b/Cargo.toml +index 7a2f6c8..cdb6b5d 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -3,3 +3,6 @@ + name = "rust-hello-world" + version = "0.0.1" + authors = ["Cody P Schafer "] ++ ++[profile.release] ++lto = true +-- +2.28.0 + -- cgit 1.2.3-korg