summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2022-09-21 14:41:52 -0700
committerMark Hatle <mark.hatle@amd.com>2022-09-21 14:41:54 -0700
commitfd21132fd0060ea097bf7983c33b4e5158b51de8 (patch)
tree64ac6281217da843e0f6fb0a06a6e9ec8d0483bd /meta-microblaze/classes
parenta88a734282fb007f81e0d8e365eccfc7d8a375e3 (diff)
downloadmeta-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.bbclass5
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 @@
1python __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}