Add empty linker scripts for ESP32-S2 and ESP32-S3 to make rust analyzer happy

This commit is contained in:
Jesse Braham 2022-01-10 10:12:31 -08:00
parent 51252898cd
commit 8081977fcf
5 changed files with 13 additions and 0 deletions

0
esp32s2-hal/memory.x Normal file
View File

4
esp32s2-hal/rom.x Normal file
View File

@ -0,0 +1,4 @@
REGION_ALIAS("ROTEXT", irom_seg);
REGION_ALIAS("RWTEXT", iram_seg);
REGION_ALIAS("RODATA", drom_seg);
REGION_ALIAS("RWDATA", dram_seg);

View File

@ -8,6 +8,11 @@ fn main() {
.write_all(include_bytes!("memory.x"))
.unwrap();
File::create(out.join("alias.x"))
.unwrap()
.write_all(include_bytes!("rom.x"))
.unwrap();
println!("cargo:rustc-link-search={}", out.display());
// Only re-run the build script when memory.x is changed,

0
esp32s3-hal/memory.x Normal file
View File

4
esp32s3-hal/rom.x Normal file
View File

@ -0,0 +1,4 @@
REGION_ALIAS("ROTEXT", irom_seg);
REGION_ALIAS("RWTEXT", iram_seg);
REGION_ALIAS("RODATA", drom_seg);
REGION_ALIAS("RWDATA", dram_seg);