Skip to content

Commit d561bd7

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 69548c6 commit d561bd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/trusted-firmware-a/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ 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+
3136
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
3237
COMMAND make -C ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}
3338
DEBUG=${TFA_BUILD_DEBUG}
3439
CROSS_COMPILE=${CROSS_COMPILE}
3540
BUILD_BASE=${TFA_BINARY_DIR} PLAT=${TFA_PLAT}
3641
BL33=${CMAKE_BINARY_DIR}/zephyr/${KERNEL_BIN_NAME}
42+
${TFA_EXTRA_ARGS}
3743
all fip
3844
)
3945
endif()

0 commit comments

Comments
 (0)