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/build.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/build.rs') diff --git a/board/build.rs b/board/build.rs index 4531667..e44a11d 100644 --- a/board/build.rs +++ b/board/build.rs @@ -60,6 +60,13 @@ fn main() { .heap_size_env_override("BOARD_HEAP") .build() .unwrap(), + "imxrt1010evk_ram" => { + imxrt_rt::RuntimeBuilder::from_ram(imxrt_rt::Family::Imxrt1010) + .heap_size(1024) + .build() + .unwrap(); + println!("cargo:rustc-cfg=from_ram"); + } _ => continue, } break; -- cgit v1.2.3