diff --git a/recipes-kernel/images/linux-qcom-uki.bb b/recipes-kernel/images/linux-qcom-uki.bb index fec8925e2..33a5e9732 100644 --- a/recipes-kernel/images/linux-qcom-uki.bb +++ b/recipes-kernel/images/linux-qcom-uki.bb @@ -22,7 +22,12 @@ do_configure[depends] += " \ systemd-boot:do_deploy \ virtual/kernel:do_deploy \ " -do_configure[depends] += "${@ '${INITRAMFS_IMAGE}:do_image_complete' if d.getVar('INITRAMFS_IMAGE') else ''}" + +python __anonymous () { + initramfs_image = d.getVar('INITRAMFS_IMAGE') + if initramfs_image: + d.appendVarFlag('do_configure', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') +} do_compile() { # Construct the ukify command