summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-03-10 11:19:40 -0700
committerMark Hatle <mark.hatle@xilinx.com>2020-03-17 07:57:27 -0700
commite62aac4ae1ebb3948be18b8da8f024cb7d7a9d7d (patch)
treef8bc52479e7f9c914d65b0faa9455da884266944
parent6d713802333bffac22575a563852f92fc360f4ff (diff)
downloadmeta-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>
-rw-r--r--meta-xilinx-bsp/conf/machine/include/machine-xilinx-qemu.inc8
-rw-r--r--meta-xilinx-bsp/conf/machine/ml605-qemu-microblazeel.conf1
-rw-r--r--meta-xilinx-bsp/conf/machine/qemu-zynq7.conf6
-rw-r--r--meta-xilinx-bsp/conf/machine/s3adsp1800-qemu-microblazeeb.conf1
-rw-r--r--meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf3
-rw-r--r--meta-xilinx-bsp/conf/machine/vck190-versal.conf3
-rw-r--r--meta-xilinx-bsp/conf/machine/versal-generic.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/vmk180-versal.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zc702-zynq7.conf6
-rw-r--r--meta-xilinx-bsp/conf/machine/zc706-zynq7.conf6
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf4
-rw-r--r--meta-xilinx-bsp/conf/machine/zynq-generic.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zynqmp-generic.conf2
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
5IMAGE_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
5EXTRA_IMAGEDEPENDS += "qemu-helper-native" 8EXTRA_IMAGEDEPENDS += "qemu-xilinx-helper-native"
9
10PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
11PREFERRED_PROVIDER_qemu = "qemu-xilinx"
6 12
7def qemu_default_dtb(d): 13def 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"
19FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" 19FILESOVERRIDES_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:
22IMAGE_CLASSES += "qemuboot"
23QB_MEM = "-m 256" 22QB_MEM = "-m 256"
24QB_MACHINE = "-machine petalogix-ml605" 23QB_MACHINE = "-machine petalogix-ml605"
25QB_OPT_APPEND = "-nographic -serial mon:stdio" 24QB_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
18FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" 18FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm"
19 19
20IMAGE_CLASSES += "qemuboot-xilinx"
21
22QB_MEM = "-m 1024" 20QB_MEM = "-m 1024"
23QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" 21QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
24QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" 22QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
@@ -28,10 +26,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
28QB_DTB = "system.dtb" 26QB_DTB = "system.dtb"
29QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" 27QB_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
33PREFERRED_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)
36QB_OPT_APPEND = " \ 30QB_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"
16KERNEL_IMAGETYPE ?= "linux.bin.ub" 16KERNEL_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:
19IMAGE_CLASSES += "qemuboot"
20QB_MEM = "-m 256" 19QB_MEM = "-m 256"
21QB_MACHINE = "-machine petalogix-s3adsp1800" 20QB_MACHINE = "-machine petalogix-s3adsp1800"
22QB_OPT_APPEND = "-nographic -serial mon:stdio" 21QB_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"
13SERIAL_CONSOLE = "115200 ttyAMA0" 13SERIAL_CONSOLE = "115200 ttyAMA0"
14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" 14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
15 15
16PREFERRED_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
19IMAGE_CLASSES += "image-types-xilinx-qemu" 17IMAGE_CLASSES += "image-types-xilinx-qemu"
20IMAGE_FSTYPES += "wic.qemu-sd" 18IMAGE_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:
41IMAGE_CLASSES += "qemuboot-xilinx"
42QB_MACHINE = "-M arm-generic-fdt" 39QB_MACHINE = "-M arm-generic-fdt"
43QB_MEM = "-m 4096" 40QB_MEM = "-m 4096"
44QB_DEFAULT_KERNEL = "none" 41QB_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"
13SERIAL_CONSOLE = "115200 ttyAMA0" 13SERIAL_CONSOLE = "115200 ttyAMA0"
14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" 14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
15 15
16PREFERRED_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
19IMAGE_CLASSES += "image-types-xilinx-qemu" 17IMAGE_CLASSES += "image-types-xilinx-qemu"
20IMAGE_FSTYPES += "wic.qemu-sd" 18IMAGE_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:
47IMAGE_CLASSES += "qemuboot-xilinx"
48QB_MACHINE = "-M arm-generic-fdt" 45QB_MACHINE = "-M arm-generic-fdt"
49QB_MEM = "-m 4096" 46QB_MEM = "-m 4096"
50QB_DEFAULT_KERNEL = "none" 47QB_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
9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" 9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost"
10 10
11PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
12
13EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 11EXTRA_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"
13SERIAL_CONSOLE = "115200 ttyAMA0" 13SERIAL_CONSOLE = "115200 ttyAMA0"
14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" 14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
15 15
16PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
17
18EXTRA_IMAGEDEPENDS += " \ 16EXTRA_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
39IMAGE_CLASSES += "qemuboot-xilinx"
40# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
41QB_MEM = "-m 1024" 39QB_MEM = "-m 1024"
42QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" 40QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
43QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" 41QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
@@ -47,10 +45,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
47QB_DTB = "system.dtb" 45QB_DTB = "system.dtb"
48QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" 46QB_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
52PREFERRED_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)
55QB_OPT_APPEND = " \ 49QB_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
39IMAGE_CLASSES += "qemuboot-xilinx"
40# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
41QB_MEM = "-m 1024" 39QB_MEM = "-m 1024"
42QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic" 40QB_NETWORK_DEVICE = "-net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -net nic"
43QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage" 41QB_DEFAULT_KERNEL_qemuboot-xilinx = "zImage"
@@ -47,10 +45,6 @@ QB_DEFAULT_FSTYPE = "cpio.gz.u-boot"
47QB_DTB = "system.dtb" 45QB_DTB = "system.dtb"
48QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" 46QB_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
52PREFERRED_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)
55QB_OPT_APPEND = " \ 49QB_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:
41IMAGE_CLASSES += "qemuboot-xilinx"
42QB_MACHINE = "-machine xlnx-zcu102" 41QB_MACHINE = "-machine xlnx-zcu102"
43QB_MEM = "-m 4096" 42QB_MEM = "-m 4096"
44QB_OPT_APPEND ?= "-nographic -serial mon:stdio -serial null" 43QB_OPT_APPEND ?= "-nographic -serial mon:stdio -serial null"
45QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" 44QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@"
46 45
47# Use qemu-xilinx instead of mainline
48PREFERRED_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
51QB_SYSTEM_NAME_append = "-multiarch" 47QB_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
9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget" 9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost usbgadget"
10 10
11PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
12
13EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 11EXTRA_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
9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" 9MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost"
10 10
11PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native"
12
13EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 11EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native"
14 12