Build: Configuration for Regression IPC test
- Disable Regression in ConfigCoreIPC.cmake and
ConfigCoreIPCTfmLevel2.cmake.
- Add new build configuration to run regresstion with IPC model and IPC
model isolation level 2.
- Add explicit setting for basic project build variables in all build
configurations
Change-Id: I9a627ca08209a5b8e295c3cac9538d6e80f2e669
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/ConfigCoreIPC.cmake b/ConfigCoreIPC.cmake
index b330000..3b41679 100644
--- a/ConfigCoreIPC.cmake
+++ b/ConfigCoreIPC.cmake
@@ -26,7 +26,7 @@
##These variables select how the projects are built. Each project will set
#various project specific settings (e.g. what files to build, macro
#definitions) based on these.
-set (REGRESSION True)
+set (REGRESSION False)
set (CORE_TEST False)
set (CORE_IPC True)
set (PSA_API_TEST False)
diff --git a/ConfigCoreIPCTfmLevel2.cmake b/ConfigCoreIPCTfmLevel2.cmake
index dac3d5e..9525ecd 100644
--- a/ConfigCoreIPCTfmLevel2.cmake
+++ b/ConfigCoreIPCTfmLevel2.cmake
@@ -26,9 +26,10 @@
##These variables select how the projects are built. Each project will set
#various project specific settings (e.g. what files to build, macro
#definitions) based on these.
-set (REGRESSION True)
+set (REGRESSION False)
set (CORE_TEST False)
set (CORE_IPC True)
+set (PSA_API_TEST False)
# TF-M isolation level: 1..3
set (TFM_LVL 2)
diff --git a/ConfigCoreTest.cmake b/ConfigCoreTest.cmake
index e636b7e..b9d8a3c 100644
--- a/ConfigCoreTest.cmake
+++ b/ConfigCoreTest.cmake
@@ -24,6 +24,7 @@
#definitions) based on these.
set (REGRESSION False)
set (CORE_TEST True)
+set (CORE_IPC False)
set (PSA_API_TEST False)
# TF-M isolation level: 1..3
diff --git a/ConfigDefault.cmake b/ConfigDefault.cmake
index 5824127..02011c4 100644
--- a/ConfigDefault.cmake
+++ b/ConfigDefault.cmake
@@ -28,6 +28,7 @@
#definitions) based on these.
set (REGRESSION False)
set (CORE_TEST False)
+set (CORE_IPC False)
set (PSA_API_TEST False)
# TF-M isolation level: 1..3
diff --git a/ConfigRegression.cmake b/ConfigRegression.cmake
index 7fdeb93..af0eb9c 100644
--- a/ConfigRegression.cmake
+++ b/ConfigRegression.cmake
@@ -28,6 +28,7 @@
#definitions) based on these.
set (REGRESSION True)
set (CORE_TEST False)
+set (CORE_IPC False)
set (PSA_API_TEST False)
# TF-M isolation level: 1..3
diff --git a/ConfigRegressionIPC.cmake b/ConfigRegressionIPC.cmake
new file mode 100644
index 0000000..831c88b
--- /dev/null
+++ b/ConfigRegressionIPC.cmake
@@ -0,0 +1,50 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2019, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+#This file holds information of a specific build configuration of this project.
+
+#Include board specific config (CPU, etc...), select platform specific build
+#system settings file
+if(NOT DEFINED TARGET_PLATFORM)
+ message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line")
+elseif(${TARGET_PLATFORM} STREQUAL "AN521")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN521.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "AN519")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
+else()
+ message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
+endif()
+
+##These variables select how the projects are built. Each project will set
+#various project specific settings (e.g. what files to build, macro
+#definitions) based on these.
+set (REGRESSION True)
+set (CORE_TEST False)
+set (CORE_IPC True)
+set (PSA_API_TEST False)
+
+# TF-M isolation level: 1..3
+set (TFM_LVL 1)
+
+#BL2 bootloader(MCUBoot) related settings
+if(NOT DEFINED BL2)
+ set(BL2 True)
+endif()
+
+if(NOT DEFINED MCUBOOT_NO_SWAP)
+ set(MCUBOOT_NO_SWAP False)
+endif()
+
+if(NOT DEFINED MCUBOOT_RAM_LOADING)
+ set(MCUBOOT_RAM_LOADING False)
+endif()
+
+include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")
diff --git a/ConfigRegressionIPCTfmLevel2.cmake b/ConfigRegressionIPCTfmLevel2.cmake
new file mode 100644
index 0000000..650acb5
--- /dev/null
+++ b/ConfigRegressionIPCTfmLevel2.cmake
@@ -0,0 +1,50 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2019, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+#This file holds information of a specific build configuration of this project.
+
+#Include board specific config (CPU, etc...), select platform specific build
+#system settings file
+if(NOT DEFINED TARGET_PLATFORM)
+ message(FATAL_ERROR "ERROR: TARGET_PLATFORM is not set in command line")
+elseif(${TARGET_PLATFORM} STREQUAL "AN521")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN521.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "AN519")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/Mps2AN519.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_A")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_a.cmake")
+elseif(${TARGET_PLATFORM} STREQUAL "MUSCA_B1")
+ set(PLATFORM_CMAKE_FILE "${CMAKE_CURRENT_LIST_DIR}/platform/ext/musca_b1.cmake")
+else()
+ message(FATAL_ERROR "ERROR: Target \"${TARGET_PLATFORM}\" is not supported.")
+endif()
+
+##These variables select how the projects are built. Each project will set
+#various project specific settings (e.g. what files to build, macro
+#definitions) based on these.
+set (REGRESSION True)
+set (CORE_TEST False)
+set (CORE_IPC True)
+set (PSA_API_TEST False)
+
+# TF-M isolation level: 1..3
+set (TFM_LVL 2)
+
+#BL2 bootloader(MCUBoot) related settings
+if(NOT DEFINED BL2)
+ set(BL2 True)
+endif()
+
+if(NOT DEFINED MCUBOOT_NO_SWAP)
+ set(MCUBOOT_NO_SWAP False)
+endif()
+
+if(NOT DEFINED MCUBOOT_RAM_LOADING)
+ set(MCUBOOT_RAM_LOADING False)
+endif()
+
+include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")
diff --git a/ConfigRegressionTfmLevel3.cmake b/ConfigRegressionTfmLevel3.cmake
index 89231b5..694562a 100644
--- a/ConfigRegressionTfmLevel3.cmake
+++ b/ConfigRegressionTfmLevel3.cmake
@@ -28,6 +28,7 @@
#definitions) based on these.
set (REGRESSION True)
set (CORE_TEST False)
+set (CORE_IPC False)
set (PSA_API_TEST False)
# TF-M isolation level: 1..3