Skip to content

Commit

Permalink
linux-qcom-uki.bb: Fix build error if INITRAMFS_IMAGE undefined
Browse files Browse the repository at this point in the history
Fix below error seen when INITRAMFS_IMAGE is undefined.

ERROR: Error for linux-qcom-uki.bb:do_configure[depends], dependency
'${@ '${INITRAMFS_IMAGE}:do_image_complete' if d.getVar('INITRAMFS_IMAGE') else ''}' does not contain exactly one ':' character.
Task 'depends' should be specified in the form 'packagename:task'

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
  • Loading branch information
quic-vkraleti committed Sep 12, 2024
1 parent 0481a10 commit 41f417e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipes-kernel/images/linux-qcom-uki.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41f417e

Please sign in to comment.