diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-06 16:06:35 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-13 16:11:14 -0800 |
commit | a18947c20dba2c0c38db8bde1ad4684995df4bbd (patch) | |
tree | 917bf2abbe439a6f99ede8cfafb25812dca54a9a /meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass | |
parent | 6ddc5873b0ede30e6542f0ab151a6236acc37944 (diff) | |
download | meta-xilinx-a18947c20dba2c0c38db8bde1ad4684995df4bbd.tar.gz |
meta-xilinx: Restructuring meta-xilinx to support multiple layers
As discussed previously on mailing list, we are proceeding with layer
restructuring. For rocko release we will have the following layers
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-xilinx-contrib
In the subsequent releases we will add other layers from Xilinx
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-petalinux
->meta-xilinx-tools
->meta-xilinx-contrib
This will provide one clone to get all the required meta layers from
Xilinx for a complete solution, and the users can blacklist any layer
which they don't want to use using bblayer.conf.
This will enables us to help our vendors/partners to add their reference
designs, board definitions etc.
Recipe changes :
* Move reference design zybo-linux-bd.bb to meta-xilinx-contrib
* Move kernel patches realted to zybo-linux-bd-zynq7 board to
meta-xilinx-contrib
* Update README
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass')
-rw-r--r-- | meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass b/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass new file mode 100644 index 00000000..024626cb --- /dev/null +++ b/meta-xilinx-bsp/classes/qemuboot-xilinx.bbclass | |||
@@ -0,0 +1,27 @@ | |||
1 | |||
2 | # enable the overrides for the context of the conf only | ||
3 | OVERRIDES .= ":qemuboot-xilinx" | ||
4 | |||
5 | # setup the target binary | ||
6 | QB_SYSTEM_NAME_prepend = "qemu-xilinx/" | ||
7 | |||
8 | # Default machine targets for Xilinx QEMU (FDT Generic) | ||
9 | QB_MACHINE_aarch64 = "-machine arm-generic-fdt" | ||
10 | QB_MACHINE_arm = "-machine arm-generic-fdt-7series" | ||
11 | QB_MACHINE_microblaze = "-machine microblaze-generic-fdt-plnx" | ||
12 | |||
13 | # defaults | ||
14 | QB_DEFAULT_KERNEL ?= "none" | ||
15 | |||
16 | inherit qemuboot | ||
17 | |||
18 | # rewrite the qemuboot with the custom sysroot bindir | ||
19 | python do_write_qemuboot_conf_append() { | ||
20 | val = os.path.join(d.getVar('BASE_WORKDIR'), d.getVar('BUILD_SYS'), 'qemu-xilinx-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/') | ||
21 | cf.set('config_bsp', 'STAGING_BINDIR_NATIVE', '%s' % val) | ||
22 | |||
23 | # write out the updated version from this append | ||
24 | with open(qemuboot, 'w') as f: | ||
25 | cf.write(f) | ||
26 | } | ||
27 | |||