Skip to content

Commit

Permalink
linux-qcom-bootimg: fix the initrd image name handling
Browse files Browse the repository at this point in the history
Follow recent OE-core changes and include ${IMAGE_NAME_SUFFIX} into the
initrd image name.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
  • Loading branch information
lumag committed Jul 28, 2023
1 parent 89235fc commit b07cdbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-kernel/linux/linux-qcom-bootimg.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ python do_qcom_img_deploy() {
initrd = None
if d.getVar('INITRAMFS_IMAGE') != '':
initrd_image_name = d.getVar("INITRAMFS_IMAGE_NAME")
baseinitrd = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), initrd_image_name)
initrd_image_suffix = d.getVar("IMAGE_NAME_SUFFIX")
baseinitrd = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), initrd_image_name + initrd_image_suffix)
for img in (".cpio.gz", ".cpio.lz4", ".cpio.lzo", ".cpio.lzma", ".cpio.xz", ".cpio"):
if os.path.exists(baseinitrd + img):
initrd = baseinitrd + img
Expand Down

0 comments on commit b07cdbf

Please sign in to comment.