|
|
@ -60,13 +60,12 @@ fn gen_dtb_asm(arch: &String, _board: &String) -> Result<()> {
|
|
|
|
panic!("DTB `{}` not found", dtb)
|
|
|
|
panic!("DTB `{}` not found", dtb)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let mut f = File::create(format!("src/arch/{}/boot/dtb.S", arch)).unwrap();
|
|
|
|
let mut f = File::create(format!("src/arch/{}/boot/dtb.gen.s", arch)).unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
println!("cargo:rerun-if-changed={}", dtb);
|
|
|
|
println!("cargo:rerun-if-changed={}", dtb);
|
|
|
|
println!("cargo:rerun-if-env-changed=DTB");
|
|
|
|
println!("cargo:rerun-if-env-changed=DTB");
|
|
|
|
|
|
|
|
|
|
|
|
writeln!(f, "# generated by build.rs - do not edit")?;
|
|
|
|
writeln!(f, "# generated by build.rs - do not edit")?;
|
|
|
|
writeln!(f, ".intel_syntax noprefix")?;
|
|
|
|
|
|
|
|
write!(f, r#"
|
|
|
|
write!(f, r#"
|
|
|
|
.section .dtb,"a"
|
|
|
|
.section .dtb,"a"
|
|
|
|
.align 12
|
|
|
|
.align 12
|
|
|
|