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

@ -17,6 +17,11 @@ fn main() {
//.write_all(include_bytes!("memory.x"))
//.unwrap();
println!("HOWDY");
#[cfg(feature = "memory_x")]
println!("cargo:rustc-link-search=src/chips/{}/memory_x/", _chip_name);
#[cfg(feature = "rt")]
println!("cargo:rustc-link-search=src/chips/{}", _chip_name);