aboutsummaryrefslogtreecommitdiff
path: root/chips/imxrt1060/build.rs
blob: ac82cddb9b6842add259c7053f9030cb3d5ca318 (plain)
1
2
3
4
5
6
7
8
use std::{env, fs, path};

fn main() {
    let out_dir = path::PathBuf::from(env::var("OUT_DIR").unwrap());
    fs::copy("device.x", out_dir.join("device.x")).unwrap();
    fs::copy("device.x", out_dir.join("imxrt1060.x")).unwrap();
    println!("cargo::rustc-link-search={}", out_dir.display());
}