Skip to content

Commit 0348c9d

Browse files
committed
qcom-partition-confs: prepare to installing images to a subdir
Add QCOM_PARTCONF_SUBDIR variable, which when set to a non-empty value makes qcom-partition-confs install QDL files into a specified subdiretory. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent a06c289 commit 0348c9d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

recipes-bsp/partition/qcom-partition-confs_1.0.bb

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ INHIBIT_DEFAULT_DEPS = "1"
2222
do_configure[noexec] = "1"
2323
do_install[noexec] = "1"
2424

25+
QCOM_PARTCONF_SUBDIR ?= ""
26+
2527
PARTCONF ?= ""
2628
PARTCONF:qcm6490 ?= "qcm6490-partitions.conf"
2729
PARTCONF:qcs9100 ?= "qcs9100-partitions.conf"
@@ -33,14 +35,15 @@ do_compile() {
3335
}
3436

3537
do_deploy() {
36-
install -m 0644 ${B}/gpt_backup*.bin -D ${DEPLOYDIR}
37-
install -m 0644 ${B}/gpt_both*.bin -D ${DEPLOYDIR}
38-
install -m 0644 ${B}/gpt_empty*.bin -D ${DEPLOYDIR}
39-
install -m 0644 ${B}/gpt_main*.bin -D ${DEPLOYDIR}
40-
install -m 0644 ${B}/patch*.xml -D ${DEPLOYDIR}
41-
install -m 0644 ${B}/rawprogram*.xml -D ${DEPLOYDIR}
42-
install -m 0644 ${B}/zeros_*.bin -D ${DEPLOYDIR}
43-
install -m 0644 ${B}/wipe_rawprogram_PHY*.xml -D ${DEPLOYDIR}
38+
install -d ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
39+
install -m 0644 ${B}/gpt_backup*.bin -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
40+
install -m 0644 ${B}/gpt_both*.bin -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
41+
install -m 0644 ${B}/gpt_empty*.bin -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
42+
install -m 0644 ${B}/gpt_main*.bin -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
43+
install -m 0644 ${B}/patch*.xml -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
44+
install -m 0644 ${B}/rawprogram*.xml -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
45+
install -m 0644 ${B}/zeros_*.bin -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
46+
install -m 0644 ${B}/wipe_rawprogram_PHY*.xml -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
4447
}
4548
addtask deploy before do_build after do_compile
4649

0 commit comments

Comments
 (0)