3 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
bf3923acd0 chore: Pin the nightly version (#5)
Signed-off-by: Noah Knegt <git@noahknegt.com>
Co-authored-by: Noah Knegt <git@noahkengt.com>
Reviewed-on: #5
2025-07-30 23:02:43 +02:00
3 changed files with 21 additions and 14 deletions

20
LICENSE
View File

@@ -1,18 +1,18 @@
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
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions: following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software. portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE. USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,5 +1,7 @@
[toolchain] [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 = [ targets = [
"x86_64-unknown-none" "x86_64-unknown-none"
] ]

View File

@@ -4,17 +4,22 @@ fn main() {
// read env variables that were set in build script // read env variables that were set in build script
let uefi_path = env!("UEFI_PATH"); let uefi_path = env!("UEFI_PATH");
let bios_path = env!("BIOS_PATH"); let bios_path = env!("BIOS_PATH");
// choose whether to start the UEFI or BIOS image // choose whether to start the UEFI or BIOS image
let uefi = true; let uefi = true;
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();
} }