Adding a generationDraft
A generation is a marketing generation (M1, M2 and so on). It is the key of
the documentation tree: everything that is a fact about the hardware of one
generation lives under m<N>/, with the SoCs of that generation as sections
or columns inside the pages. Mechanisms that hold for every generation stay
on the generic pages. A generation that has no descriptor has no pages of
its own; the only place that names it is Supported hardware,
which says "no descriptor yet".
Steps#
-
Add the descriptor of at least one board under
devices/<soc>/, as described in Adding a device. -
List the SoC directory in the
[[family]]entry of the generation indocs-src/_notes/hardware.toml, and add the marketing names of the SoC and the board in the same file. -
Add one status per feature and device to
docs-src/_notes/features.toml. A device with no result gets-. The generator refusesworkswithout an evidence entry that names an area of the hardware results. -
To let the generator write the hardware blocks page, add
adt_fixtureto the[[soc]]entry: the path of a sanitised device-tree dump (see Adding a device). -
Create the draft hand pages with the scaffold option, then add the navigation section it names to
docs-src/nav.toml:python3 -I tools/docs/gen_ref.py --scaffold m<N> python3 -I tools/docs/gen_ref.py -
Fill the scaffolded pages. Every statement needs a source: a descriptor, the code or a hardware result. What is not known stays "not verified or unknown".
What is generated and what is written by hand#
| Page | Kind |
|---|---|
m<N>/index.md, m<N>/status.md, m<N>/devices/*.md |
generated from descriptors and features.toml |
m<N>/hardware.md |
generated from the device-tree fixture, when one is named |
m<N>/boot.md, m<N>/platform.md, m<N>/cpu-power.md |
hand-written; the scaffold creates drafts |
m<N>/drivers/<stream>.md |
hand-written source under docs-src/_notes/pages/, with a generated status block |
drivers/<stream>.md |
generic page of the stream, with a generated table that links every generation |
A page under m<N>/drivers/ has five second-level sections, in this order:
Hardware on this generation, How the code reaches it, Firmware and
tunables, Status and Not verified or unknown. The documentation gate checks
them. The same gate warns when a page outside a generation section names a
SoC, a board, a model id or a hex constant.