kernel/build.rs
2022-11-01 07:24:50 -05:00

19 lines
481 B
Rust

use std::process::Command;
fn main() {
println!("cargo:rerun-if-changed=sysroot");
println!("cargo:rerun-if-changed=build.rs");
println!(
"{}",
String::from_utf8(
Command::new("sh")
.arg("-c")
.arg("cd sysroot; tar cvf ../initrd.tar *")
.output()
.expect("failed to execute process")
.stdout
)
.expect("command output not valid utf8")
);
}