Skip to content

Commit d6a1a6c

Browse files
committed
qcom-partition-confs: split to per-machine recipes
In order to support accessing partition data from generic machine builds, partition config should not be machine-specific. Split the single qcom-partition-confs recipe into per-machine recipes. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent fd11163 commit d6a1a6c

10 files changed

+29
-23
lines changed

conf/machine/qcs6490-rb3gen2-core-kit.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
2020

2121
QCOM_CDT_FILE = "cdt_core_kit"
2222
QCOM_BOOT_FILES_SUBDIR = "qcm6490"
23-
QCOM_PARTITION_CONF = "qcom-partition-confs"
23+
QCOM_PARTITION_CONF = "qcom-partition-conf-qcs6490-rb3gen2"

conf/machine/qcs9100-ride-sx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
2222

2323
QCOM_CDT_FILE = "cdt_ride_sx"
2424
QCOM_BOOT_FILES_SUBDIR = "qcs9100"
25-
QCOM_PARTITION_CONF = "qcom-partition-confs"
25+
QCOM_PARTITION_CONF = "qcom-partition-conf-qcs9100-ride-sx"

conf/machine/qrb2210-rb1-core-kit.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ KERNEL_CLASSES += "linux-qcom-bootimg"
2323
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "qbootctl"
2424

2525
QCOM_BOOT_FILES_SUBDIR = "qrb2210"
26-
QCOM_PARTITION_CONF = "qcom-partition-confs"
26+
QCOM_PARTITION_CONF = "qcom-partition-conf-qrb2210-rb1"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MACHINE_DESC = "Qualcomm RB3 Gen2"
2+
3+
PARTCONF = "qcm6490-partitions.conf"
4+
5+
QCOM_PARTCONF_SUBDIR = "qcm6490"
6+
7+
include qcom-partition-conf.inc
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MACHINE_DESC = "Qualcomm QCS9100 Ride SX"
2+
3+
PARTCONF = "qcs9100-partitions.conf"
4+
5+
QCOM_PARTCONF_SUBDIR = "qcs9100"
6+
7+
include qcom-partition-conf.inc
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MACHINE_DESC = "Qualcomm RB1"
2+
3+
PARTCONF = "qcm2290-partitions.conf"
4+
5+
QCOM_PARTCONF_SUBDIR = "qrb2210"
6+
7+
include qcom-partition-conf.inc
Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,25 @@
1-
SUMMARY = "Qualcomm machine specific partition configuration"
2-
DESCRIPTION = "GPT partition binaries and QDL scripts for supported machines."
1+
SUMMARY = "Partition configuration for ${MACHINE_DESC}"
2+
DESCRIPTION = "GPT partition binaries and QDL scripts for ${MACHINE_DESC}."
33
LICENSE = "BSD-3-Clause-Clear"
44
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause-Clear;md5=7a434440b651f4a472ca93716d01033a"
55

66
DEPENDS += "qcom-gen-partitions-tool-native qcom-ptool-native"
77

8-
SRC_URI = " \
9-
file://qcm6490-partitions.conf \
10-
file://qcs9100-partitions.conf \
11-
file://qcm2290-partitions.conf \
12-
"
8+
SRC_URI = "file://${PARTCONF}"
139

1410
S = "${WORKDIR}/sources"
1511
UNPACKDIR = "${S}"
1612
B = "${WORKDIR}/build"
1713

1814
inherit python3native deploy
1915

16+
inherit allarch
17+
2018
INHIBIT_DEFAULT_DEPS = "1"
2119

2220
do_configure[noexec] = "1"
2321
do_install[noexec] = "1"
2422

25-
QCOM_PARTCONF_SUBDIR ?= ""
26-
QCOM_PARTCONF_SUBDIR:qcm6490 ?= "qcm6490"
27-
QCOM_PARTCONF_SUBDIR:qcs9100 ?= "qcs9100"
28-
QCOM_PARTCONF_SUBDIR:qcm2290 ?= "qrb2210"
29-
30-
PARTCONF ?= ""
31-
PARTCONF:qcm6490 ?= "qcm6490-partitions.conf"
32-
PARTCONF:qcs9100 ?= "qcs9100-partitions.conf"
33-
PARTCONF:qcm2290 ?= "qcm2290-partitions.conf"
34-
3523
do_compile() {
3624
gen_partition.py -i ${S}/${PARTCONF} -o ${B}/partition.xml
3725
ptool.py -x ${B}/partition.xml
@@ -49,6 +37,3 @@ do_deploy() {
4937
install -m 0644 ${B}/wipe_rawprogram_PHY*.xml -D ${DEPLOYDIR}/${QCOM_PARTCONF_SUBDIR}
5038
}
5139
addtask deploy before do_build after do_compile
52-
53-
COMPATIBLE_MACHINE = "(qcm6490|qcs9100|qcm2290)"
54-
PACKAGE_ARCH = "${MACHINE_ARCH}"

0 commit comments

Comments
 (0)