Skip to content

Commit c641941

Browse files
author
Appana Durga Kedareswara rao
committed
modules: tf-a: Add extensible board-specific build parameter support
Enhance the TF-A build system to support board-specific build parameters through TFA_EXTRA_ARGS mechanism. Changes: - Add TFA_EXTRA_ARGS variable support for board-specific parameters - Implement proper string-to-list conversion for make argument expansion This allows individual board configurations to specify platform-specific TF-A build parameters without modifying the core TF-A build logic. Signed-off-by: Appana Durga Kedareswara rao <[email protected]>
1 parent b8e446b commit c641941

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/trusted-firmware-a/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@ if (CONFIG_BUILD_WITH_TFA)
2828
set(TFA_BUILD_DEBUG "0")
2929
endif()
3030

31+
# Set default TF-A build parameters that can be overridden by boards
32+
if(NOT DEFINED TFA_EXTRA_ARGS)
33+
set(TFA_EXTRA_ARGS "")
34+
endif()
35+
36+
message("TFA_EXTRA_ARGS ${TFA_EXTRA_ARGS}")
3137
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
3238
COMMAND make -C ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}
3339
DEBUG=${TFA_BUILD_DEBUG}
3440
CROSS_COMPILE=${CROSS_COMPILE}
3541
BUILD_BASE=${TFA_BINARY_DIR} PLAT=${TFA_PLAT}
3642
BL33=${CMAKE_BINARY_DIR}/zephyr/${KERNEL_BIN_NAME}
43+
${TFA_EXTRA_ARGS}
3744
all fip
3845
)
3946
endif()

0 commit comments

Comments
 (0)