Skip to content

Commit

Permalink
Fix linker errors when building for ESP32-H2
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed May 9, 2024
1 parent 7c7e5fc commit 2222d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp-wifi-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ fn configure_linker_for_chip(out: &PathBuf, chip: &str) -> Result<()> {
if chip == "esp32c6" {
copy_file(out, "ld/esp32c6/rom_coexist.x", "rom_coexist.x")?;
copy_file(out, "ld/esp32c6/rom_phy.x", "rom_phy.x")?;
} else if chip == "esp32h2" {
// These linker scripts are still expected to exist, even if they're empty:
File::create(out.join("rom_coexist.x"))?;
File::create(out.join("rom_phy.x"))?;
}

Ok(())
Expand Down

0 comments on commit 2222d48

Please sign in to comment.