summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-23 13:30:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-26 22:09:44 +0100
commitd6f10a5d6552f653618d2da1b8c7a11da65daf7d (patch)
tree778b752dc7b76903a305e57c4e747805d2e7207c /meta
parenta4d2b03d3bc0ed1e112a5b92251c859a57002e78 (diff)
downloadpoky-d6f10a5d6552f653618d2da1b8c7a11da65daf7d.tar.gz
rust: Skip target recipe since it doesn't work
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. (From OE-Core rev: 16c77c82ff6635b0180690ea117e2eff8fd63afb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/rust/rust_1.54.0.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.54.0.bb b/meta/recipes-devtools/rust/rust_1.54.0.bb
index ee60c3e6f1..e7d8d70c26 100644
--- a/meta/recipes-devtools/rust/rust_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.54.0.bb
@@ -11,3 +11,10 @@ do_compile () {
11rust_do_install() { 11rust_do_install() {
12 rust_runx install 12 rust_runx install
13} 13}
14
15python () {
16 pn = d.getVar('PN')
17
18 if not pn.endswith("-native"):
19 raise bb.parse.SkipRecipe("Rust recipe doesn't work for target builds at this time. Fixes welcome.")
20}