From c4962c8b9207e9474659526e91a1cf387d2a7b8f Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 9 Aug 2026 12:09:22 -0400 Subject: Integrate ENET, GPIO, PHY drivers for 1170EVK --- crates/imxrt/build.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 crates/imxrt/build.rs (limited to 'crates/imxrt/build.rs') diff --git a/crates/imxrt/build.rs b/crates/imxrt/build.rs new file mode 100644 index 0000000..5bf94e7 --- /dev/null +++ b/crates/imxrt/build.rs @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: MPL-2.0 +// SPDX-FileCopyrightText: Copyright 2025 Ian McIntyre + +use std::env; + +fn main() { + let out_dir = std::path::PathBuf::from(env::var("OUT_DIR").unwrap()); + std::fs::write( + out_dir.join("weak-symbols.x"), + r#" +PROVIDE(PendSV = PendSV_Handler); +PROVIDE(SysTick = _tx_timer_interrupt); +"#, + ) + .unwrap(); + println!("cargo::rustc-link-search={}", out_dir.display()); +} -- cgit v1.2.3