Skip to content

Commit fd11163

Browse files
committed
image_types_qcom: move qcom-partition-confs to machine config
Machine's partition configuration can be provided by various recipes (especially for machines supported outside of the meta-qcom layer). Also this configuration option is machine-specific rather than being SoC-specific. Make machine configs specify the recipe used to provide rawprogramN.xml, patchN.xml and GPT data. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 4977704 commit fd11163

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ QCOM_DTB_FILE ?= "dtb.bin"
1717

1818
QCOM_BOOT_FILES_SUBDIR ?= ""
1919

20+
QCOM_PARTITION_CONF ?= ""
21+
2022
QCOM_ROOTFS_FILE ?= "rootfs.img"
2123
IMAGE_QCOMFLASH_FS_TYPE ??= "ext4"
2224

2325
QCOMFLASH_DIR = "${IMGDEPLOYDIR}/${IMAGE_NAME}.qcomflash"
2426
IMAGE_CMD:qcomflash = "create_qcomflash_pkg"
2527
do_image_qcomflash[dirs] = "${QCOMFLASH_DIR}"
2628
do_image_qcomflash[cleandirs] = "${QCOMFLASH_DIR}"
27-
do_image_qcomflash[depends] += "qcom-partition-confs:do_deploy virtual/kernel:do_deploy \
29+
do_image_qcomflash[depends] += "${@ ['', '${QCOM_PARTITION_CONF}:do_deploy'][d.getVar('QCOM_PARTITION_CONF') != '']} \
30+
virtual/kernel:do_deploy \
2831
${@'${QCOM_ESP_IMAGE}:do_image_complete' if d.getVar('QCOM_ESP_IMAGE') != '' else ''}"
2932
IMAGE_TYPEDEP:qcomflash += "${IMAGE_QCOMFLASH_FS_TYPE}"
3033

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-partition-confs"
19+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qrb2210-rb1"

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-partition-confs"
20+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs6490"

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-partition-confs"
20+
EXTRA_IMAGEDEPENDS += "firmware-qcom-boot-qcs9100"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +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"

conf/machine/qcs9100-ride-sx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +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"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +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"

0 commit comments

Comments
 (0)