include conf/machine/include/x86/x86-base.inc
require conf/machine/include/x86/qemuboot-x86.inc

MACHINE_FEATURES += "wifi efi"

# Add an override that work for all pc image
MACHINEOVERRIDES =. "vm:"

PREFERRED_VERSION_linux-yocto ?= "5.15%"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"

MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"

IMAGE_FSTYPES += "ext4 wic wic.xz wic.bmap wic.vmdk"

WKS_FILE ?= "generic-uefi.wks.in"
do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot"
do_image_wic[recrdeptask] += "do_bootimg"

# CoreOS Specific Machine settings
# ==============================================================================
COREOS_EFI_SECUREBOOT_INSTALL_PUBKEY_IN_EFIDIR = "1"

require conf/machine/include/coreos-generic-features/efi.inc
require conf/machine/include/coreos-generic-features/partitions.inc
