Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ its own values for:
| `binpkg` | Kernel image metapackage name. |
| `kernel_config` | Extra fragments applied on top of `debian/config-available/`, all of which is applied to every build, one per array element. A bare name selects `debian/config-available/<name>.config`; an `intree:` entry names a fragment shipped by the kernel source, as a path relative to the kernel source root (e.g. `intree:arch/arm64/configs/qcom_debug.config`), so it stays versioned with the kernel it targets. Empty for variants that need nothing beyond `config-available/`; today it carries only `intree:` fragments. `resolve-matrix.sh` joins it into the comma-separated `kernel-config` workflow input. |
| `dkms` | Out-of-tree DKMS modules built against this kernel, as an object keyed by suite, each entry a list of modules named as the stem of their `<name>-dkms` package (e.g. `kgsl`). Each module produces its own `<name>-modules-<kernelrelease>` package plus an unversioned `<binpkg>-modules-<name>` metapackage, rather than being installed into the image; a non-empty list also produces one `<binpkg>-modules` metapackage covering them all. A suite's entry is optional: a suite with no entry, and `{}` itself, builds nothing. An empty list does the same for the suite it names. A listed module is a presence contract: a build fails rather than publishing without it. There is no default or fallback, so suites that can't build a given module (e.g. an Ubuntu-family suite lacking a package) simply list less, or omit an entry entirely. `resolve-matrix.sh` joins the resolved leg's suite into the comma-separated `dkms` workflow input; see [debian/README.md](debian/README.md) for what the packaging does with it. |
| `debian_version_stub` | Base Debian revision, shared by a variant's Daily and Release rows. Must not end in `~`; the suite suffix is derived, not stored here. |
| `debian_version_stub` | Base Debian revision for this row. A variant's Daily and Release rows each have their own, so a Release can be respun without touching the Daily. Must not end in `~`; the suite suffix is derived, not stored here. |
| `debian_version_suffix` | `~` for Daily rows, empty for Release rows. Documents the delivery-type half of the revision formula on the row itself; `resolve-matrix.sh` rejects a row where this disagrees with `type`, but derivation always computes this suffix from `type`, never reads this field. |
| `localversion`, `kver_extra` | Optional version overrides forwarded to packaging. |
| `debusine_parent_workspace` | Optional parent workspace override for the variant's CI child workspaces. |
Expand All @@ -229,8 +229,7 @@ The resolver selects the most recent trailing `YYYYMMDD` date, and rejects
duplicate suites and malformed variant identifiers before any build jobs
start. It also rejects a matrix where any configured suite has no
`suite_suffix_mapping` entry, where two suites share the same suffix, where a
suffix is non-empty and doesn't start with `~`, where a variant's Daily
and Release rows disagree on `debian_version_stub`, where a row's
suffix is non-empty and doesn't start with `~`, where a row's
`debian_version_suffix` doesn't match what its `type` implies, or where a
row's `dkms` object names a suite that isn't in `suites` — all before any
build job starts.
Expand Down Expand Up @@ -528,8 +527,8 @@ To add a kernel variant:
`Daily` and one `Release`.
2. Define all package identity, source/ref strategy, configuration,
`debian_version_stub`, and suite values in both rows. Do not rely on
another variant's values. `srcpkg`, `binpkg`, and `debian_version_stub`
must remain identical across the pair. Set `debian_version_suffix` to `~`
another variant's values. `srcpkg` and `binpkg` must remain identical
across the pair. Set `debian_version_suffix` to `~`
on the Daily row and `""` on the Release row; `resolve-matrix.sh` rejects
the pair if either disagrees with its row's `type`.
3. Use `latest_tag` with a dated tag glob or `branch_tip` for Daily. Use
Expand Down
4 changes: 2 additions & 2 deletions ci/build-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"audioreach"
]
},
"debian_version_stub": "0qli1",
"debian_version_stub": "0qli2",
"debian_version_suffix": ""
},
{
Expand Down Expand Up @@ -136,7 +136,7 @@
"audioreach"
]
},
"debian_version_stub": "0qli1",
"debian_version_stub": "0qli2",
"debian_version_suffix": ""
},
{
Expand Down
3 changes: 0 additions & 3 deletions ci/scripts/resolve-matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ validation_errors=$(jq -r '
| ([ $rows[].type ] | sort) as $types
| ([ $rows[].srcpkg ] | unique) as $srcpkgs
| ([ $rows[].binpkg ] | unique) as $binpkgs
| ([ $rows[].debian_version_stub ] | unique) as $stubs
| if ($rows | length) != 2
then "kernel_variant " + $variant + " must define exactly one Daily row and one Release row"
elif $types != ["Daily", "Release"]
Expand All @@ -277,8 +276,6 @@ validation_errors=$(jq -r '
then "kernel_variant " + $variant + " must use one srcpkg across its Daily and Release rows"
elif ($binpkgs | length) != 1
then "kernel_variant " + $variant + " must use one binpkg across its Daily and Release rows"
elif ($stubs | length) != 1
then "kernel_variant " + $variant + " must use one debian_version_stub across its Daily and Release rows"
else empty
end
]
Expand Down
Loading