Commit c180467
classes/rust_bin-common: avoid failing when os does not match
The rust_bin-common defines rust_target(), a function called at parsing
time by bitbake. Calling bb.fatal() in a multiconfig context builds is
problematic, because the alternate config might not build for Linux. For
example when building a baremetal companion firmware.
Yet, our multiconfig recipes are still evaluated during parsing, and in
this case, it makes more sense skipping the recipe rather than producing
an error. Use bb.parse.SkipRecipe() instead of bb.fatal().
Signed-off-by: Antonin Godard <[email protected]>1 parent b5fe3f0 commit c180467
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments