summaryrefslogtreecommitdiff
path: root/scripts/cmake/platforms/mps4/build_configuration.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cmake/platforms/mps4/build_configuration.cmake')
-rw-r--r--scripts/cmake/platforms/mps4/build_configuration.cmake28
1 files changed, 22 insertions, 6 deletions
diff --git a/scripts/cmake/platforms/mps4/build_configuration.cmake b/scripts/cmake/platforms/mps4/build_configuration.cmake
index 3a3966d..918091a 100644
--- a/scripts/cmake/platforms/mps4/build_configuration.cmake
+++ b/scripts/cmake/platforms/mps4/build_configuration.cmake
@@ -1,5 +1,6 @@
#----------------------------------------------------------------------------
-# SPDX-FileCopyrightText: Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2024 Arm Limited and/or its
+# affiliates <open-source-office@arm.com>
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +19,21 @@
function(set_platform_global_defaults)
message(STATUS "Platform: Arm MPS4 FPGA Prototyping Board or FVP")
+ # Default sub-system for MPS4
+ USER_OPTION(TARGET_SUBSYSTEM "Specify platform target subsystem: sse-315"
+ sse-315
+ STRING)
+
+ # Default NPU for SSE-315 target:
+ USER_OPTION(ETHOS_U_NPU_ID "Arm Ethos-U NPU IP (U55 or U65)"
+ "U65"
+ STRING)
+
+ # Include NPU, FVP tests and CMSIS configuration options
+ include(npu_opts)
+ include(fvp_test_opts)
+ include(cmsis_opts)
+
if (NOT DEFINED CMAKE_SYSTEM_PROCESSOR)
if(TARGET_SUBSYSTEM STREQUAL sse-315)
set(CMAKE_SYSTEM_PROCESSOR cortex-m85 CACHE STRING "Cortex-M CPU to use")
@@ -52,13 +68,13 @@ function(platform_custom_post_build)
# Add link options for the linker script to be used:
add_linker_script(
- ${PARSED_TARGET_NAME} # Target
- ${CMAKE_SCRIPTS_DIR}/platforms/mps4/${TARGET_SUBSYSTEM} # Directory path
- ${LINKER_SCRIPT_NAME}) # Name of the file without suffix
+ ${PARSED_TARGET_NAME} # Target
+ ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/${TARGET_SUBSYSTEM} # Directory path
+ ${LINKER_SCRIPT_NAME}) # Name of the file without suffix
add_target_map_file(
- ${PARSED_TARGET_NAME}
- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PARSED_TARGET_NAME}.map)
+ ${PARSED_TARGET_NAME}
+ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PARSED_TARGET_NAME}.map)
set(SECTORS_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sectors)
set(SECTORS_BIN_DIR ${SECTORS_DIR}/${use_case})