aboutsummaryrefslogtreecommitdiff
path: root/board/build.rs
diff options
context:
space:
mode:
authorIan McIntyre <ianpmcintyre@gmail.com>2023-03-13 06:50:57 -0400
committerIan McIntyre <me@mciantyre.dev>2025-11-11 08:24:38 -0500
commit6f5633761528e484e8d0963c7ac59403f7210093 (patch)
treef0a5f5ac03cc0a477491332adbe33bb2278faa4a /board/build.rs
parent74d463340a87ff38a96c03a380bbed7c3ee56ba4 (diff)
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.
Diffstat (limited to 'board/build.rs')
-rw-r--r--board/build.rs7
1 files changed, 7 insertions, 0 deletions
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;