From 7dbc1f60b05e8626c843cd08560618dc087f7381 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 16 Sep 2022 01:39:22 +0800 Subject: [PATCH] add xtask tweaks for performance counter variants (`perf-image` target) --- xtask/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 20b6cd5f5..718c6de84 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -540,6 +540,8 @@ fn main() -> Result<(), Box> { )? } Some("perf-image") => { + // note: to use this image, you need to load a version of the SOC that has the performance counters built in. + // this can be generated using the command `python3 .\betrusted_soc.py -e .\dummy.nky --perfcounter` in the betrusted-soc repo. let mut args = env::args(); args.nth(1); let mut pkgs = hw_pkgs.to_vec(); @@ -558,7 +560,10 @@ fn main() -> Result<(), Box> { "--features", "perfcounter", ]), &[], - None, None, + None, + Some(&[ + "--features", "v2p", + ]), )? } Some("utra") => {