2 Commits

Author SHA1 Message Date
092004bab0 Add qemu serial output to stdio
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-08-02 19:12:56 +02:00
022ec27bd5 Update LICENSE information
Signed-off-by: Noah Knegt <git@noahknegt.com>
2025-08-02 19:12:30 +02:00
2 changed files with 18 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2025 noah.knegt Copyright (c) 2025 Noah Knegt <personal@noahknegt.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including associated documentation files (the "Software"), to deal in the Software without restriction, including

View File

@@ -11,10 +11,15 @@ fn main() {
let mut cmd = std::process::Command::new("qemu-system-x86_64"); let mut cmd = std::process::Command::new("qemu-system-x86_64");
if uefi { if uefi {
cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi()); cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi());
cmd.arg("-drive").arg(format!("format=raw,file={uefi_path}")); cmd.arg("-drive")
.arg(format!("format=raw,file={uefi_path}"));
} else { } else {
cmd.arg("-drive").arg(format!("format=raw,file={bios_path}")); cmd.arg("-drive")
.arg(format!("format=raw,file={bios_path}"));
} }
cmd.arg("-serial").arg("stdio");
let mut child = cmd.spawn().unwrap(); let mut child = cmd.spawn().unwrap();
child.wait().unwrap(); child.wait().unwrap();
} }