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/tfm_ci_pylib/tfm_build_manager.py b/tfm_ci_pylib/tfm_build_manager.py
index ff48960..d30c285 100644
--- a/tfm_ci_pylib/tfm_build_manager.py
+++ b/tfm_ci_pylib/tfm_build_manager.py
@@ -398,8 +398,11 @@
"test_psa_api": i.test_psa_api,
"cmake_build_type": i.cmake_build_type,
"with_bl2": i.with_bl2,
- "profile": "" if i.profile=="N.A" else i.profile,
- "extra_params": self.map_extra_params(i.extra_params)}
+ "profile": "" if i.profile=="N.A" else i.profile}
+ # The extra params can also contain paths with "codebase_root_dir" and
+ # these also need to be substituted
+ overwrite_params["extra_params"] = self.map_extra_params(i.extra_params) % overwrite_params
+
if i.test_psa_api == "IPC":
overwrite_params["test_psa_api"] += " -DINCLUDE_PANIC_TESTS=1"
if i.test_psa_api == "CRYPTO" and "musca" in i.tfm_platform: