mirror of
https://git.yoctoproject.org/poky
synced 2026-02-14 20:53:03 +01:00
The modesetting driver works well in qemu, so install it by default. The plain framebuffer has been buggy in recent 6.4 kernels, a sign that it's not getting much testing. The Xorg modesetting driver that can use more powerful virtualised hardware is much better. We override the default XSERVER because we want to pull in the GLX extension to exercise that. (From OE-Core rev: 7b5fc42488a514bf51d49ee5274731c6432efd1b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
|
|
PREFERRED_PROVIDER_virtual/egl ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa"
|
|
|
|
XSERVER ?= "xserver-xorg \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
|
|
xf86-video-fbdev \
|
|
xf86-video-modesetting \
|
|
"
|
|
|
|
MACHINE_FEATURES = "alsa bluetooth usbgadget screen vfat"
|
|
|
|
MACHINEOVERRIDES =. "qemuall:"
|
|
|
|
IMAGE_FSTYPES += "tar.bz2 ext4"
|
|
|
|
# Don't include kernels in standard images
|
|
RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
|
|
|
# Use a common kernel recipe for all QEMU machines
|
|
PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto"
|
|
|
|
EXTRA_IMAGEDEPENDS += "qemu-system-native qemu-helper-native:do_addto_recipe_sysroot"
|
|
|
|
# Provide the nfs server kernel module for all qemu images
|
|
KERNEL_FEATURES:append:pn-linux-yocto = " features/nfsd/nfsd-enable.scc"
|
|
KERNEL_FEATURES:append:pn-linux-yocto-rt = " features/nfsd/nfsd-enable.scc"
|
|
|
|
IMAGE_CLASSES += "qemuboot"
|