]> code.ossystems Code Review - openembedded-core.git/commitdiff
rust: Skip target recipe since it doesn't work
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Aug 2021 12:30:48 +0000 (13:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Aug 2021 21:09:25 +0000 (22:09 +0100)
The target rust recipe is known not to work. Add a SkipRecipe entry for
that so world builds don't include something known to be broken and
hence give users a sensible message if they do try and build it rather
than a build failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust_1.54.0.bb

index ee60c3e6f1e809c32203aab347ac51b1b4a02e4c..e7d8d70c2618442d14c1d8f465e31a1c4bb4135b 100644 (file)
@@ -11,3 +11,10 @@ do_compile () {
 rust_do_install() {
     rust_runx install
 }
+
+python () {
+    pn = d.getVar('PN')
+
+    if not pn.endswith("-native"):
+        raise bb.parse.SkipRecipe("Rust recipe doesn't work for target builds at this time. Fixes welcome.")
+}