tf-a-stm32mp: add 'uart' and 'usb' TF-A configs without programmer

These are clones of 'optee-programmer-uart' and
'optee-programmer-usb' defined in tf-a-stm32mp-config.inc but
do not require to have the STM32MP_DEVICETREE_PROGRAMMER_ENABLE=1
which causes build problems in U-Boot.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9483
This commit is contained in:
Hector Palacios 2025-01-31 11:49:39 +01:00
parent ff12547408
commit d8599ea1ff
1 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2022-2024, Digi International Inc.
# Copyright (C) 2022-2025, Digi International Inc.
#
# Select internal or Github TF-A repo
@ -15,6 +15,20 @@ SRC_URI = " \
"
TF_A_CONFIG[nand] = "${DEVICE_BOARD_ENABLE:NAND},STM32MP_RAW_NAND=1 ${@'STM32MP_FORCE_MTD_START_OFFSET=${TF_A_MTD_START_OFFSET_NAND}' if ${TF_A_MTD_START_OFFSET_NAND} else ''} STM32MP_USB_PROGRAMMER=1"
# TF_A_CONFIG[uart] (same as 'optee-programmer-uart')
TF_A_CONFIG[uart] ?= "\
${STM32MP_DEVICETREE_PROGRAMMER},\
${TF_A_CONFIG_OPTS_optee} STM32MP_UART_PROGRAMMER=1,\
${TF_A_CONFIG_BASENAME_BIN},\
${TF_A_CONFIG_MAKE_TARGET} ${TF_A_CONFIG_MAKE_EXTRAS},\
${TF_A_CONFIG_DEPLOY_FTYPE} ${TF_A_CONFIG_DEPLOY_EXTRA}"
# TF_A_CONFIG[usb] (same as 'optee-programmer-uart')
TF_A_CONFIG[usb] ?= "\
${STM32MP_DEVICETREE_PROGRAMMER},\
${TF_A_CONFIG_OPTS_optee} STM32MP_USB_PROGRAMMER=1,\
${TF_A_CONFIG_BASENAME_BIN},\
${TF_A_CONFIG_MAKE_TARGET} ${TF_A_CONFIG_MAKE_EXTRAS},\
${TF_A_CONFIG_DEPLOY_FTYPE} ${TF_A_CONFIG_DEPLOY_EXTRA}"
DEPENDS += " \
${@oe.utils.conditional('TRUSTFENCE_SIGN', '1', 'trustfence-sign-tools-native', '', d)} \