blob: 14873a3b4f23753455a6403356302bbfb1178ad3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#@TYPE: Machine
Brad Bishop19323692019-04-05 15:28:33 -04002#@NAME: QEMU x86-64 machine
3#@DESCRIPTION: Machine configuration for running an x86-64 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"
Andrew Geissler595f6302022-01-24 19:11:47 +00009PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11require conf/machine/include/qemu.inc
12DEFAULTTUNE ?= "core2-64"
Andrew Geissler517393d2023-01-13 08:55:19 -060013require conf/machine/include/x86/tune-x86-64-v3.inc
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050014require conf/machine/include/x86/qemuboot-x86.inc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016UBOOT_MACHINE ?= "qemu-x86_64_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
Brad Bishop79641f22019-09-10 07:20:22 -040022# 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 Williamsc124f4f2015-09-15 14:41:29 -050024XSERVER = "xserver-xorg \
Brad Bishop79641f22019-09-10 07:20:22 -040025 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
26 bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'mesa-driver-swrast xserver-xorg-extension-glx', d), '', d)} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 xf86-video-cirrus \
28 xf86-video-fbdev \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029 xf86-video-vmware \
30 xf86-video-modesetting \
Brad Bishop79641f22019-09-10 07:20:22 -040031 xf86-video-vesa \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060032 xserver-xorg-module-libint10 \
33 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035MACHINE_FEATURES += "x86 pci"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036
37MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
Brad Bishop37a0e4d2017-12-04 01:01:44 -050038
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080039MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
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"
Brad Bishop08902b02019-08-20 09:16:51 -040043
44#For runqemu
45QB_SYSTEM_NAME = "qemu-system-x86_64"