Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #@TYPE: Machine |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | #@NAME: QEMU x86-64 machine |
| 3 | #@DESCRIPTION: Machine configuration for running an x86-64 system on QEMU |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
| 5 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" |
| 6 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa" |
| 7 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" |
| 8 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 9 | PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | require conf/machine/include/qemu.inc |
| 12 | DEFAULTTUNE ?= "core2-64" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 13 | require conf/machine/include/x86/tune-core2.inc |
| 14 | require conf/machine/include/x86/qemuboot-x86.inc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | UBOOT_MACHINE ?= "qemu-x86_64_defconfig" |
| 17 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | KERNEL_IMAGETYPE = "bzImage" |
| 19 | |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame] | 20 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 22 | # Install swrast and glx if opengl is in DISTRO_FEATURES and x32 is not in use. |
| 23 | # This is because gallium swrast driver was found to crash X server on startup in qemu x32. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | XSERVER = "xserver-xorg \ |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 25 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \ |
| 26 | bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'mesa-driver-swrast xserver-xorg-extension-glx', d), '', d)} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | xf86-video-cirrus \ |
| 28 | xf86-video-fbdev \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 29 | xf86-video-vmware \ |
| 30 | xf86-video-modesetting \ |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 31 | xf86-video-vesa \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 32 | xserver-xorg-module-libint10 \ |
| 33 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | MACHINE_FEATURES += "x86 pci" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | |
| 37 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame] | 38 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 39 | MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" |
| 40 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 41 | WKS_FILE ?= "qemux86-directdisk.wks" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 43 | |
| 44 | #For runqemu |
| 45 | QB_SYSTEM_NAME = "qemu-system-x86_64" |