Put the implicit memory.x behind a memory_x feature on embassy-stm32.

This commit is contained in:
Bob McWhirter
2021-08-02 13:21:30 -04:00
parent 3a00a1dba7
commit 5f9447abb4
7 changed files with 19 additions and 3 deletions

View File

@ -773,7 +773,8 @@ fn gen_memory_x(out_dir: &PathBuf, chip: &Chip) {
write!(memory_x, " RAM : ORIGIN = 0x{:x}, LENGTH = {}\n", ram_origin, ram_bytes).unwrap();
write!(memory_x, "}}").unwrap();
let mut file = File::create(out_dir.join("memory.x")).unwrap();
fs::create_dir_all(out_dir.join("memory_x")).unwrap();
let mut file = File::create(out_dir.join("memory_x").join("memory.x")).unwrap();
file.write_all( memory_x.as_bytes() ).unwrap();
}