diff options
| -rw-r--r-- | meta/classes/qemuboot.bbclass | 4 | ||||
| -rw-r--r-- | meta/conf/machine/include/qemuboot-mips.inc | 2 | ||||
| -rw-r--r-- | meta/conf/machine/qemuarm.conf | 4 | ||||
| -rw-r--r-- | meta/conf/machine/qemuarm64.conf | 4 | ||||
| -rwxr-xr-x | scripts/runqemu | 2 |
5 files changed, 10 insertions, 6 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index 4b7532b304..8798ad80e6 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass | |||
| @@ -72,6 +72,9 @@ | |||
| 72 | # Can be used to automatically determine the image from the other variables | 72 | # Can be used to automatically determine the image from the other variables |
| 73 | # but define things link 'bootindex' when booting from EFI or 'readonly' when using squashfs | 73 | # but define things link 'bootindex' when booting from EFI or 'readonly' when using squashfs |
| 74 | # without the need to specify a dedicated qemu configuration | 74 | # without the need to specify a dedicated qemu configuration |
| 75 | # | ||
| 76 | # QB_GRAPHICS: QEMU video card type (e.g. "-vga std") | ||
| 77 | # | ||
| 75 | # Usage: | 78 | # Usage: |
| 76 | # IMAGE_CLASSES += "qemuboot" | 79 | # IMAGE_CLASSES += "qemuboot" |
| 77 | # See "runqemu help" for more info | 80 | # See "runqemu help" for more info |
| @@ -86,6 +89,7 @@ QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" | |||
| 86 | QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" | 89 | QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" |
| 87 | QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0" | 90 | QB_CMDLINE_IP_TAP ?= "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0" |
| 88 | QB_ROOTFS_EXTRA_OPT ?= "" | 91 | QB_ROOTFS_EXTRA_OPT ?= "" |
| 92 | QB_GRAPHICS ?= "" | ||
| 89 | 93 | ||
| 90 | # This should be kept align with ROOT_VM | 94 | # This should be kept align with ROOT_VM |
| 91 | QB_DRIVE_TYPE ?= "/dev/sd" | 95 | QB_DRIVE_TYPE ?= "/dev/sd" |
diff --git a/meta/conf/machine/include/qemuboot-mips.inc b/meta/conf/machine/include/qemuboot-mips.inc index 230f032c53..4954f3068c 100644 --- a/meta/conf/machine/include/qemuboot-mips.inc +++ b/meta/conf/machine/include/qemuboot-mips.inc | |||
| @@ -5,4 +5,4 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty" | |||
| 5 | QB_OPT_APPEND = "-usb -device usb-tablet" | 5 | QB_OPT_APPEND = "-usb -device usb-tablet" |
| 6 | 6 | ||
| 7 | # For graphics to work we need to define the VGA device as well as the necessary USB devices | 7 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
| 8 | QB_OPT_APPEND += "-vga std" | 8 | QB_GRAPHICS = "-vga std" |
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf index 257cfa3e63..37dae8c863 100644 --- a/meta/conf/machine/qemuarm.conf +++ b/meta/conf/machine/qemuarm.conf | |||
| @@ -19,8 +19,8 @@ QB_CPU = "-cpu cortex-a15" | |||
| 19 | # Standard Serial console | 19 | # Standard Serial console |
| 20 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 vmalloc=256" | 20 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 vmalloc=256" |
| 21 | # For graphics to work we need to define the VGA device as well as the necessary USB devices | 21 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
| 22 | QB_OPT_APPEND = "-device VGA,edid=on" | 22 | QB_GRAPHICS = "-device VGA,edid=on" |
| 23 | QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" | 23 | QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" |
| 24 | # Virtio Networking support | 24 | # Virtio Networking support |
| 25 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" | 25 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |
| 26 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" | 26 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" |
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf index 2f61eb0aed..05fd1f749b 100644 --- a/meta/conf/machine/qemuarm64.conf +++ b/meta/conf/machine/qemuarm64.conf | |||
| @@ -20,8 +20,8 @@ QB_CPU_KVM = "-cpu host -machine gic-version=3" | |||
| 20 | # Standard Serial console | 20 | # Standard Serial console |
| 21 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0" | 21 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0" |
| 22 | # For graphics to work we need to define the VGA device as well as the necessary USB devices | 22 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
| 23 | QB_OPT_APPEND = "-device VGA,edid=on" | 23 | QB_GRAPHICS = "-device VGA,edid=on" |
| 24 | QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" | 24 | QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" |
| 25 | # Virtio Networking support | 25 | # Virtio Networking support |
| 26 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" | 26 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |
| 27 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" | 27 | QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" |
diff --git a/scripts/runqemu b/scripts/runqemu index cf64ca149c..4c8358e9de 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1341,7 +1341,7 @@ class BaseConfig(object): | |||
| 1341 | if not os.access(qemu_bin, os.X_OK): | 1341 | if not os.access(qemu_bin, os.X_OK): |
| 1342 | raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin) | 1342 | raise OEPathError("No QEMU binary '%s' could be found" % qemu_bin) |
| 1343 | 1343 | ||
| 1344 | self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('QB_RNG'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) | 1344 | self.qemu_opt = "%s %s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.get('QB_RNG'), self.get('QB_GRAPHICS'), self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) |
| 1345 | 1345 | ||
| 1346 | for ovmf in self.ovmf_bios: | 1346 | for ovmf in self.ovmf_bios: |
| 1347 | format = ovmf.rsplit('.', 1)[-1] | 1347 | format = ovmf.rsplit('.', 1)[-1] |
