diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-09-10 17:24:31 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-13 10:36:50 +0100 |
commit | c424572927cbb7548f1e156808b5f36690f1f315 (patch) | |
tree | 73dc63e566145e965c1007ad303a088bdc383a35 /meta/recipes-extended/rust-example | |
parent | 5e4f3acbc8497e7676f1c9eb80e7b989104066e0 (diff) | |
download | poky-c424572927cbb7548f1e156808b5f36690f1f315.tar.gz |
rust-hello-world: move to recipes-extended
There is no need to have a single recipe in recipes-example; moving it
to recipes-extended put it with other recipes.
(From OE-Core rev: c53b2539176199607eb12c706658a269c81d3232)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/rust-example')
-rw-r--r-- | meta/recipes-extended/rust-example/rust-hello-world/0001-enable-LTO.patch | 24 | ||||
-rw-r--r-- | meta/recipes-extended/rust-example/rust-hello-world_git.bb | 19 |
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-extended/rust-example/rust-hello-world/0001-enable-LTO.patch b/meta/recipes-extended/rust-example/rust-hello-world/0001-enable-LTO.patch new file mode 100644 index 0000000000..f319545ee1 --- /dev/null +++ b/meta/recipes-extended/rust-example/rust-hello-world/0001-enable-LTO.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From fa40b874f6470ec11a8fd7b0c9909d0cdd2d6feb Mon Sep 17 00:00:00 2001 | ||
2 | From: Dan Callaghan <dan.callaghan@opengear.com> | ||
3 | Date: Fri, 5 Feb 2021 08:56:34 +1000 | ||
4 | Subject: [PATCH] enable LTO | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | --- | ||
8 | Cargo.toml | 3 +++ | ||
9 | 1 file changed, 3 insertions(+) | ||
10 | |||
11 | diff --git a/Cargo.toml b/Cargo.toml | ||
12 | index 7a2f6c8..cdb6b5d 100644 | ||
13 | --- a/Cargo.toml | ||
14 | +++ b/Cargo.toml | ||
15 | @@ -3,3 +3,6 @@ | ||
16 | name = "rust-hello-world" | ||
17 | version = "0.0.1" | ||
18 | authors = ["Cody P Schafer <dev@codyps.com>"] | ||
19 | + | ||
20 | +[profile.release] | ||
21 | +lto = true | ||
22 | -- | ||
23 | 2.28.0 | ||
24 | |||
diff --git a/meta/recipes-extended/rust-example/rust-hello-world_git.bb b/meta/recipes-extended/rust-example/rust-hello-world_git.bb new file mode 100644 index 0000000000..1d91109b51 --- /dev/null +++ b/meta/recipes-extended/rust-example/rust-hello-world_git.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | inherit cargo | ||
2 | |||
3 | SRC_URI = "git://github.com/meta-rust/rust-hello-world.git;protocol=https;branch=master" | ||
4 | SRCREV="e0fa23f1a3cb1eb1407165bd2fc36d2f6e6ad728" | ||
5 | LIC_FILES_CHKSUM="file://COPYRIGHT;md5=e6b2207ac3740d2d01141c49208c2147" | ||
6 | |||
7 | SRC_URI += "\ | ||
8 | file://0001-enable-LTO.patch \ | ||
9 | " | ||
10 | |||
11 | UPSTREAM_CHECK_COMMITS = "1" | ||
12 | |||
13 | SUMMARY = "Hello World by Cargo for Rust" | ||
14 | HOMEPAGE = "https://github.com/meta-rust/rust-hello-world" | ||
15 | LICENSE = "MIT | Apache-2.0" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | BBCLASSEXTEND = "native" | ||