From 6f5633761528e484e8d0963c7ac59403f7210093 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Mon, 13 Mar 2023 06:50:57 -0400 Subject: Prototype API to build runtime in RAM Just a proof-of-concept. The new inspect_elf test seems to show that we're building the correct image. We need another commit in order to help the program run in FlexRAM. --- board/src/imxrt1010evk.rs | 2 +- board/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'board/src') diff --git a/board/src/imxrt1010evk.rs b/board/src/imxrt1010evk.rs index 9a596e9..9bcf120 100644 --- a/board/src/imxrt1010evk.rs +++ b/board/src/imxrt1010evk.rs @@ -2,7 +2,7 @@ use crate::ral; -#[cfg(target_arch = "arm")] +#[cfg(all(target_arch = "arm", not(feature = "imxrt1010evk-ram")))] use imxrt1010evk_fcb as _; #[cfg(target_arch = "arm")] use panic_rtt_target as _; diff --git a/board/src/lib.rs b/board/src/lib.rs index ebc76ad..f4912be 100644 --- a/board/src/lib.rs +++ b/board/src/lib.rs @@ -10,7 +10,7 @@ cfg_if::cfg_if! { mod teensy4; pub use teensy4::*; - } else if #[cfg(feature = "imxrt1010evk")] { + } else if #[cfg(any(feature = "imxrt1010evk", feature = "imxrt1010evk-ram"))] { mod shared { pub mod imxrt10xx; } use shared::imxrt10xx::prepare_pit; -- cgit v1.2.3