summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2022-01-22 08:25:28 -0800
committerMark Hatle <mark.hatle@xilinx.com>2022-01-23 12:19:43 -0800
commit6e636e3abc4c74f48ddd5c6cae64f6a52f8080f4 (patch)
treee14b82980a3e17b386173d86a6adae9e94f7f10f /meta-xilinx-core/classes
parentc844a3ab29908f3943e26147355e3bd4602e0e61 (diff)
downloadmeta-xilinx-6e636e3abc4c74f48ddd5c6cae64f6a52f8080f4.tar.gz
xilinx-microblaze.bbclass: Fail if meta-microblaze is not included
When the user uses a microblaze tune, we need to check if meta-microblaze is part of their build. If not stop, and tell them they need to add it. meta-microblaze is not a layers dependency as it is not needed for most builds. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/classes')
-rw-r--r--meta-xilinx-core/classes/xilinx-microblaze.bbclass11
-rw-r--r--meta-xilinx-core/classes/xlnx-standalone.bbclass16
2 files changed, 11 insertions, 16 deletions
diff --git a/meta-xilinx-core/classes/xilinx-microblaze.bbclass b/meta-xilinx-core/classes/xilinx-microblaze.bbclass
new file mode 100644
index 00000000..ed231a3a
--- /dev/null
+++ b/meta-xilinx-core/classes/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}
diff --git a/meta-xilinx-core/classes/xlnx-standalone.bbclass b/meta-xilinx-core/classes/xlnx-standalone.bbclass
deleted file mode 100644
index 9232b1ef..00000000
--- a/meta-xilinx-core/classes/xlnx-standalone.bbclass
+++ /dev/null
@@ -1,16 +0,0 @@
1# Only enabled when ilp32 is enabled.
2def xlnx_ilp32_dict(machdata, d):
3 machdata["elf"] = {
4 "aarch64" : (183, 0, 0, True, 32),
5 "aarch64_be" :(183, 0, 0, False, 32),
6 }
7 return machdata
8
9# Only enabled when microblaze64 is enabled.
10def xlnx_mb64_dict(machdata, d):
11 machdata["elf"] = {
12 "microblaze": (189, 0, 0, False, 64),
13 "microblazeeb":(189, 0, 0, False, 64),
14 "microblazeel":(189, 0, 0, True, 64),
15 }
16 return machdata