blob: b505ad46caff7aed2af69f12e81e147719b754f7 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001require rust-target.inc
2require rust-source.inc
3require rust-snapshot.inc
4
5INSANE_SKIP:${PN}:class-native = "already-stripped"
6
7do_compile () {
8 rust_runx build --stage 2
9}
10
11rust_do_install() {
12 rust_runx install
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}
21