Files
infix/qemu/Config.in
T
Tobias Waldekranz e7112ca0c9 qemu: Support mounting host filesystem inside guest
This is mounted at /mnt/host in the guest. By default the images
directory is mounted.
2023-03-13 13:53:12 +01:00

125 lines
2.2 KiB
Plaintext

comment "System setup"
choice
prompt "Loader"
default QEMU_LOADER_KERNEL
config QEMU_LOADER_KERNEL
bool "Kernel"
config QEMU_LOADER_UBOOT
bool "U-Boot"
depends on BR2_aarch64
config QEMU_LOADER_OVMF
bool "OVMF (UEFI)"
depends on BR2_x86_64
endchoice
choice
prompt "Rootfs type"
default QEMU_ROOTFS_INITRD
config QEMU_ROOTFS_MMC
bool "MMC"
config QEMU_ROOTFS_INITRD
bool "Initrd"
config QEMU_ROOTFS_VSCSI
bool "Virtio SCSI"
endchoice
config QEMU_MACHINE
string
default "qemu-system-aarch64 -M virt -cpu cortex-a72 -m 256M" if BR2_aarch64
default "qemu-system-x86_64 -M q35,accel=kvm -cpu host -m 512M" if BR2_x86_64
config QEMU_KERNEL
string
depends on QEMU_LOADER_KERNEL
default "images/Image" if BR2_aarch64
default "images/bzImage" if BR2_x86_64
config QEMU_BIOS
string
depends on !QEMU_LOADER_KERNEL
default "images/u-boot.bin" if QEMU_LOADER_UBOOT
default "images/OVMF.fd" if QEMU_LOADER_OVMF
config QEMU_ROOTFS
string
default "images/disk.img" if !QEMU_ROOTFS_INITRD
default "images/rootfs.squashfs" if QEMU_ROOTFS_INITRD
config QEMU_CONSOLE
string
depends on !QEMU_ROOTFS_MMC
default "ttyAMA0" if BR2_aarch64
default "ttyS0" if BR2_x86_64
config QEMU_DTB_EXTEND
bool
depends on QEMU_LOADER_UBOOT
default y if BR2_aarch64
config QEMU_RW
string "Writable layer"
depends on QEMU_ROOTFS_INITRD
default "images/cfg.ext4"
config QEMU_HOST
string "Export host filesystem path"
default "images"
config QEMU_APPEND
string "Extra kernel options"
depends on !QEMU_ROOTFS_MMC
config QEMU_EXTRA
string "Extra QEMU options"
comment "Networking"
choice
prompt "Mode"
default QEMU_NET_USER
config QEMU_NET_NONE
bool "None"
config QEMU_NET_BRIDGE
bool "Bridged"
config QEMU_NET_USER
bool "User"
config QEMU_NET_TAP
bool "TAP"
endchoice
config QEMU_NET_MODEL
string "Interface model"
default "virtio"
config QEMU_NET_BRIDGE_DEV
string "Bridge device"
depends on QEMU_NET_BRIDGE
default "virbr0"
config QEMU_NET_USER_OPTS
string "User mode options"
depends on QEMU_NET_USER
help
Extra -nic user,<OPTIONS>
config QEMU_NET_TAP_N
int "Number of TAPs"
depends on QEMU_NET_TAP
default 1