asterinas/OSDK.toml

111 lines
2.4 KiB
TOML
Raw Normal View History

2024-05-22 06:04:36 +00:00
# The OSDK manifest at the Asterinas root virtual workspace
# provides default OSDK settings for all packages.
# The common options for build, run and test
2024-04-12 17:08:36 +00:00
[boot]
method = "grub-rescue-iso"
2024-03-22 05:50:45 +00:00
2024-05-22 06:04:36 +00:00
[grub]
protocol = "multiboot2"
[qemu]
2024-11-04 04:03:18 +00:00
args = "$(./tools/qemu_args.sh normal)"
2024-05-22 06:04:36 +00:00
# Special options for running
2024-04-12 17:08:36 +00:00
[run.boot]
kcmd_args = [
"SHELL=/bin/sh",
"LOGNAME=root",
"HOME=/",
"USER=root",
"PATH=/bin:/benchmark",
"init=/usr/bin/busybox",
]
init_args = ["sh", "-l"]
2024-06-28 11:12:24 +00:00
initramfs = "test/build/initramfs.cpio.gz"
2024-05-22 06:04:36 +00:00
# Special options for testing
[test.qemu]
args = "$(./tools/qemu_args.sh test)"
2024-05-22 06:04:36 +00:00
# Other Schemes
2024-04-12 17:08:36 +00:00
[scheme."microvm"]
boot.method = "qemu-direct"
build.strip_elf = true
qemu.args = "$(./tools/qemu_args.sh microvm)"
2024-04-12 17:08:36 +00:00
[scheme."iommu"]
supported_archs = ["x86_64"]
qemu.args = "$(./tools/qemu_args.sh iommu)"
2024-04-12 17:08:36 +00:00
[scheme."tdx"]
supported_archs = ["x86_64"]
build.features = ["cvm_guest"]
2024-04-12 17:08:36 +00:00
boot.method = "grub-qcow2"
2024-07-10 08:49:32 +00:00
grub.boot_protocol = "linux"
qemu.args = "$(./tools/qemu_args.sh tdx)"
2024-09-24 14:14:30 +00:00
[scheme."riscv"]
supported_archs = ["riscv64"]
2024-09-24 14:14:30 +00:00
boot.method = "qemu-direct"
build.strip_elf = false
qemu.args = """\
-cpu rv64,svpbmt=true \
2024-09-24 14:14:30 +00:00
-machine virt \
2025-08-25 11:58:32 +00:00
-m ${MEM-:8G} \
-smp ${SMP-:1} \
2024-09-24 14:14:30 +00:00
--no-reboot \
-nographic \
-display none \
-serial chardev:mux \
-monitor chardev:mux \
-chardev stdio,id=mux,mux=on,signal=off,logfile=qemu.log \
-drive if=none,format=raw,id=x0,file=./test/build/ext2.img \
-drive if=none,format=raw,id=x1,file=./test/build/exfat.img \
-device virtio-blk-device,drive=x0 \
-device virtio-keyboard-device \
-device virtio-serial-device \
-device virtconsole,chardev=mux \
"""
2025-07-08 06:57:23 +00:00
2025-10-29 03:37:22 +00:00
[scheme."sifive_u"]
supported_archs = ["riscv64"]
build.features = ["riscv_sv39_mode"]
boot.method = "qemu-direct"
build.strip_elf = false
qemu.with_monitor = true
2025-10-29 03:37:22 +00:00
qemu.args = """\
-machine sifive_u \
-m 8G \
2025-11-15 10:24:49 +00:00
-smp 5 \
2025-10-29 03:37:22 +00:00
-no-reboot \
-nographic \
-display none \
-serial chardev:mux \
-monitor chardev:mux \
-chardev stdio,id=mux,mux=on,signal=off,logfile=qemu.log
"""
2025-07-08 06:57:23 +00:00
[scheme."loongarch"]
boot.method = "qemu-direct"
build.strip_elf = false
qemu.args = """\
-machine virt \
-m 8G \
-smp 1 \
--no-reboot \
-nographic \
-display none \
-serial chardev:mux \
-monitor chardev:mux \
-chardev stdio,id=mux,mux=on,signal=off,logfile=qemu.log \
-device virtio-keyboard-pci \
-device virtio-serial \
-device virtconsole,chardev=mux \
-rtc base=utc
"""