Skip to content

Commit 20de7c4

Browse files
gbrtthPatater
authored andcommitted
build: Add support to build tests for Musca-S1
Add support to build TF-M regression test and PSA compliance tests for Musca-S1. Signed-off-by: Gabor Toth <[email protected]>
1 parent 57a5054 commit 20de7c4

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

build_psa_compliance.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
"tgt_dev_apis_tfm_musca_b1",
4141
"tgt_ff_tfm_musca_b1",
4242
],
43+
"ARM_MUSCA_S1": [
44+
"armv8m_ml",
45+
"tgt_dev_apis_tfm_musca_s1",
46+
],
4347
}
4448

4549

@@ -304,6 +308,14 @@ def _main():
304308
parser = _get_parser()
305309
args = parser.parse_args()
306310

311+
# Issue : https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/issues/49
312+
# There is no support for this target to run Firmware Framework tests
313+
if args.suite == "IPC" and args.mcu == "ARM_MUSCA_S1":
314+
logging.info(
315+
"%s config is not supported for %s target" % (args.suite, args.mcu)
316+
)
317+
return
318+
307319
if not isdir(TF_M_BUILD_DIR):
308320
os.mkdir(TF_M_BUILD_DIR)
309321

build_tfm.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,14 @@ def _main():
630630
parser = _get_parser()
631631
args = parser.parse_args()
632632

633+
# Issue : https://github.com/ARMmbed/mbed-os-tf-m-regression-tests/issues/49
634+
# There is no support for this target to run Firmware Framework tests
635+
if args.suite == "IPC" and args.mcu == "ARM_MUSCA_S1":
636+
logging.info(
637+
"%s config is not supported for %s target" % (args.suite, args.mcu)
638+
)
639+
return
640+
633641
if args.list:
634642
logging.info(
635643
"Supported TF-M regression targets are: {}".format(

tfm_ns_import.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
{
1717
# Files/folders to be copied to mbed-os folder
1818
"mbed-os": {
19+
"ARM_MUSCA_S1": [
20+
{
21+
"src": "image_macros_preprocessed_ns.c",
22+
"dst": "targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/image_macros_preprocessed_ns.c"
23+
},
24+
{
25+
"src": "image_macros_preprocessed_s.c",
26+
"dst": "targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/partition/image_macros_preprocessed_s.c"
27+
}
28+
],
1929
"ARM_MUSCA_B1": [
2030
{
2131
"src": "image_macros_preprocessed_ns.c",
@@ -126,6 +136,16 @@
126136
},
127137
# Files/folders to be copied to tf-m-regression folder
128138
"tf-m-regression": {
139+
"ARM_MUSCA_S1": [
140+
{
141+
"src": "platform/ext/target/musca_s1/Device/Include/platform_base_address.h",
142+
"dst": "tfm/targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/platform_base_address.h"
143+
},
144+
{
145+
"src": "platform/ext/target/musca_s1/tfm_peripherals_def.h",
146+
"dst": "tfm/targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/device/tfm_peripherals_def.h"
147+
}
148+
],
129149
"ARM_MUSCA_B1": [
130150
{
131151
"src": "platform/ext/target/musca_b1/Device/Include/platform_base_address.h",

0 commit comments

Comments
 (0)