mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 15:32:27 +02:00
rust-hello-world: Drop recipe
we now have more rust/cargo recipes and tests that cover various use cases so this is no longer needed. (From OE-Core rev: 8baaf94d200f5355791ecd980727698b1ab0e539) Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2dd04232e7
commit
e9a09c8012
@@ -734,7 +734,6 @@ RECIPE_MAINTAINER:pn-ruby = "Ross Burton <ross.burton@arm.com>"
|
||||
RECIPE_MAINTAINER:pn-run-postinsts = "Ross Burton <ross.burton@arm.com>"
|
||||
RECIPE_MAINTAINER:pn-rust = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||
RECIPE_MAINTAINER:pn-rust-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||
RECIPE_MAINTAINER:pn-rust-hello-world = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||
RECIPE_MAINTAINER:pn-rust-llvm = "Randy MacLeod <Randy.MacLeod@windriver.com>"
|
||||
RECIPE_MAINTAINER:pn-rxvt-unicode = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-sato-screenshot = "Ross Burton <ross.burton@arm.com>"
|
||||
|
||||
@@ -48,15 +48,3 @@ class RustCompileTest(OERuntimeTestCase):
|
||||
status, output = self.target.run('cargo run --manifest-path=/tmp/hello/Cargo.toml')
|
||||
msg = 'running compiled file failed, output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
class RustHelloworldTest(OERuntimeTestCase):
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
@OEHasPackage(['rust-hello-world'])
|
||||
def test_rusthelloworld(self):
|
||||
cmd = "rust-hello-world"
|
||||
status, output = self.target.run(cmd)
|
||||
msg = 'Exit status was not 0. Output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
|
||||
msg = 'Incorrect output: %s' % output
|
||||
self.assertEqual(output, "Hello, world!", msg=msg)
|
||||
|
||||
@@ -25,8 +25,6 @@ GOTOOLS ?= "go-helloworld"
|
||||
GOTOOLS:powerpc ?= ""
|
||||
GOTOOLS:riscv32 ?= ""
|
||||
|
||||
RUSTTOOLS ?= "rust-hello-world"
|
||||
|
||||
GSTEXAMPLES ?= "gst-examples"
|
||||
GSTEXAMPLES:riscv64 = ""
|
||||
|
||||
@@ -59,5 +57,4 @@ RDEPENDS:${PN} = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', "${X11GLTOOLS}", "", d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', '3g', "${3GTOOLS}", "", d)} \
|
||||
${GOTOOLS} \
|
||||
${RUSTTOOLS} \
|
||||
"
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
From fa40b874f6470ec11a8fd7b0c9909d0cdd2d6feb Mon Sep 17 00:00:00 2001
|
||||
From: Dan Callaghan <dan.callaghan@opengear.com>
|
||||
Date: Fri, 5 Feb 2021 08:56:34 +1000
|
||||
Subject: [PATCH] enable LTO
|
||||
|
||||
Upstream-Status: Pending
|
||||
---
|
||||
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 <dev@codyps.com>"]
|
||||
+
|
||||
+[profile.release]
|
||||
+lto = true
|
||||
--
|
||||
2.28.0
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
inherit cargo
|
||||
|
||||
SRC_URI = "git://github.com/meta-rust/rust-hello-world.git;protocol=https;branch=master"
|
||||
SRCREV="e0fa23f1a3cb1eb1407165bd2fc36d2f6e6ad728"
|
||||
LIC_FILES_CHKSUM="file://COPYRIGHT;md5=e6b2207ac3740d2d01141c49208c2147"
|
||||
|
||||
SRC_URI += "\
|
||||
file://0001-enable-LTO.patch \
|
||||
"
|
||||
|
||||
UPSTREAM_CHECK_COMMITS = "1"
|
||||
|
||||
SUMMARY = "Hello World by Cargo for Rust"
|
||||
HOMEPAGE = "https://github.com/meta-rust/rust-hello-world"
|
||||
LICENSE = "MIT | Apache-2.0"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
Reference in New Issue
Block a user