Skip to content

Commit 4a1472e

Browse files
committed
image_types_qcom: copy spinor firmware if available
Spinor firmware is needed on x7181-based devices, and recently included as part of hamoa sprint one release. Signed-off-by: Shoudi Li <[email protected]>
1 parent b3416be commit 4a1472e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ create_qcomflash_pkg() {
116116
find "${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/sail_nor" -maxdepth 1 -type f -exec install -m 0644 {} sail_nor \;
117117
fi
118118

119+
# spinor firmware
120+
if [ -d "${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/spinor" ]; then
121+
install -d spinor
122+
find "${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/spinor" -maxdepth 1 -type f -exec install -m 0644 {} spinor \;
123+
find "${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/spinor" -maxdepth 1 -type f -name 'xbl_s_devprg_ns.melf' -exec install -m 0644 {} . \;
124+
fi
125+
119126
# Create symlink to ${QCOMFLASH_DIR} dir
120127
ln -rsf ${QCOMFLASH_DIR} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.qcomflash
121128

0 commit comments

Comments
 (0)