Skip to content

Commit

Permalink
image_types_qcom: create additional symlinks
Browse files Browse the repository at this point in the history
Create additional symlinks rootfs.img, efi.bin, dtb.bin, so it's
possible to use directly boot artifacts published in the deploy folder
for flashing with QDL.

$ qdl --debug prog_firehose_ddr.elf rawprogram?.xml patch?.xml

Signed-off-by: Igor Opaniuk <[email protected]>
  • Loading branch information
igoropaniuk committed Dec 11, 2024
1 parent d4839f2 commit 4962ae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes-recipe/image_types_qcom.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ create_qcomflash_pkg() {
# esp image
if [ -n "${QCOM_ESP_FILE}" ]; then
install -m 0644 ${DEPLOY_DIR_IMAGE}/${QCOM_ESP_IMAGE}-${MACHINE}.rootfs.vfat ${QCOM_ESP_FILE}
ln -sf ${QCOM_ESP_IMAGE}-${MACHINE}.rootfs.vfat ${IMGDEPLOYDIR}/${QCOM_ESP_FILE}
fi

# dtb image
if [ -n "${QCOM_DTB_DEFAULT}" ] && \
[ -f "${DEPLOY_DIR_IMAGE}/dtb-${QCOM_DTB_DEFAULT}-image.vfat" ]; then
# default image
install -m 0644 ${DEPLOY_DIR_IMAGE}/dtb-${QCOM_DTB_DEFAULT}-image.vfat ${QCOM_DTB_FILE}
ln -sf dtb-${QCOM_DTB_DEFAULT}-image.vfat ${IMGDEPLOYDIR}/${QCOM_DTB_FILE}
# copy all images so they can be made available via the same tarball
for dtbimg in ${DEPLOY_DIR_IMAGE}/dtb-*-image.vfat; do
install -m 0644 ${dtbimg} .
Expand All @@ -45,6 +47,7 @@ create_qcomflash_pkg() {

# rootfs image
install -m 0644 ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${IMAGE_QCOMFLASH_FS_TYPE} ${QCOM_ROOTFS_FILE}
ln -sf ${IMAGE_LINK_NAME}.${IMAGE_QCOMFLASH_FS_TYPE} ${IMGDEPLOYDIR}/${QCOM_ROOTFS_FILE}

# partition bins
for pbin in `find ${DEPLOY_DIR_IMAGE} -type f -name 'gpt_main*.bin' \
Expand Down

0 comments on commit 4962ae9

Please sign in to comment.