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>
This commit is contained in:
Richard Purdie
2021-08-23 13:30:48 +01:00
parent a4d2b03d3b
commit d6f10a5d65

View 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.")
}