Make stripping ELF optional for QEMU direct boot

This commit is contained in:
Zhang Junyang
2024-05-17 15:26:14 +00:00
committed by Tate, Hongliang Tian
parent 32b1fb3723
commit f420286920
7 changed files with 57 additions and 27 deletions

View File

@ -54,6 +54,8 @@ To display the GRUB menu if booting with GRUB
Path of QEMU
- `--qemu-args <ARGS>`:
Extra arguments for running QEMU
- `--strip-elf`:
Whether to strip the built kernel ELF using `rust-strip`
## Examples

View File

@ -43,6 +43,7 @@ supported_archs = ["x86_64"]# List of strings, that the arch the schema can appl
[build]
features = [] # List of strings, the same as Cargo
profile = "dev" # String, the same as Cargo
strip_elf = false # Whether to strip the built kernel ELF using `rust-strip`
[boot]
method = "qemu-direct" # "grub-rescue-iso"/"qemu-direct"/"grub-qcow2"
kcmd_args = [] # <1>