Files
infix/qemu/Config.in
T
Tobias Waldekranz ca1467736f common: Refactor persistent storage setup
In the new model, we have three sources of storage:

- /mnt/var: Mountpoint for a disk with the label "var"
- /mnt/cfg: Mountpoint for a disk with the label "cfg"
- /mnt/tmp: Mountpoint for a ramdisk

These sources are used for the following overlays:

- **/cfg, /home, /root**: /mnt/cfg if available, else /mnt/tmp

- **/etc**: /mnt/cfg if available and the boot/etc finit condition is
            set, else /mnt/tmp

- **/var**: /mnt/var if available, else /mnt/tmp

- **/var/lib**: /mnt/var if available, else /mnt/cfg if available,
                else /mnt/tmp

See board/common/rootfs/lib/infix/mnt for more information.
2023-02-07 15:42:35 +01:00

79 lines
1.5 KiB
Plaintext

config QEMU_MACHINE
string
default "qemu-system-aarch64 -M virt -cpu cortex-a72" if BR2_aarch64
default "qemu-system-x86_64 -M q35,accel=kvm -cpu host -enable-kvm" if BR2_x86_64
config QEMU_KERNEL
string
default "images/Image" if BR2_aarch64
default "images/bzImage" if BR2_x86_64
config QEMU_ROOTFS
string
default "images/rootfs.squashfs" if BR2_TARGET_ROOTFS_SQUASHFS
default "images/rootfs.ext2" if BR2_TARGET_ROOTFS_EXT2
config QEMU_RW
string "Writable layer"
default "images/cfg.ext4"
config QEMU_CONSOLE
string
default "ttyAMA0" if BR2_aarch64
default "ttyS0" if BR2_x86_64
choice
prompt "Rootfs type"
default QEMU_ROOTFS_INITRD
config QEMU_ROOTFS_INITRD
bool "Initrd"
config QEMU_ROOTFS_VSCSI
bool "Virtio SCSI"
endchoice
choice
prompt "Networking"
default QEMU_NET_USER
config QEMU_NET_NONE
bool "None"
config QEMU_NET_BRIDGE
bool "Bridged"
config QEMU_NET_USER
bool "User mode"
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
config QEMU_APPEND
string "Extra kernel options"
config QEMU_EXTRA
string "Extra QEMU options"