Skip to content

Commit 971ec0e

Browse files
committed
qcom-gen-partition-bins: fold into qcom-partition-confs
Fold the generation of GPT data and QDL XML files into the recipe that provides original partition data. This removes extra step during boot files generation and simplifies forthcoming changes to generate all partition binaries at the same time. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent b91a363 commit 971ec0e

File tree

6 files changed

+18
-48
lines changed

6 files changed

+18
-48
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ QCOMFLASH_DIR = "${IMGDEPLOYDIR}/${IMAGE_NAME}.qcomflash"
2222
IMAGE_CMD:qcomflash = "create_qcomflash_pkg"
2323
do_image_qcomflash[dirs] = "${QCOMFLASH_DIR}"
2424
do_image_qcomflash[cleandirs] = "${QCOMFLASH_DIR}"
25-
do_image_qcomflash[depends] += "qcom-gen-partition-bins:do_deploy virtual/kernel:do_deploy \
25+
do_image_qcomflash[depends] += "qcom-partition-confs:do_deploy virtual/kernel:do_deploy \
2626
${@'${QCOM_ESP_IMAGE}:do_image_complete' if d.getVar('QCOM_ESP_IMAGE') != '' else ''}"
2727
IMAGE_TYPEDEP:qcomflash += "${IMAGE_QCOMFLASH_FS_TYPE}"
2828

conf/machine/include/qcom-qcm2290.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ MACHINE_EXTRA_RRECOMMENDS += " \
1616
packagegroup-qcom-boot-additional \
1717
"
1818

19-
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qrb2210-rb1 qcom-gen-partition-bins"
19+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qrb2210-rb1 qcom-partition-confs"

conf/machine/include/qcom-qcs6490.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ MACHINE_EXTRA_RRECOMMENDS += " \
1717
packagegroup-qcom-boot-additional \
1818
"
1919

20-
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs6490 qcom-gen-partition-bins"
20+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs6490 qcom-partition-confs"

conf/machine/include/qcom-qcs9100.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ MACHINE_EXTRA_RRECOMMENDS += " \
1717
packagegroup-qcom-boot-additional \
1818
"
1919

20-
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs9100 qcom-gen-partition-bins"
20+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs9100 qcom-partition-confs"
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
SUMMARY = "Qualcomm machine specific partition configuration"
2-
DESCRIPTION = "Machine partition configuration used by qcom-gen-partitions-tool \
3-
for generating the machine specific partition.xml file."
2+
DESCRIPTION = "GPT partition binaries and QDL scripts for supported machines."
43
LICENSE = "BSD-3-Clause-Clear"
54
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause-Clear;md5=7a434440b651f4a472ca93716d01033a"
65

7-
DEPENDS += "qcom-gen-partitions-tool-native"
6+
DEPENDS += "qcom-gen-partitions-tool-native qcom-ptool-native"
87

98
SRC_URI = " \
109
file://qcm6490-partitions.conf \
1110
file://qcs9100-partitions.conf \
1211
file://qcm2290-partitions.conf \
1312
"
1413

15-
PROVIDES += "virtual/partconf"
16-
1714
S = "${WORKDIR}/sources"
1815
UNPACKDIR = "${S}"
1916
B = "${WORKDIR}/build"
@@ -23,24 +20,29 @@ inherit python3native deploy
2320
INHIBIT_DEFAULT_DEPS = "1"
2421

2522
do_configure[noexec] = "1"
23+
do_install[noexec] = "1"
2624

2725
PARTCONF ?= ""
2826
PARTCONF:qcm6490 ?= "qcm6490-partitions.conf"
2927
PARTCONF:qcs9100 ?= "qcs9100-partitions.conf"
3028
PARTCONF:qcm2290 ?= "qcm2290-partitions.conf"
3129

3230
do_compile() {
33-
gen_partition.py -i ${S}/${PARTCONF} -o ${B}/${MACHINE}-partition.xml
34-
}
35-
36-
do_install() {
37-
install -D -m0644 ${B}/${MACHINE}-partition.xml ${D}${datadir}/qcom-partition-confs/${MACHINE}-partition.xml
31+
gen_partition.py -i ${S}/${PARTCONF} -o ${B}/partition.xml
32+
ptool.py -x ${B}/partition.xml
3833
}
3934

4035
do_deploy() {
41-
install -m 0644 ${B}/${MACHINE}-partition.xml -D ${DEPLOYDIR}/partition.xml
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}
4244
}
43-
addtask deploy after do_install
45+
addtask deploy before do_build after do_compile
4446

4547
COMPATIBLE_MACHINE = "(qcm6490|qcs9100|qcm2290)"
4648
PACKAGE_ARCH = "${MACHINE_ARCH}"

recipes-devtools/partition-utils/qcom-gen-partition-bins_1.0.bb

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)