mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 04:40:52 +00:00
Add empty linker scripts for ESP32-S2 and ESP32-S3 to make rust analyzer happy
This commit is contained in:
parent
51252898cd
commit
8081977fcf
0
esp32s2-hal/memory.x
Normal file
0
esp32s2-hal/memory.x
Normal file
4
esp32s2-hal/rom.x
Normal file
4
esp32s2-hal/rom.x
Normal 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);
|
@ -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
0
esp32s3-hal/memory.x
Normal file
4
esp32s3-hal/rom.x
Normal file
4
esp32s3-hal/rom.x
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user