Skip to content

Commit ecf2501

Browse files
committed
image-types-qcom: separate subdirs for boot firmware and partitions
We typically have a set of boot files that can be used for several devices, while partition table is usually more device-specfic. Add support for specifying separate subdir for partition data. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent d607be4 commit ecf2501

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ QCOM_DTB_DEFAULT ?= "${@os.path.basename(d.getVar('KERNEL_DEVICETREE').split()[0
2121
QCOM_DTB_FILE ?= "dtb.bin"
2222

2323
QCOM_BOOT_FILES_SUBDIR ?= ""
24+
QCOM_PARTITION_FILES_SUBDIR ?= "${QCOM_BOOT_FILES_SUBDIR}"
2425

2526
QCOM_PARTITION_CONF ?= ""
2627

@@ -77,13 +78,13 @@ create_qcomflash_pkg() {
7778
install -m 0644 ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${IMAGE_QCOMFLASH_FS_TYPE} ${QCOM_ROOTFS_FILE}
7879

7980
# partition bins
80-
for pbin in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name 'gpt_main*.bin' \
81+
for pbin in `find ${DEPLOY_DIR_IMAGE}/${QCOM_PARTITION_FILES_SUBDIR} -maxdepth 1 -type f -name 'gpt_main*.bin' \
8182
-o -name 'gpt_backup*.bin' -o -name 'patch*.xml'`; do
8283
install -m 0644 ${pbin} .
8384
done
8485

8586
# skip BLANK_GPT and WIPE_PARTITIONS for rawprogram xml files
86-
for rawpg in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name 'rawprogram*.xml' \
87+
for rawpg in `find ${DEPLOY_DIR_IMAGE}/${QCOM_PARTITION_FILES_SUBDIR} -maxdepth 1 -type f -name 'rawprogram*.xml' \
8788
! -name 'rawprogram*_BLANK_GPT.xml' ! -name 'rawprogram*_WIPE_PARTITIONS.xml'`; do
8889
install -m 0644 ${rawpg} .
8990
done
@@ -97,7 +98,7 @@ create_qcomflash_pkg() {
9798
for logfs in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name 'logfs_*.bin'`; do
9899
install -m 0644 ${logfs} .
99100
done
100-
for zeros in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name 'zeros_*.bin'`; do
101+
for zeros in `find ${DEPLOY_DIR_IMAGE}/${QCOM_PARTITION_FILES_SUBDIR} -maxdepth 1 -type f -name 'zeros_*.bin'`; do
101102
install -m 0644 ${zeros} .
102103
done
103104

0 commit comments

Comments
 (0)