Skip to content

Commit 4ca8414

Browse files
committed
qcom-partition-conf: package partition data from qcom-ptool repo
We currently have two sources of partition information: qcom-ptool repo and a set of partition.conf files in meta-qcom. In order to limit duplication, increase the duplication by making partition data from the qcom-ptool repo being available for machines to use. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 7973375 commit 4ca8414

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SUMMARY = "Partition configuration for Qualcomm devices"
2+
DESCRIPTION = "GPT partition binaries and QDL scripts for Qualcomm reference devices"
3+
LICENSE = "BSD-3-Clause"
4+
LIC_FILES_CHKSUM = "file://LICENSE;md5=b0a8acd90d872086b279ead88af03369"
5+
6+
SRC_URI = "git://github.com/qualcomm-linux/qcom-ptool.git;branch=main;protocol=https"
7+
SRCREV = "7a53ec22da88e953586519833c24e6b677e8e5b9"
8+
9+
INHIBIT_DEFAULT_DEPS = "1"
10+
11+
inherit deploy allarch
12+
13+
do_install[noexec] = "1"
14+
15+
do_deploy() {
16+
cd platforms
17+
for gpt in `find . -name gpt_main0.bin` ; do
18+
QCOM_PLATFORM_SUBDIR=${gpt%%/gpt_main0.bin}
19+
install -d ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
20+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/gpt_backup*.bin -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
21+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/gpt_both*.bin -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
22+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/gpt_empty*.bin -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
23+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/gpt_main*.bin -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
24+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/patch*.xml -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
25+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/rawprogram*.xml -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
26+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/zeros_*.bin -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
27+
install -m 0644 ${QCOM_PLATFORM_SUBDIR}/wipe_rawprogram_PHY*.xml -D ${DEPLOYDIR}/partitions/${QCOM_PLATFORM_SUBDIR}
28+
done
29+
}
30+
addtask deploy before do_build after do_compile

0 commit comments

Comments
 (0)