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

@ -264,6 +264,12 @@ pub struct CommonArgs {
global = true
)]
pub linux_x86_legacy_boot: bool,
#[arg(
long = "strip-elf",
help = "Strip the built kernel ELF file for a smaller size",
global = true
)]
pub strip_elf: bool,
#[arg(
long = "target-arch",
value_name = "ARCH",