From 76199f21616ad86cf68f3b063c1ce23c6fc5a52f Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 30 Nov 2025 18:52:34 -0500 Subject: First commit --- chips/imxrt1040/build.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 chips/imxrt1040/build.rs (limited to 'chips/imxrt1040/build.rs') diff --git a/chips/imxrt1040/build.rs b/chips/imxrt1040/build.rs new file mode 100644 index 0000000..1fb8515 --- /dev/null +++ b/chips/imxrt1040/build.rs @@ -0,0 +1,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("imxrt1040.x")).unwrap(); + println!("cargo::rustc-link-search={}", out_dir.display()); +} -- cgit v1.2.3