From 442d18667ec065f00a96e841a36cd61adf620de5 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Thu, 8 Sep 2022 15:34:57 +0530 Subject: [PATCH] [bbclass] fix do_vigiles_uboot_config hang issue on external u-boot config Root Cause: parallel running tasks do_vigiles_uboot_config (t1) and do_vigiles_pkg (t2) [invoked by t1 while t1 was running] tries to take hold of single.lock, which is needed to execute any task, This creates deadlock state and can be prevented by sequential task execution. --- classes/vigiles.bbclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/classes/vigiles.bbclass b/classes/vigiles.bbclass index ecf7d19..ff64610 100644 --- a/classes/vigiles.bbclass +++ b/classes/vigiles.bbclass @@ -571,8 +571,6 @@ def _get_uboot_pf(d): python do_vigiles_uboot_config() { import shutil - bb.build.exec_func("do_vigiles_pkg", d) - if not bb.data.inherits_class('uboot-config', d): return @@ -678,7 +676,7 @@ python() { d.getVar('PREFERRED_PROVIDER_virtual/bootloader') or '' if pn == boot_pn: - bb.build.addtask('do_vigiles_uboot_config', 'do_rm_work', 'do_compile', d) + bb.build.addtask('do_vigiles_uboot_config', 'do_rm_work', 'do_compile do_vigiles_pkg', d) d.appendVarFlag('do_vigiles_uboot_config', 'depends', ' %s:do_compile' % pn) }