blob: 99e172abafc0265764f8e5cfe5049a282e4fda04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use imxrt_rt::{Family, RuntimeBuilder};
fn main() {
// The IMXRT1010-EVK technically has 128M of flash, but we only ever use 8MB so that the examples
// will build fine on the Adafruit Metro M7 boards.
RuntimeBuilder::from_flexspi(Family::Imxrt1010, 8 * 1024 * 1024)
.build()
.unwrap();
println!("cargo:rustc-link-arg-bins=--nmagic");
println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
// Not link.x, as imxrt-rt needs to do some special things
println!("cargo:rustc-link-arg-bins=-Timxrt-link.x");
}
|