Emit a default memory.x alongside device.x from metapac.
This commit is contained in:
@ -9,6 +9,14 @@ fn main() {
|
||||
.unwrap()
|
||||
.to_ascii_lowercase();
|
||||
|
||||
// Put `memory.x` in our output directory and ensure it's
|
||||
// on the linker search path.
|
||||
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
||||
//File::create(out.join("memory.x"))
|
||||
//.unwrap()
|
||||
//.write_all(include_bytes!("memory.x"))
|
||||
//.unwrap();
|
||||
|
||||
#[cfg(feature = "rt")]
|
||||
println!("cargo:rustc-link-search=src/chips/{}", _chip_name);
|
||||
|
||||
|
Reference in New Issue
Block a user