Commit Graph

10 Commits

Author SHA1 Message Date
Atemu
fd3c915975 linux-kernels: add LTS flag
This serves to differentiate between a kernel that is an LTS release and one
that is merely a regular "stable" release.
2025-08-23 17:42:41 +02:00
K900
6a2e37b318 linux/update-mainline: fix oldest version check 2024-11-08 22:01:52 +03:00
K900
d44b3f0e75 linux/update-mainline: fix -rc version spelling, clean up a bit 2024-07-30 11:22:18 +03:00
K900
4363d5a0f5 linux/update-mainline: always pick the latest kernel on a branch
Also clean up stringy version handling a bit
2024-07-27 18:11:48 +03:00
K900
cd70dc73d8 linux/kernel/update-mainline: don't readd EOL kernels 2024-04-10 18:10:12 +03:00
Maximilian Bosch
76d763eeb9 linux: ignore kernel branches older than min supported branch
Right now, hashes for 4.14 are kept (and thus also maintained by the
hardened updater) even though we don't support that anymore, the oldest
supported branch is 4.19.

To avoid having to remember too many places where to drop a kernel when
dropping an old one (next will be 4.19), the oldest kernel branch will
be determined by the lowest version number in the keys of
`kernels-org.json`. That way, it's sufficient to drop an old branch
from this file and it will be ignored on the upcoming update runs.

Yes, the code to read from that file is duplicated, but I'd expect the
min version to change way more often than 3 lines of code reading a
version from a JSON file[1].

The logic is fairly simple though: if the branch (i.e. MAJOR.MINOR) of a
kernel that's listed on kernel.org[2] is older than the oldest version
in `kernels-org.json`, it's omitted on update and a message is printed
like this:

    [...]
    linux_5_4: 5.4.265 is latest, skipping...
    linux_4_19: 4.19.303 is latest, skipping...
    4.14 is too old and not supported anymore, skipping...

Kernels that have the branch `testing` are excluded from that check and
always allowed.

[1] Also, I'm unhappy already that I can't just do a relative import in
    here to deduplicate the function and for 3 lines of code it seems
    like unnecessarily much effort to create a python package structure
    here.
[2] Kernels that got unlisted there are too old to be added/kept here
    anyways.
2024-01-02 18:43:41 +01:00
Alyssa Ross
73b01822c4 linux/update-mainline.py: log to stderr 2023-10-02 20:21:45 +00:00
K900
eadfc7b131 linux/update-script: format with black + isort 2023-09-22 16:10:58 +03:00
K900
c08efe1438 linux: more update-script cleanups/fixes
- special case linux-testing fetching
- use hash instead of sha256 everywhere
- respect COMMIT envvar

This causes rebuilds, so should go in with the next bump probably.
2023-09-22 16:09:59 +03:00
K900
662a2c460d linux: rewrite updater-script, make data-driven
Co-authored-by: Raito Bezarius <masterancpp@gmail.com>
2023-09-22 10:38:44 +03:00