Build: Add tf-m-extras examples to build configs
- The examples also need extra_params remapping to use custom
build flags.
- Multiple examples use the freertos kernel so it should be cloned.
- The extra_params could contain paths that uses "codebase_root_dir".
These also need to be substituted in the final build command.
Change-Id: I4d4f67a6f23e3eab193e265a9414f3b941f70d67
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
diff --git a/build_helper/build_helper_config_maps.py b/build_helper/build_helper_config_maps.py
index 984e2c6..8939719 100644
--- a/build_helper/build_helper_config_maps.py
+++ b/build_helper/build_helper_config_maps.py
@@ -81,4 +81,22 @@
"FVP" : "-DPLATFORM_IS_FVP=True ",
"FPGA" : "-DPLATFORM_IS_FVP=False ",
"S_PS_OFF" : "-DTEST_S_PS=OFF ",
+
+ # tf-m-extras example support
+ "EXAMPLE_VAD" : ("-DNS_EVALUATION_APP_PATH=%(codebase_root_dir)s/../tf-m-extras/examples/vad_an552/ns_side "
+ "-DTFM_EXTRA_PARTITION_PATHS=%(codebase_root_dir)s/../tf-m-extras/partitions/vad_an552_sp/ "
+ "-DTFM_EXTRA_MANIFEST_LIST_FILES=%(codebase_root_dir)s/../tf-m-extras/partitions/vad_an552_sp/extra_manifest_list.yaml "
+ "-DCRYPTO_ENGINE_BUF_SIZE=0x8000 -DITS_MAX_ASSET_SIZE=1300 "
+ "-DTFM_PARTITION_FIRMWARE_UPDATE=ON -DMCUBOOT_DATA_SHARING=ON "
+ "-DMCUBOOT_UPGRADE_STRATEGY=SWAP_USING_SCRATCH "
+ "-DMCUBOOT_IMAGE_NUMBER=1 -DMCUBOOT_SIGNATURE_KEY_LEN=2048 "
+ "-DCONFIG_TFM_ENABLE_MVE=ON "
+ "-DFREERTOS_KERNEL_SRC_PATH=%(codebase_root_dir)s/../freertos-kernel"),
+ "EXAMPLE_DMA350_TRIGGER" : ("-DNS_EVALUATION_APP_PATH=%(codebase_root_dir)s/../tf-m-extras/examples/corstone310_fvp_dma/triggering_example "
+ "-DFREERTOS_KERNEL_SRC_PATH=%(codebase_root_dir)s/../freertos-kernel"),
+ "EXAMPLE_DMA350_NS" : ("-DDEFAULT_NS_SCATTER=OFF -DPLATFORM_SVC_HANDLERS=ON "
+ "-DNS_EVALUATION_APP_PATH=%(codebase_root_dir)s/../tf-m-extras/examples/corstone310_fvp_dma/dma350_ns "
+ "-DFREERTOS_KERNEL_SRC_PATH=%(codebase_root_dir)s/../freertos-kernel"),
+ "EXAMPLE_DMA350_S" : "-DEXTRA_S_TEST_SUITES_PATHS=%(codebase_root_dir)s/../tf-m-extras/examples/corstone310_fvp_dma/dma350_s"
+
}