diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-10 11:19:40 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-17 07:57:27 -0700 |
commit | e62aac4ae1ebb3948be18b8da8f024cb7d7a9d7d (patch) | |
tree | f8bc52479e7f9c914d65b0faa9455da884266944 | |
parent | 6d713802333bffac22575a563852f92fc360f4ff (diff) | |
download | meta-xilinx-e62aac4ae1ebb3948be18b8da8f024cb7d7a9d7d.tar.gz |
meta-xilinx-bsp: cleanup qemu references
Move IMAGE_CLASSES setting to common machine-xilinx-qemu.inc, also add
preferred provider for the xilinx specific qemu components.
Adjust the various BSPs to remove duplicate references to these and
non-Xilinx versions of qemu.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
13 files changed, 7 insertions, 39 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-qemu.inc b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-qemu.inc index 5eb4b5c4..3d3eae5c 100644 --- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-qemu.inc +++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-qemu.inc | |||
@@ -1,8 +1,14 @@ | |||
1 | # This include is used to setup default QEMU and qemuboot config for meta-xilinx | 1 | # This include is used to setup default QEMU and qemuboot config for meta-xilinx |
2 | # machines. | 2 | # machines. |
3 | 3 | ||
4 | # Use the xilinx specific version for these users | ||
5 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
6 | |||
4 | # depend on qemu-helper-native, which will depend on QEMU | 7 | # depend on qemu-helper-native, which will depend on QEMU |
5 | EXTRA_IMAGEDEPENDS += "qemu-helper-native" | 8 | EXTRA_IMAGEDEPENDS += "qemu-xilinx-helper-native" |
9 | |||
10 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
11 | PREFERRED_PROVIDER_qemu = "qemu-xilinx" | ||
6 | 12 | ||
7 | def qemu_default_dtb(d): | 13 | def qemu_default_dtb(d): |
8 | if d.getVar("IMAGE_BOOT_FILES", True): | 14 | if d.getVar("IMAGE_BOOT_FILES", True): |
diff --git a/meta-xilinx-bsp/conf/machine/ml605-qemu-microblazeel.conf b/meta-xilinx-bsp/conf/machine/ml605-qemu-microblazeel.conf index f4ddb6df..a3c7005f 100644 --- a/meta-xilinx-bsp/conf/machine/ml605-qemu-microblazeel.conf +++ b/meta-xilinx-bsp/conf/machine/ml605-qemu-microblazeel.conf | |||
@@ -19,7 +19,6 @@ KERNEL_IMAGETYPE ?= "linux.bin.ub" | |||
19 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 19 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
20 | 20 | ||
21 | # This machine is a targeting a QEMU model, runqemu setup: | 21 | # This machine is a targeting a QEMU model, runqemu setup: |
22 | IMAGE_CLASSES += "qemuboot" | ||
23 | QB_MEM = "-m 256" | 22 | QB_MEM = "-m 256" |
24 | QB_MACHINE = "-machine petalogix-ml605" | 23 | QB_MACHINE = "-machine petalogix-ml605" |
25 | QB_OPT_APPEND = "-nographic -serial mon:stdio" | 24 | QB_OPT_APPEND = "-nographic -serial mon:stdio" |
diff --git a/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf b/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf index 17c69b1b..0eeda5c2 100644 --- a/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/qemu-zynq7.conf | |||
@@ -17,8 +17,6 @@ HDF_MACHINE = "zc702-zynq7" | |||
17 | # Use the networking setup from qemuarm | 17 | # Use the networking setup from qemuarm |
18 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 18 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
19 | 19 | ||
20 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
21 | |||
22 | QB_MEM = "-m 1024" | 20 | QB_MEM = "-m 1024" |
23 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" | 21 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
24 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" | 22 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
@@ -28,10 +26,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" | |||
28 | QB_DTB = "system.dtb" | 26 | QB_DTB = "system.dtb" |
29 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | 27 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" |
30 | 28 | ||
31 | # Xilinx's fork of QEMU has much better results, so let's default to that | ||
32 | # Use qemu-xilinx instead of mainline | ||
33 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
34 | |||
35 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) | 29 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
36 | QB_OPT_APPEND = " \ | 30 | QB_OPT_APPEND = " \ |
37 | -nographic -serial null -serial mon:stdio \ | 31 | -nographic -serial null -serial mon:stdio \ |
diff --git a/meta-xilinx-bsp/conf/machine/s3adsp1800-qemu-microblazeeb.conf b/meta-xilinx-bsp/conf/machine/s3adsp1800-qemu-microblazeeb.conf index 3a21eb78..446f02f0 100644 --- a/meta-xilinx-bsp/conf/machine/s3adsp1800-qemu-microblazeeb.conf +++ b/meta-xilinx-bsp/conf/machine/s3adsp1800-qemu-microblazeeb.conf | |||
@@ -16,7 +16,6 @@ SERIAL_CONSOLE = "115200 ttyUL0" | |||
16 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 16 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
17 | 17 | ||
18 | # This machine is a targeting a QEMU model, runqemu setup: | 18 | # This machine is a targeting a QEMU model, runqemu setup: |
19 | IMAGE_CLASSES += "qemuboot" | ||
20 | QB_MEM = "-m 256" | 19 | QB_MEM = "-m 256" |
21 | QB_MACHINE = "-machine petalogix-s3adsp1800" | 20 | QB_MACHINE = "-machine petalogix-s3adsp1800" |
22 | QB_OPT_APPEND = "-nographic -serial mon:stdio" | 21 | QB_OPT_APPEND = "-nographic -serial mon:stdio" |
diff --git a/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf b/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf index d042245b..4a5c5b02 100644 --- a/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf | |||
@@ -13,8 +13,6 @@ UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | |||
13 | SERIAL_CONSOLE = "115200 ttyAMA0" | 13 | SERIAL_CONSOLE = "115200 ttyAMA0" |
14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | 14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" |
15 | 15 | ||
16 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
17 | |||
18 | # Default SD image build onfiguration, use qemu-sd to pad | 16 | # Default SD image build onfiguration, use qemu-sd to pad |
19 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 17 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
20 | IMAGE_FSTYPES += "wic.qemu-sd" | 18 | IMAGE_FSTYPES += "wic.qemu-sd" |
@@ -38,7 +36,6 @@ IMAGE_BOOT_FILES += " \ | |||
38 | boot.scr \ | 36 | boot.scr \ |
39 | " | 37 | " |
40 | # This machine has a QEMU model, runqemu setup: | 38 | # This machine has a QEMU model, runqemu setup: |
41 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
42 | QB_MACHINE = "-M arm-generic-fdt" | 39 | QB_MACHINE = "-M arm-generic-fdt" |
43 | QB_MEM = "-m 4096" | 40 | QB_MEM = "-m 4096" |
44 | QB_DEFAULT_KERNEL = "none" | 41 | QB_DEFAULT_KERNEL = "none" |
diff --git a/meta-xilinx-bsp/conf/machine/vck190-versal.conf b/meta-xilinx-bsp/conf/machine/vck190-versal.conf index 67867535..cb1921dd 100644 --- a/meta-xilinx-bsp/conf/machine/vck190-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vck190-versal.conf | |||
@@ -13,8 +13,6 @@ UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | |||
13 | SERIAL_CONSOLE = "115200 ttyAMA0" | 13 | SERIAL_CONSOLE = "115200 ttyAMA0" |
14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | 14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" |
15 | 15 | ||
16 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
17 | |||
18 | # Default SD image build onfiguration, use qemu-sd to pad | 16 | # Default SD image build onfiguration, use qemu-sd to pad |
19 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 17 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
20 | IMAGE_FSTYPES += "wic.qemu-sd" | 18 | IMAGE_FSTYPES += "wic.qemu-sd" |
@@ -44,7 +42,6 @@ PSM_FIRMWARE_IMAGE_NAME ?= "psm-firmware-versal-mb" | |||
44 | 42 | ||
45 | 43 | ||
46 | # This machine has a QEMU model, runqemu setup: | 44 | # This machine has a QEMU model, runqemu setup: |
47 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
48 | QB_MACHINE = "-M arm-generic-fdt" | 45 | QB_MACHINE = "-M arm-generic-fdt" |
49 | QB_MEM = "-m 4096" | 46 | QB_MEM = "-m 4096" |
50 | QB_DEFAULT_KERNEL = "none" | 47 | QB_DEFAULT_KERNEL = "none" |
diff --git a/meta-xilinx-bsp/conf/machine/versal-generic.conf b/meta-xilinx-bsp/conf/machine/versal-generic.conf index 0128a9ca..c5ca7d77 100644 --- a/meta-xilinx-bsp/conf/machine/versal-generic.conf +++ b/meta-xilinx-bsp/conf/machine/versal-generic.conf | |||
@@ -8,7 +8,5 @@ require conf/machine/include/machine-xilinx-qemu.inc | |||
8 | 8 | ||
9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" | 9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" |
10 | 10 | ||
11 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
12 | |||
13 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 11 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" |
14 | 12 | ||
diff --git a/meta-xilinx-bsp/conf/machine/vmk180-versal.conf b/meta-xilinx-bsp/conf/machine/vmk180-versal.conf index 92977dc7..fe234cfd 100644 --- a/meta-xilinx-bsp/conf/machine/vmk180-versal.conf +++ b/meta-xilinx-bsp/conf/machine/vmk180-versal.conf | |||
@@ -13,8 +13,6 @@ UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | |||
13 | SERIAL_CONSOLE = "115200 ttyAMA0" | 13 | SERIAL_CONSOLE = "115200 ttyAMA0" |
14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | 14 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" |
15 | 15 | ||
16 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
17 | |||
18 | EXTRA_IMAGEDEPENDS += " \ | 16 | EXTRA_IMAGEDEPENDS += " \ |
19 | arm-trusted-firmware \ | 17 | arm-trusted-firmware \ |
20 | virtual/boot-bin \ | 18 | virtual/boot-bin \ |
diff --git a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf index cd23a9d9..c29a2c86 100644 --- a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf | |||
@@ -36,8 +36,6 @@ IMAGE_BOOT_FILES += " \ | |||
36 | boot.scr \ | 36 | boot.scr \ |
37 | " | 37 | " |
38 | 38 | ||
39 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
40 | # Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine | ||
41 | QB_MEM = "-m 1024" | 39 | QB_MEM = "-m 1024" |
42 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" | 40 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
43 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" | 41 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
@@ -47,10 +45,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" | |||
47 | QB_DTB = "system.dtb" | 45 | QB_DTB = "system.dtb" |
48 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | 46 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" |
49 | 47 | ||
50 | # Xilinx's fork of QEMU has much better results, so let's default to that | ||
51 | # Use qemu-xilinx instead of mainline | ||
52 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
53 | |||
54 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) | 48 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
55 | QB_OPT_APPEND = " \ | 49 | QB_OPT_APPEND = " \ |
56 | -nographic -serial null -serial mon:stdio \ | 50 | -nographic -serial null -serial mon:stdio \ |
diff --git a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf index 5273a66b..5037b798 100644 --- a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf +++ b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf | |||
@@ -36,8 +36,6 @@ IMAGE_BOOT_FILES += " \ | |||
36 | boot.scr \ | 36 | boot.scr \ |
37 | " | 37 | " |
38 | 38 | ||
39 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
40 | # Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine | ||
41 | QB_MEM = "-m 1024" | 39 | QB_MEM = "-m 1024" |
42 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" | 40 | QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" |
43 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" | 41 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" |
@@ -47,10 +45,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot" | |||
47 | QB_DTB = "system.dtb" | 45 | QB_DTB = "system.dtb" |
48 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | 46 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" |
49 | 47 | ||
50 | # Xilinx's fork of QEMU has much better results, so let's default to that | ||
51 | # Use qemu-xilinx instead of mainline | ||
52 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
53 | |||
54 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) | 48 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
55 | QB_OPT_APPEND = " \ | 49 | QB_OPT_APPEND = " \ |
56 | -nographic -serial null -serial mon:stdio \ | 50 | -nographic -serial null -serial mon:stdio \ |
diff --git a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf index 8fda6bbd..ecf85589 100644 --- a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf +++ b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf | |||
@@ -38,15 +38,11 @@ IMAGE_BOOT_FILES += " \ | |||
38 | " | 38 | " |
39 | 39 | ||
40 | # This machine has a QEMU model, runqemu setup: | 40 | # This machine has a QEMU model, runqemu setup: |
41 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
42 | QB_MACHINE = "-machine xlnx-zcu102" | 41 | QB_MACHINE = "-machine xlnx-zcu102" |
43 | QB_MEM = "-m 4096" | 42 | QB_MEM = "-m 4096" |
44 | QB_OPT_APPEND ?= "-nographic -serial mon:stdio -serial null" | 43 | QB_OPT_APPEND ?= "-nographic -serial mon:stdio -serial null" |
45 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" | 44 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" |
46 | 45 | ||
47 | # Use qemu-xilinx instead of mainline | ||
48 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
49 | |||
50 | # Use the multiarch script instead of launching QEMU directly | 46 | # Use the multiarch script instead of launching QEMU directly |
51 | QB_SYSTEM_NAME_append = "-multiarch" | 47 | QB_SYSTEM_NAME_append = "-multiarch" |
52 | 48 | ||
diff --git a/meta-xilinx-bsp/conf/machine/zynq-generic.conf b/meta-xilinx-bsp/conf/machine/zynq-generic.conf index 3f2d3f5e..a8a94330 100644 --- a/meta-xilinx-bsp/conf/machine/zynq-generic.conf +++ b/meta-xilinx-bsp/conf/machine/zynq-generic.conf | |||
@@ -8,6 +8,4 @@ require conf/machine/include/machine-xilinx-qemu.inc | |||
8 | 8 | ||
9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" | 9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" |
10 | 10 | ||
11 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
12 | |||
13 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 11 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" |
diff --git a/meta-xilinx-bsp/conf/machine/zynqmp-generic.conf b/meta-xilinx-bsp/conf/machine/zynqmp-generic.conf index 3cc3d641..7bf72212 100644 --- a/meta-xilinx-bsp/conf/machine/zynqmp-generic.conf +++ b/meta-xilinx-bsp/conf/machine/zynqmp-generic.conf | |||
@@ -8,7 +8,5 @@ require conf/machine/include/machine-xilinx-qemu.inc | |||
8 | 8 | ||
9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" | 9 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" |
10 | 10 | ||
11 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
12 | |||
13 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 11 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" |
14 | 12 | ||