CMSIS TF-M Packs
This repository contains tools and data to create TF-M CMSIS-Packs.
Prerequisites
bash compatible shell (under Windows, use for example git bash)
Python v3.6 or later with pip package manager
Doxygen v1.8.0 or later (for building documentation)
Graphviz v2.38.0 or later (for building documentation)
PlantUML v1.2018.11 or later in PLANTUML_JAR_PATH (for building documentation)
Java runtime environment 1.8 or later (for running PlantUML)
CMSIS Pack installed in CMSIS_PACK_ROOT (for PackChk utility)
xmllint in path (XML schema validation; available only for Linux)
Create packs
Open a bash compatible shell
Run
./setup.shscript. The script will:install the required python packages
clone the trusted-firmware-m repository
clone the tf-m-tests repository
clone the mcuboot repository
merge mcuboot into trusted-firmware-m
apply patches for trusted-firmware-m
apply patches for tf-m-tests
generate template based files
setup tf-m-tests (copy/move files from trusted-firmware-m)
merge addon files for trusted-firmware-m
merge addon files for tf-m-tests
Generate TF-M documentation:
setup path variable for PlantUML:
export PLANTUML_JAR_PATH=<plantuml_Path>/plantuml.jarrun
gen_doc.shscript
Generate CMSIS-Packs:
TFM:
go to
./trusted-firmware-mdirectoryrun
gen_pack.shscriptgenerated pack is available in the
outputdirectory
TFM-Test:
go to
./tf-m-testsdirectoryrun
gen_pack.shscriptgenerated pack is available in the
outputdirectory
V2M-MPS2_SSE_200_TFM-PF (TF-M Platform support for MPS2):
run
setup_mps2.shscriptgo to
./tf-m-platform-mps2directoryrun
gen_pack.shscriptgenerated pack is available in the
outputdirectorynote: this pack should not be published and used only for testing TF-M
Run
./clean.shscript to delete all intermediate and generated files
Copyright (c) 2021, Arm Limited. All rights reserved.