1#@TYPE: Machine
2#@NAME: QEMU x86 machine
3#@DESCRIPTION: Machine configuration for running an x86 system on QEMU
4
5PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
6PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
7PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
8PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
9
10require conf/machine/include/qemu.inc
11DEFAULTTUNE ?= "core2-32"
12require conf/machine/include/tune-corei7.inc
13require conf/machine/include/qemuboot-x86.inc
14
15UBOOT_MACHINE ?= "qemu-x86_defconfig"
16
17KERNEL_IMAGETYPE = "bzImage"
18
19SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
20
21XSERVER = "xserver-xorg \
22           ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
23           xf86-video-cirrus \
24           xf86-video-fbdev \
25           xf86-video-vmware \
26           xf86-video-modesetting \
27           xserver-xorg-module-libint10 \
28           "
29
30MACHINE_FEATURES += "x86 pci"
31
32MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
33
34MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
35
36KERNEL_MODULE_AUTOLOAD += "uvesafb"
37KERNEL_MODULE_PROBECONF += "uvesafb"
38module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}"
39
40WKS_FILE ?= "qemux86-directdisk.wks"
41do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
42