Skip to content

Commit

Permalink
Update kernel versions
Browse files Browse the repository at this point in the history
Add 6.8 stable and 6.9-rc. This will allow to use 6.8 in cilium/ebpf CI
instead of 6.7 which is EOL.

Also update update-version.sh to filter out EOL releases. Turns out this
is easier to achieve using https://www.kernel.org/releases.json as a
source and using just jq for JSON transformation.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser authored and lmb committed Apr 10, 2024
1 parent 33b52bb commit e815a72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $ ./buildx.sh 6.1 amd64 vmlinux --tag foo:vmlinux

## Updating versions

Use `update-version.sh` (requires `awk`, `jq` and `xmllint`):
Use `update-version.sh` (requires `jq`):

```shell
./update-versions.sh
Expand Down
13 changes: 5 additions & 8 deletions update-versions.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash
# Fetch the releases encoded in the kernel.org homepage and store them as a JSON.

exec curl -sL https://www.kernel.org/ |
xmllint --html --xpath "//table[@id='releases']/tr[.//a[contains(text(), 'tarball')]]/td/strong/text() | //table[@id='releases']/tr[.//a[contains(text(), 'tarball')]]/td[1]/text()" - 2>/dev/null |
awk '
BEGIN { ORS=""; print "[" }
/:/ { gsub(/:/, ""); type=$0; getline; version=$0; print (NR>2?",":"") "{\"version\": \"" version "\", \"type\": \"" type "\"}" }
END { print "]" }
' |
jq '.' | tee versions.json
exec curl -sL https://www.kernel.org/releases.json |
jq '[ .releases[] |
select(.iseol == false and .moniker != "linux-next") |
{ "version" : .version, "type" : .moniker }]' |
tee versions.json
16 changes: 8 additions & 8 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[
{
"version": "6.8-rc4",
"version": "6.9-rc3",
"type": "mainline"
},
{
"version": "6.7.4",
"version": "6.8.4",
"type": "stable"
},
{
"version": "6.6.16",
"version": "6.6.25",
"type": "longterm"
},
{
"version": "6.1.77",
"version": "6.1.84",
"type": "longterm"
},
{
"version": "5.15.148",
"version": "5.15.153",
"type": "longterm"
},
{
"version": "5.10.209",
"version": "5.10.214",
"type": "longterm"
},
{
"version": "5.4.268",
"version": "5.4.273",
"type": "longterm"
},
{
"version": "4.19.306",
"version": "4.19.311",
"type": "longterm"
}
]

0 comments on commit e815a72

Please sign in to comment.