summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/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-standalone/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-standalone/classes')
-rw-r--r--meta-xilinx-standalone/classes/xlnx-standalone.bbclass16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/classes/xlnx-standalone.bbclass b/meta-xilinx-standalone/classes/xlnx-standalone.bbclass
new file mode 100644
index 00000000..9232b1ef
--- /dev/null
+++ b/meta-xilinx-standalone/classes/xlnx-standalone.bbclass
@@ -0,0 +1,16 @@
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