diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-11-30 18:52:34 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-11-30 19:10:51 -0500 |
| commit | 76199f21616ad86cf68f3b063c1ce23c6fc5a52f (patch) | |
| tree | 4c076d0afd649803a2bd9a5ed5cbb1f1c74fb459 /chips/imxrt1040/build.rs | |
First commit
Diffstat (limited to 'chips/imxrt1040/build.rs')
| -rw-r--r-- | chips/imxrt1040/build.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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()); +} |
