summaryrefslogtreecommitdiffstats
path: root/meta-microblaze
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
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')
-rw-r--r--meta-microblaze/classes/rust_microblaze.bbclass5
-rw-r--r--meta-microblaze/conf/layer.conf2
2 files changed, 7 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}
diff --git a/meta-microblaze/conf/layer.conf b/meta-microblaze/conf/layer.conf
index 2536fd69..bccf61d0 100644
--- a/meta-microblaze/conf/layer.conf
+++ b/meta-microblaze/conf/layer.conf
@@ -17,3 +17,5 @@ LAYERSERIES_COMPAT_xilinx-microblaze = "langdale"
17SECURITY_STACK_PROTECTOR:microblaze = "" 17SECURITY_STACK_PROTECTOR:microblaze = ""
18 18
19OLDEST_KERNEL:microblaze = "3.15" 19OLDEST_KERNEL:microblaze = "3.15"
20
21INHERIT += "rust_microblaze"