Hi all,

Please ignore this patch. There is an unexpected modification.

BR,

Quanyang

On 3/9/22 09:10, quanyang.wang wrote:
From: Quanyang Wang <[email protected]>

If e._depgraph['tdepends'] contains "initramfs-boot.do_configure",
"fs-boot.do_configure" in "initramfs-boot.do_configure" will return
true, this means we way download xsct unnecessarily.

Use "==" instead of membership operator "in" can fix this.

Signed-off-by: Quanyang Wang <[email protected]>
---
  classes/xsct-tarball.bbclass | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/classes/xsct-tarball.bbclass b/classes/xsct-tarball.bbclass
index 295a900..f6ccfcb 100644
--- a/classes/xsct-tarball.bbclass
+++ b/classes/xsct-tarball.bbclass
@@ -49,11 +49,10 @@ python xsct_event_extract() {
# Only a handful of targets/tasks need XSCT
      tasks_xsct = [t + '.do_configure' for t in 
d.getVar('XSCT_TARGETS').split()]
-    xsct_buildtargets = [t for t in e._depgraph['tdepends'] for x in 
tasks_xsct if x in t]
+    xsct_buildtargets = [t for t in e._depgraph['tdepends'] for x in 
tasks_xsct if x == t]
if not xsct_buildtargets and d.getVar('FORCE_XSCT_DOWNLOAD') != '1':
        return
-
      ext_tarball = d.getVar("EXTERNAL_XSCT_TARBALL")
      use_xscttar = d.getVar("USE_XSCT_TARBALL")
      chksum_tar_recipe = d.getVar("XSCT_CHECKSUM")



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

Reply via email to