Format
This commit is contained in:
parent
9181d4fab8
commit
3808016fc8
8
build.rs
8
build.rs
@ -1,8 +1,12 @@
|
|||||||
use std::{os::unix::ffi::OsStrExt, path::{Path, PathBuf}, process::Command};
|
use std::{
|
||||||
|
os::unix::ffi::OsStrExt,
|
||||||
|
path::{Path, PathBuf},
|
||||||
|
process::Command,
|
||||||
|
};
|
||||||
|
|
||||||
extern crate bootloader;
|
extern crate bootloader;
|
||||||
|
|
||||||
use bootloader::{UefiBoot, BiosBoot};
|
use bootloader::{BiosBoot, UefiBoot};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rerun-if-changed=sysroot");
|
println!("cargo:rerun-if-changed=sysroot");
|
||||||
|
@ -14,7 +14,8 @@ fn main() {
|
|||||||
cmd.arg("-drive")
|
cmd.arg("-drive")
|
||||||
.arg(format!("format=raw,file={uefi_path},if=ide,index=0"));
|
.arg(format!("format=raw,file={uefi_path},if=ide,index=0"));
|
||||||
//.arg(format!("format=raw,file={bios_path}"));
|
//.arg(format!("format=raw,file={bios_path}"));
|
||||||
cmd.arg("-drive").arg("format=raw,file=ext2.img,if=ide,index=1");
|
cmd.arg("-drive")
|
||||||
|
.arg("format=raw,file=ext2.img,if=ide,index=1");
|
||||||
//cmd.arg("-s");
|
//cmd.arg("-s");
|
||||||
//cmd.arg("-S");
|
//cmd.arg("-S");
|
||||||
cmd.arg("-serial").arg("mon:stdio");
|
cmd.arg("-serial").arg("mon:stdio");
|
||||||
|
Loading…
Reference in New Issue
Block a user