Compare commits
3 Commits
4bd1e3bc6a
...
add-serial
Author | SHA1 | Date | |
---|---|---|---|
092004bab0
|
|||
022ec27bd5
|
|||
bf3923acd0 |
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
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
|
||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||
|
@@ -1,5 +1,7 @@
|
||||
[toolchain]
|
||||
channel = "nightly"
|
||||
# The nightly version that was build on 24-07-2025 is the last known working version,
|
||||
# the c-int-width definition for rust targets has changed from a string to a u16
|
||||
channel = "nightly-2025-07-24"
|
||||
targets = [
|
||||
"x86_64-unknown-none"
|
||||
]
|
||||
|
@@ -11,10 +11,15 @@ fn main() {
|
||||
let mut cmd = std::process::Command::new("qemu-system-x86_64");
|
||||
if uefi {
|
||||
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 {
|
||||
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();
|
||||
child.wait().unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user