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 <appana.durga.kedareswara.rao@amd.com>
This commit is contained in:
committed by
Anas Nashif
parent
7e4235ff21
commit
927584b773
@@ -35,6 +35,11 @@ if(CONFIG_BUILD_WITH_TFA)
|
||||
set(TFA_AARCH32_REGS "")
|
||||
endif()
|
||||
|
||||
# Set default TF-A build parameters that can be overridden by boards
|
||||
if(NOT DEFINED TFA_EXTRA_ARGS)
|
||||
set(TFA_EXTRA_ARGS "")
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
||||
COMMAND make -C ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}
|
||||
DEBUG=${TFA_BUILD_DEBUG}
|
||||
@@ -42,6 +47,7 @@ if(CONFIG_BUILD_WITH_TFA)
|
||||
BUILD_BASE=${TFA_BINARY_DIR} PLAT=${TFA_PLAT}
|
||||
BL33=${CMAKE_BINARY_DIR}/zephyr/${KERNEL_BIN_NAME}
|
||||
${TFA_AARCH32_REGS}
|
||||
${TFA_EXTRA_ARGS}
|
||||
all fip
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user