diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/include/machine-xilinx-qemu.inc | 39 | ||||
-rw-r--r-- | conf/machine/ml605-qemu-microblazeel.conf | 1 | ||||
-rw-r--r-- | conf/machine/qemu-zynq7.conf | 1 | ||||
-rw-r--r-- | conf/machine/s3adsp1800-qemu-microblazeeb.conf | 1 | ||||
-rw-r--r-- | conf/machine/zcu102-zynqmp.conf | 8 |
5 files changed, 14 insertions, 36 deletions
diff --git a/conf/machine/include/machine-xilinx-qemu.inc b/conf/machine/include/machine-xilinx-qemu.inc index 2701df20..938d76d4 100644 --- a/conf/machine/include/machine-xilinx-qemu.inc +++ b/conf/machine/include/machine-xilinx-qemu.inc | |||
@@ -1,4 +1,8 @@ | |||
1 | EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" | 1 | # This include is used to setup default QEMU and qemuboot config for meta-xilinx |
2 | # machines. | ||
3 | |||
4 | # depend on qemu-helper-native, which will depend on QEMU | ||
5 | EXTRA_IMAGEDEPENDS += "qemu-helper-native" | ||
2 | 6 | ||
3 | def qemu_default_dtb(d): | 7 | def qemu_default_dtb(d): |
4 | if d.getVar("IMAGE_BOOT_FILES", True): | 8 | if d.getVar("IMAGE_BOOT_FILES", True): |
@@ -30,42 +34,11 @@ def qemu_target_binary(d): | |||
30 | ta = "microblaze" | 34 | ta = "microblaze" |
31 | elif ta == "arm": | 35 | elif ta == "arm": |
32 | ta = "aarch64" | 36 | ta = "aarch64" |
33 | if qemuboot_xilinx_enabled(d): | ||
34 | return "qemu-xilinx/qemu-system-%s" % ta | ||
35 | return "qemu-system-%s" % ta | 37 | return "qemu-system-%s" % ta |
36 | 38 | ||
37 | def qemuboot_xilinx_enabled(d): | 39 | # For qemuboot, default setup across all machines in meta-xilinx |
38 | if bb.utils.contains("MACHINE_FEATURES", "qemu-system-xilinx", True, False, d): | ||
39 | if d.getVar("XILINX_QEMUBOOT", True) == "1": | ||
40 | return True | ||
41 | return False | ||
42 | |||
43 | # For runqemu, default setup across all machines in meta-xilinx | ||
44 | IMAGE_CLASSES += "qemuboot" | ||
45 | QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}" | 40 | QB_SYSTEM_NAME ?= "${@qemu_target_binary(d)}" |
46 | QB_DEFAULT_FSTYPE ?= "cpio" | 41 | QB_DEFAULT_FSTYPE ?= "cpio" |
47 | |||
48 | XILINX_QEMUBOOT[doc] = "Set this variable to '1' to enable the generation of qemuboot.conf which uses the Xilinx QEMU." | ||
49 | XILINX_QEMUBOOT ??= "" | ||
50 | |||
51 | # Dependencies for native Xilinx QEMU | ||
52 | XILINX_QEMU_DEPENDS ?= "qemu-xilinx-native" | ||
53 | # If the machine supports the Xilinx QEMU, add the dependencies | ||
54 | EXTRA_IMAGEDEPENDS += "${@bb.utils.contains('MACHINE_FEATURES', 'qemu-system-xilinx', '${XILINX_QEMU_DEPENDS}', '', d)}" | ||
55 | |||
56 | # Add an override for when booting with the Xilinx QEMU | ||
57 | MACHINEOVERRIDES .= "${@':qemuboot-xilinx' if qemuboot_xilinx_enabled(d) else ''}" | ||
58 | |||
59 | # This is ignored if using Xilinx's QEMU fork | ||
60 | QB_DTB ?= "${@qemu_default_dtb(d)}" | 42 | QB_DTB ?= "${@qemu_default_dtb(d)}" |
61 | |||
62 | # ZynqMP machines need special "-hw-dtb" device trees for the Xilinx QEMU | ||
63 | XILINX_QEMU_DEPENDS_append_zynqmp = " qemu-devicetrees" | ||
64 | |||
65 | QB_DEFAULT_KERNEL_qemuboot-xilinx = "none" | ||
66 | QB_KERNEL_CMDLINE_APPEND ?= "${@qemu_default_serial(d)}" | 43 | QB_KERNEL_CMDLINE_APPEND ?= "${@qemu_default_serial(d)}" |
67 | 44 | ||
68 | # Default machine targets for Xilinx QEMU (FDT Generic) | ||
69 | QB_MACHINE_qemuboot-xilinx_aarch64 = "-machine arm-generic-fdt" | ||
70 | QB_MACHINE_qemuboot-xilinx_arm = "-machine arm-generic-fdt-plnx" | ||
71 | QB_MACHINE_qemuboot-xilinx_microblaze = "-machine microblaze-generic-fdt" | ||
diff --git a/conf/machine/ml605-qemu-microblazeel.conf b/conf/machine/ml605-qemu-microblazeel.conf index a0ef7d3e..731f26f3 100644 --- a/conf/machine/ml605-qemu-microblazeel.conf +++ b/conf/machine/ml605-qemu-microblazeel.conf | |||
@@ -17,6 +17,7 @@ SERIAL_CONSOLE = "115200 ttyS0" | |||
17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
18 | 18 | ||
19 | # This machine is a targeting a QEMU model, runqemu setup: | 19 | # This machine is a targeting a QEMU model, runqemu setup: |
20 | IMAGE_CLASSES += "qemuboot" | ||
20 | QB_MEM = "-m 256" | 21 | QB_MEM = "-m 256" |
21 | QB_MACHINE = "-machine petalogix-ml605" | 22 | QB_MACHINE = "-machine petalogix-ml605" |
22 | QB_OPT_APPEND = "-nographic -serial mon:stdio" | 23 | QB_OPT_APPEND = "-nographic -serial mon:stdio" |
diff --git a/conf/machine/qemu-zynq7.conf b/conf/machine/qemu-zynq7.conf index 6073211c..0fe99e27 100644 --- a/conf/machine/qemu-zynq7.conf +++ b/conf/machine/qemu-zynq7.conf | |||
@@ -17,6 +17,7 @@ IMAGE_BOOT_FILES += "${MACHINE}.dtb" | |||
17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
18 | 18 | ||
19 | # This machine is a targeting a QEMU model, runqemu setup: | 19 | # This machine is a targeting a QEMU model, runqemu setup: |
20 | IMAGE_CLASSES += "qemuboot" | ||
20 | QB_MEM = "-m 1024" | 21 | QB_MEM = "-m 1024" |
21 | QB_MACHINE = "-machine xilinx-zynq-a9" | 22 | QB_MACHINE = "-machine xilinx-zynq-a9" |
22 | QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" | 23 | QB_OPT_APPEND = "-nographic -serial null -serial mon:stdio" |
diff --git a/conf/machine/s3adsp1800-qemu-microblazeeb.conf b/conf/machine/s3adsp1800-qemu-microblazeeb.conf index 2577faab..16bf4d46 100644 --- a/conf/machine/s3adsp1800-qemu-microblazeeb.conf +++ b/conf/machine/s3adsp1800-qemu-microblazeeb.conf | |||
@@ -16,6 +16,7 @@ SERIAL_CONSOLE = "115200 ttyUL0" | |||
16 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS_remove = "device-tree" | 16 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS_remove = "device-tree" |
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" | ||
19 | QB_MEM = "-m 256" | 20 | QB_MEM = "-m 256" |
20 | QB_MACHINE = "-machine petalogix-s3adsp1800" | 21 | QB_MACHINE = "-machine petalogix-s3adsp1800" |
21 | QB_OPT_APPEND = "-nographic -serial mon:stdio" | 22 | QB_OPT_APPEND = "-nographic -serial mon:stdio" |
diff --git a/conf/machine/zcu102-zynqmp.conf b/conf/machine/zcu102-zynqmp.conf index c55b536c..2e3c1367 100644 --- a/conf/machine/zcu102-zynqmp.conf +++ b/conf/machine/zcu102-zynqmp.conf | |||
@@ -7,7 +7,7 @@ require conf/machine/include/machine-xilinx-default.inc | |||
7 | require conf/machine/include/machine-xilinx-board.inc | 7 | require conf/machine/include/machine-xilinx-board.inc |
8 | require conf/machine/include/machine-xilinx-qemu.inc | 8 | require conf/machine/include/machine-xilinx-qemu.inc |
9 | 9 | ||
10 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali qemu-system-xilinx" | 10 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost mali" |
11 | 11 | ||
12 | UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig" | 12 | UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig" |
13 | 13 | ||
@@ -20,16 +20,18 @@ PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | |||
20 | 20 | ||
21 | EXTRA_IMAGEDEPENDS += "\ | 21 | EXTRA_IMAGEDEPENDS += "\ |
22 | arm-trusted-firmware \ | 22 | arm-trusted-firmware \ |
23 | qemu-devicetrees \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | # This machine has a QEMU model, runqemu setup: | 26 | # This machine has a QEMU model, runqemu setup: |
27 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
26 | QB_MACHINE = "-machine xlnx-zcu102" | 28 | QB_MACHINE = "-machine xlnx-zcu102" |
27 | QB_MEM = "-m 2048" | 29 | QB_MEM = "-m 2048" |
28 | QB_OPT_APPEND = "-nographic -serial mon:stdio -serial null" | 30 | QB_OPT_APPEND = "-nographic -serial mon:stdio -serial null" |
29 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" | 31 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" |
30 | 32 | ||
31 | # Xilinx QEMU options, default to using Xilinx QEMU | 33 | # Use qemu-xilinx instead of mainline |
32 | XILINX_QEMUBOOT ?= "1" | 34 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" |
33 | 35 | ||
34 | # Reset and unhalt CPU0, load the boot media. | 36 | # Reset and unhalt CPU0, load the boot media. |
35 | QB_OPT_APPEND_append_qemuboot-xilinx = " \ | 37 | QB_OPT_APPEND_append_qemuboot-xilinx = " \ |