On 9/2/22 3:12 PM, Randolph Sapp via lists.yoctoproject.org wrote:
Switch the DEPENDS_append expression to use d.getVar() instead of the
usual variable expansion to prevent the inline Python command from
becoming mangled.



I had originally done it this way (just due to copy/paste from elsewhere), but
couldn't think of a case that would cause mangling, do you have an example?

Either way LGTM,

Acked-by: Andrew Davis <[email protected]>


Signed-off-by: Randolph Sapp <[email protected]>
---
  recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 3986af47..2a59e896 100644
--- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -9,7 +9,7 @@ DEPENDS_remove_am65xx-hs-evm-k3r5-sr2 = " virtual/bootloader"
  DEPENDS_remove_j7-evm-k3r5 = " virtual/bootloader"
  DEPENDS_remove_j7-hs-evm-k3r5 = " virtual/bootloader"
  DEPENDS_remove_j7-hs-evm-k3r5-sr1-1 = " virtual/bootloader"
-DEPENDS_append = " ${@ '' if '${TI_SECURE_DEV_PKG_K3}' else 'ti-k3-secdev-native' 
}"
+DEPENDS_append = " ${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else 
'ti-k3-secdev-native' }"
CLEANBROKEN = "1"
  PR = "${INC_PR}.2"





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14996): 
https://lists.yoctoproject.org/g/meta-ti/message/14996
Mute This Topic: https://lists.yoctoproject.org/mt/93427763/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to