mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/qemu: add OpenGL config
Acked-by: Arnout Vandecappelle <arnout@rnout.be> Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
committed by
Romain Naour
parent
76d4a9b297
commit
4c370d3d8f
@@ -112,6 +112,20 @@ config BR2_PACKAGE_QEMU_SDL
|
||||
Say 'y' to enable the SDL frontend, that is, a graphical
|
||||
window presenting the VM's display.
|
||||
|
||||
config BR2_PACKAGE_QEMU_OPENGL
|
||||
bool "Enable OpenGL"
|
||||
depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
|
||||
select BR2_PACKAGE_LIBEPOXY
|
||||
help
|
||||
Say 'y' to enable OpenGL accelerated display frontend support.
|
||||
This is necessary to efficiently display frames rendered in a
|
||||
guest on the host.
|
||||
|
||||
Run qemu with `-display sdl,gl=on`
|
||||
|
||||
comment "OpenGL support needs an OpenGL and/or OpenGL EGL backend"
|
||||
depends on !(BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
|
||||
|
||||
config BR2_PACKAGE_QEMU_FDT
|
||||
bool "Enable FDT"
|
||||
select BR2_PACKAGE_DTC
|
||||
|
||||
@@ -272,6 +272,13 @@ else
|
||||
QEMU_OPTS += --disable-usb-redir
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QEMU_OPENGL),y)
|
||||
QEMU_OPTS += --enable-opengl
|
||||
QEMU_DEPENDENCIES += libepoxy
|
||||
else
|
||||
QEMU_OPTS += --disable-opengl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
QEMU_OPTS += --static
|
||||
endif
|
||||
@@ -329,7 +336,6 @@ define QEMU_CONFIGURE_CMDS
|
||||
--disable-membarrier \
|
||||
--disable-mpath \
|
||||
--disable-netmap \
|
||||
--disable-opengl \
|
||||
--disable-oss \
|
||||
--disable-pa \
|
||||
--disable-plugins \
|
||||
|
||||
Reference in New Issue
Block a user