diff options
author | Mark Hatle <mark.hatle@amd.com> | 2022-09-21 14:41:52 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-09-21 14:41:54 -0700 |
commit | fd21132fd0060ea097bf7983c33b4e5158b51de8 (patch) | |
tree | 64ac6281217da843e0f6fb0a06a6e9ec8d0483bd /meta-microblaze/classes | |
parent | a88a734282fb007f81e0d8e365eccfc7d8a375e3 (diff) | |
download | meta-xilinx-fd21132fd0060ea097bf7983c33b4e5158b51de8.tar.gz |
rust_microblaze.bbclass: Prevent rust from being available on microblaze
rust does not support microblaze. So we want to automatically skip any
recipes that inherit rust support. Otherwise the failure is delayed until
do_configure time, instead of parse time.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-microblaze/classes')
-rw-r--r-- | meta-microblaze/classes/rust_microblaze.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-microblaze/classes/rust_microblaze.bbclass b/meta-microblaze/classes/rust_microblaze.bbclass new file mode 100644 index 00000000..d129d2b0 --- /dev/null +++ b/meta-microblaze/classes/rust_microblaze.bbclass | |||
@@ -0,0 +1,5 @@ | |||
1 | python __anonymous() { | ||
2 | if bb.data.inherits_class('rust-target-config', d): | ||
3 | if d.getVar('TARGET_ARCH') in ['microblaze', 'microblazeel', 'microblazeeb']: | ||
4 | raise bb.parse.SkipRecipe("Rust does not support microblaze.") | ||
5 | } | ||