Skip to contentSkip to conversation

optee-os, trusted-firmware-a: add leading whitespace when using append override

PATCH New Denys Dmytriyenko 1 participant 1 message May 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optee-os, trusted-firmware-a: add leading whitespace when using append override

From: Denys Dmytriyenko <[email protected]>

As append override does not add any whitespaces, it could lead to potential issues when two items in space-separated list get concatenated. It is always recommended to add a leading whitespace in such cases, like EXTRA_OEMAKE.

---
 .../trusted-firmware-a/trusted-firmware-a_%.bbappend            | 2 +-
 meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +1 -1
index 35cb9c95..5a2b4510 100644
@@ -8,7 +8,7 @@ TFA_BUILD_TARGET:k3 = "all"
 TFA_INSTALL_TARGET:k3 = "bl31"
 TFA_SPD:k3 = "opteed"
 
-EXTRA_OEMAKE:append:k3 = "${@ 'K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}"
+EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}"
 
 do_compile:append:am65xx-hs-evm() {
 	export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +1 -1
index 5af57e16..6097580f 100644
@@ -1,4 +1,4 @@
-EXTRA_OEMAKE:append:k3 = "${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
+EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
 
 do_compile:prepend:ti-soc() {
     export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
Signature · 1 line
2.25.1