Skip to content

Migrate Glymur-CRD to the YAML partition source - #172

Open
Igor Opaniuk (igoropaniuk) wants to merge 5 commits into
qualcomm-linux:mainfrom
igoropaniuk:feat/glymur-yaml-board
Open

Igor Opaniuk (igoropaniuk) wants to merge 5 commits into
qualcomm-linux:mainfrom
igoropaniuk:feat/glymur-yaml-board

Conversation

@igoropaniuk

Copy link
Copy Markdown
Contributor

Tthe first board moves off partitions.conf.

gen_partition board mode gains a default output layout: without -o, each storage is written to <outdir>/<storage-id>/partitions.xml (-C, default the current directory), so callers no longer enumerate storages. platforms/boards/glymur-crd.yaml declares both storages (NVMe + SPI-NOR) with every partition inline, in the exact order of the legacy .conf files, since partition order determines GPT offsets.

The Makefile gains a generic rule template for YAML boards - the board list is discovered from platforms/boards/, each board declares only its storages, and migrated boards are excluded from the .conf glob - so later migrations need no Makefile changes. The YAML loader parity tests are repointed to a committed fixture, and the two partitions.conf files are removed.

The whole build is invoked as:

qcom-ptool gen_partition --board platforms/boards/glymur-crd.yaml -C platforms/glymur-crd

with ptool and gen_contents consuming the per-storage partitions.xml as before. Every generated artifact is byte-identical to the .conf build, which CI proves via the pinned checksum manifest - nothing that gets flashed changes.

[1] #124

In board mode -o is now optional: without it each storage is written
to <outdir>/<storage-id>/partitions.xml (outdir from -C, default the
current directory), so callers need not enumerate storages.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
Both storages inline in the exact legacy .conf order (order determines
GPT offsets). All 38 generated artifacts verified byte-identical to
the .conf build. The .conf files stay until the Makefile switches over.

[1] qualcomm-linux#124

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
The board list is discovered from platforms/boards/ and each board's
storage ids are read from its file; a template generates one grouped
build rule per board and excludes migrated boards from the .conf glob,
so adding a board needs no Makefile changes. Glymur-CRD is the first
entry. Artifacts and the checksum manifest are unchanged.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
Point the YAML loader parity tests at a committed .conf fixture, so
they stop depending on a live board about to lose its .conf. Byte
fidelity of the board itself is covered by the checksum manifest.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
Glymur-CRD now builds from its YAML board; generated artifacts and
the checksum manifest are unchanged.

[1] qualcomm-linux#124

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
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.

1 participant