linuxOS_PX30_CAR/yocto/poky/meta/recipes-devtools/rust/rust_1.54.0.bb

21 lines
417 B
BlitzBasic
Raw Permalink Normal View History

2026-01-20 05:50:57 +00:00
require rust-target.inc
require rust-source-${PV}.inc
require rust-snapshot-${PV}.inc
INSANE_SKIP:${PN}:class-native = "already-stripped"
do_compile () {
rust_runx build --stage 2
}
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.")
}