summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes-global/xilinx-microblaze.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/classes-global/xilinx-microblaze.bbclass')
-rw-r--r--meta-xilinx-core/classes-global/xilinx-microblaze.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-xilinx-core/classes-global/xilinx-microblaze.bbclass b/meta-xilinx-core/classes-global/xilinx-microblaze.bbclass
new file mode 100644
index 00000000..ed231a3a
--- /dev/null
+++ b/meta-xilinx-core/classes-global/xilinx-microblaze.bbclass
@@ -0,0 +1,11 @@
1# Class to add a deprecated warning from various configuration files.
2
3# Immediately after the ConfigParsed event handler, warn the user of any
4# deprecated files the user has used.
5addhandler xilinx_microblaze_config_eventhandler
6xilinx_microblaze_config_eventhandler[eventmask] = "bb.event.ConfigParsed"
7python xilinx_microblaze_config_eventhandler () {
8 if d.getVar('DEFAULTTUNE').startswith('microblaze'):
9 if 'xilinx-microblaze' not in d.getVar('BBFILE_COLLECTIONS').split():
10 bb.fatal('You must include the meta-microblaze layer to build for this configuration.')
11}