Skip to content

Tools: Add partition layout XML to Snagfactory YAML generator - #6

Merged
BakyarajM merged 1 commit into
qualcomm-linux:qcom-nextfrom
sumitsinghdhami-qc:qcom-snagfactory-yaml-generation
Oct 4, 2026
Merged

BakyarajM merged 1 commit into
qualcomm-linux:qcom-nextfrom
sumitsinghdhami-qc:qcom-snagfactory-yaml-generation

Conversation

@sumitsinghdhami-qc

Copy link
Copy Markdown
Add partition_xml_to_snagfactory_yaml.py to convert Qualcomm
partition XML files into Snagfactory YAML flash tasks.

The generated YAML supports recovery flashing for UFS and SAIL-NOR
targets.

@@ -0,0 +1,809 @@
#!/usr/bin/env python3

@BakyarajM BakyarajM Sep 30, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a copyright here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright added.

# ---------------------------------------------------------------------------
# Flash type detection (UFS vs SPI-NOR/MTD)
# ---------------------------------------------------------------------------

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please maintain consistency in adding new lines between comments and code start

"num_sectors": self.boundary_sectors,
"end_sector": self.boundary_sectors - 1,
}]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, consistency in number of newlines required

@sumitsinghdhami-qc
sumitsinghdhami-qc force-pushed the qcom-snagfactory-yaml-generation branch from e5e4b69 to 10ed645 Compare September 30, 2026 13:08
@sumitsinghdhami-qc
sumitsinghdhami-qc force-pushed the qcom-snagfactory-yaml-generation branch from daa171f to 6b5ab11 Compare September 30, 2026 13:24
@sumitsinghdhami-qc

Copy link
Copy Markdown
Author

Hi Bakyaraj, fixed the formatting issues and added the copyright.

@BakyarajM BakyarajM changed the title tools: qcom: add partition XML to Snagfactory YAML generator Tools: Add partition layout XML to Snagfactory YAML generator Oct 1, 2026
Add partition_xml_to_snagfactory_yaml.py to convert partition
XML files into Snagfactory YAML flash tasks.

The generated YAML supports recovery flashing for UFS and SAIL-NOR
targets.

Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
@sumitsinghdhami-qc
sumitsinghdhami-qc force-pushed the qcom-snagfactory-yaml-generation branch from 6b5ab11 to a7ce4ce Compare October 1, 2026 10:23
@BakyarajM
BakyarajM merged commit 6e73169 into qualcomm-linux:qcom-next Oct 4, 2026
14 checks passed
@sumitsinghdhami-qc
sumitsinghdhami-qc deleted the qcom-snagfactory-yaml-generation branch October 5, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants