From 17e20ee314b01283d84e200195aebdf4c87fce29 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Thu, 9 Jan 2025 19:10:31 +0100 Subject: [PATCH] image_types_qcom: create image-specific subfolders Create image-specific subfolder in DEPLOY_DIR_IMAGE besides qcomflash tarball archive. This allows to run QDL for device flashing on that folder directly for local builds. Signed-off-by: Igor Opaniuk --- classes-recipe/image_types_qcom.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes-recipe/image_types_qcom.bbclass b/classes-recipe/image_types_qcom.bbclass index 86229287..310526fd 100644 --- a/classes-recipe/image_types_qcom.bbclass +++ b/classes-recipe/image_types_qcom.bbclass @@ -18,10 +18,9 @@ QCOM_DTB_FILE ?= "dtb.bin" QCOM_ROOTFS_FILE ?= "rootfs.img" IMAGE_QCOMFLASH_FS_TYPE ??= "ext4" -QCOMFLASH_DIR = "${WORKDIR}/qcomflash" +QCOMFLASH_DIR = "${IMGDEPLOYDIR}/${IMAGE_NAME}" IMAGE_CMD:qcomflash = "create_qcomflash_pkg" do_image_qcomflash[dirs] = "${QCOMFLASH_DIR}" -do_image_qcomflash[cleandirs] = "${QCOMFLASH_DIR}" do_image_qcomflash[depends] += "qcom-gen-partition-bins:do_deploy virtual/kernel:do_deploy \ ${@'${QCOM_ESP_IMAGE}:do_image_complete' if d.getVar('QCOM_ESP_IMAGE') != '' else ''}" IMAGE_TYPEDEP:qcomflash += "${IMAGE_QCOMFLASH_FS_TYPE}" @@ -68,6 +67,9 @@ create_qcomflash_pkg() { install -m 0644 ${bfw} . done + # Create symlink to ${QCOMFLASH_DIR} dir + ln -rsf ${QCOMFLASH_DIR} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME} + # Create qcomflash tarball ${IMAGE_CMD_TAR} --sparse --numeric-owner --transform="s,^\./,${IMAGE_BASENAME}-${MACHINE}/," -cf- . | gzip -f -9 -n -c --rsyncable > ${IMGDEPLOYDIR}/${IMAGE_NAME}.qcomflash.tar.gz ln -sf ${IMAGE_NAME}.qcomflash.tar.gz ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.qcomflash.tar.gz