Skip to content

Commit 0dd33b0

Browse files
Freax13phil-opp
andcommitted
build uefi & bios second stage when common changes
Co-Authored-By: Philipp Oppermann <[email protected]>
1 parent c242c84 commit 0dd33b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fn build_uefi_bootloader(out_dir: &Path) -> PathBuf {
5555
// local build
5656
cmd.arg("--path").arg("uefi");
5757
println!("cargo:rerun-if-changed=uefi");
58+
println!("cargo:rerun-if-changed=common");
5859
} else {
5960
cmd.arg("--version").arg(BOOTLOADER_X86_64_UEFI_VERSION);
6061
}
@@ -135,6 +136,10 @@ fn build_bios_stage_2(out_dir: &Path) -> PathBuf {
135136
// local build
136137
cmd.arg("--path").arg(&local_path);
137138
println!("cargo:rerun-if-changed={}", local_path.display());
139+
println!(
140+
"cargo:rerun-if-changed={}",
141+
local_path.with_file_name("common").display()
142+
);
138143
} else {
139144
cmd.arg("--version")
140145
.arg(BOOTLOADER_X86_64_BIOS_STAGE_2_VERSION);

0 commit comments

Comments
 (0)