aboutsummaryrefslogtreecommitdiff
path: root/examples/mimxrt1062-evk/build.rs
blob: e0e0d547ee90a2a9912bf3d6d7385292116be92e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use imxrt_rt::{Family, RuntimeBuilder};

fn main() {
    RuntimeBuilder::from_flexspi(Family::Imxrt1060, 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");
}