blob: f2434a4b5f56ea5574c066c820870be30e8b6cfc [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#@TYPE: Machine
Brad Bishop19323692019-04-05 15:28:33 -04002#@NAME: QEMU x86 machine
3#@DESCRIPTION: Machine configuration for running an x86 system on QEMU
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
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
Brad Bishopc342db32019-05-15 21:57:59 -040011DEFAULTTUNE ?= "i586"
12X86ARCH32 ?= "i586"
13require conf/machine/include/tune-corei7.inc
Patrick Williamsc0f7c042017-02-23 20:41:17 -060014require conf/machine/include/qemuboot-x86.inc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016UBOOT_MACHINE ?= "qemu-x86_defconfig"
17
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018KERNEL_IMAGETYPE = "bzImage"
19
Brad Bishop37a0e4d2017-12-04 01:01:44 -050020SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
22XSERVER = "xserver-xorg \
Patrick Williamsf1e5d692016-03-30 15:21:19 -050023 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 xf86-video-cirrus \
25 xf86-video-fbdev \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026 xf86-video-vmware \
27 xf86-video-modesetting \
28 xserver-xorg-module-libint10 \
29 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031MACHINE_FEATURES += "x86 pci"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
33MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
Brad Bishop37a0e4d2017-12-04 01:01:44 -050034
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080035MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
36
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037KERNEL_MODULE_AUTOLOAD += "uvesafb"
38KERNEL_MODULE_PROBECONF += "uvesafb"
39module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}"
40
Brad Bishopd5ae7d92018-06-14 09:52:03 -070041WKS_FILE ?= "qemux86-directdisk.wks"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050042do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"