Skip to content

Commit 7f29bcd

Browse files
committed
Cortex_m backend: Add script for building test runner
Change-Id: I566e68320531cf7c233764de2a6a7be29e284ec4 Signed-off-by: Adrian Lundell <[email protected]>
1 parent 499ce50 commit 7f29bcd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Arm Limited and/or its affiliates.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
# TODO: More separation from the regular arm executor runner and testing.
8+
9+
set -eu
10+
11+
# Always rebuild executorch in case the cortex-m kernels has been updated.
12+
script_dir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
13+
et_root_dir=$(realpath "${script_dir}/../../..")
14+
build_executorch="${et_root_dir}/backends/arm/scripts/build_executorch.sh"
15+
${build_executorch}
16+
17+
# Build executor runner with all portable ops selected and semi hosting
18+
build_dir="${et_root_dir}/arm_test"
19+
build_executor_runner="${et_root_dir}/backends/arm/scripts/build_executor_runner.sh"
20+
build_root_test_dir="${et_root_dir}/arm_test/arm_semihosting_executor_runner_corstone-300"
21+
22+
${build_executor_runner} --pte=semihosting --target=ethos-u55-128 --output="${build_root_test_dir}"

0 commit comments

Comments
 (0)