summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-10-05 02:51:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-10-05 02:51:00 +0200
commit98256e88f8b72e1cc1a5e2763fbe24d53448d14f (patch)
tree78b288d734c691187f8ef5b3284aa795f234e2af
parentffd8a569156804923c99b4370e7b63efc65bd319 (diff)
qemu: add virtio GPU support
-rw-r--r--target/config/Config.in.qemuopts18
-rw-r--r--target/linux/config/Config.in.virtio14
2 files changed, 32 insertions, 0 deletions
diff --git a/target/config/Config.in.qemuopts b/target/config/Config.in.qemuopts
index d2bc23139..6cfb132eb 100644
--- a/target/config/Config.in.qemuopts
+++ b/target/config/Config.in.qemuopts
@@ -4,6 +4,7 @@
config ADK_QEMU_ARGS
string
default "-vga std" if ADK_TARGET_QEMU_WITH_GRAPHIC
+ default "-device virtio-vga-gl -display sdl,gl=on" if ADK_TARGET_QEMU_WITH_VIRTIO_GRAPHIC
default "-nographic"
config ADK_TARGET_QEMU_WITH_BLOCK
@@ -78,6 +79,23 @@ config ADK_TARGET_QEMU_WITH_GRAPHIC
select ADK_LINUX_KERNEL_USB_HID if ADK_TARGET_SYSTEM_QEMU_SH
select ADK_LINUX_KERNEL_USB_OHCI_HCD_PLATFORM if ADK_TARGET_SYSTEM_QEMU_SH
+config ADK_TARGET_QEMU_WITH_VIRTIO_GRAPHIC
+ bool "virtio enabled"
+ select ADK_TARGET_WITH_VGA
+ select ADK_LINUX_KERNEL_DRM_VIRTIO_GPU
+ select ADK_LINUX_KERNEL_VT
+ select ADK_LINUX_KERNEL_VT_CONSOLE
+ select ADK_LINUX_KERNEL_FB
+ select ADK_LINUX_KERNEL_FRAMEBUFFER_CONSOLE
+ select ADK_LINUX_KERNEL_FONTS
+ select ADK_LINUX_KERNEL_FONT_8x16
+ select ADK_LINUX_KERNEL_KEYBOARD_ATKBD if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
+ select ADK_LINUX_KERNEL_MOUSE_PS2 if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
+ select ADK_LINUX_KERNEL_INPUT
+ select ADK_LINUX_KERNEL_INPUT_KEYBOARD
+ select ADK_LINUX_KERNEL_INPUT_MOUSE
+ select ADK_LINUX_KERNEL_INPUT_MOUSEDEV
+
endchoice
choice
diff --git a/target/linux/config/Config.in.virtio b/target/linux/config/Config.in.virtio
index 053b2465c..65b6d31b8 100644
--- a/target/linux/config/Config.in.virtio
+++ b/target/linux/config/Config.in.virtio
@@ -4,6 +4,12 @@
menu "Virtio driver support"
depends on ADK_TARGET_WITH_VIRTIO || ADK_TARGET_QEMU
+config ADK_LINUX_KERNEL_DRM_FBDEV_EMULATION
+ bool
+
+config ADK_LINUX_KERNEL_DRM_VIRTIO_GPU_KMS
+ bool
+
config ADK_LINUX_KERNEL_VIRTIO_MENU
bool
@@ -70,4 +76,12 @@ config ADK_LINUX_KERNEL_VIRTIO_BLK
help
Enables support for Virtio Block driver.
+config ADK_LINUX_KERNEL_DRM_VIRTIO_GPU
+ tristate "Virtio GPU support"
+ select ADK_LINUX_KERNEL_DRM_VIRTIO_GPU_KMS
+ select ADK_LINUX_KERNEL_DRM_FBDEV_EMULATION
+ default n
+ help
+ Enables support for Virtio GPU driver.
+
endmenu