Skip to content

Commit a7122cf

Browse files
wearyzenkartben
authored andcommitted
boards: arm: add armfvp support for ns variants
What is the change? - Non secure build variants can now be used with ARMFVPs. Why is this change needed? - Running non secure variant of a build doesn't work with FVPs previous to version 11.27. The newer version of FVP added the support to run the tfm_merged.hex files. Signed-off-by: Sudan Landge <[email protected]>
1 parent a1e3083 commit a7122cf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

boards/arm/mps2/board.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]>
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates <[email protected]>
33

44
if(CONFIG_BOARD_MPS2_AN385)
55
set(SUPPORTED_EMU_PLATFORMS qemu armfvp)
@@ -48,6 +48,8 @@ elseif(CONFIG_BOARD_MPS2_AN521_CPU0 OR CONFIG_BOARD_MPS2_AN521_CPU0_NS OR CONFIG
4848
# TF-M (Secure) & Zephyr (Non Secure) image (when running
4949
# in-tree tests).
5050
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/zephyr/tfm_merged.hex")
51+
52+
set(ARMFVP_FLAGS ${ARMFVP_FLAGS} -a ${APPLICATION_BINARY_DIR}/zephyr/tfm_merged.hex)
5153
elseif(CONFIG_OPENAMP)
5254
set(QEMU_EXTRA_FLAGS "-device;loader,file=${REMOTE_ZEPHYR_DIR}/zephyr.elf")
5355
elseif(CONFIG_BOARD_MPS2_AN521_CPU1)

boards/arm/mps3/board.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2021 Linaro
2-
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]>
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates <[email protected]>
33
# SPDX-License-Identifier: Apache-2.0
44

55
# The FVP variant must be used to enable Ethos-U55 NPU support, but QEMU also
@@ -52,6 +52,8 @@ if (CONFIG_BUILD_WITH_TFM)
5252
# TF-M (Secure) & Zephyr (Non Secure) image (when running
5353
# in-tree tests).
5454
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/zephyr/tfm_merged.hex")
55+
56+
set(ARMFVP_FLAGS ${ARMFVP_FLAGS} -a ${APPLICATION_BINARY_DIR}/zephyr/tfm_merged.hex)
5557
endif()
5658

5759
# FVP Parameters

0 commit comments

Comments
 (0)