Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/pr-if-new-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
# Matrix build for maintenance of multiple kernels
strategy:
matrix:
branch: ['main', 'maint-6.6']
branch: ['main', 'maint-6.12', 'maint-6.6']
permissions:
pull-requests: write
contents: write
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ In some cases, we need to make changes to those to get a working build.

| branch | description |
| ------------- | -------------- |
| `main` | latest lts kernel we maintain (6.12 as of December 2025) |
| `main` | latest lts kernel we maintain (6.18) |
| `maint-6.12` | maintenance of source code for kernel 6.12 |
| `maint-6.6` | maintenance of source code for kernel 6.6 |
| `rel-1877` | backport for 1877, merge code from `main` |
| `rel-1877` | backport for 1877, merge code from `maint-6.12` |
| `rel-1592` | backport for 1592, merge code from `maint-6.6` |


Expand All @@ -55,10 +56,10 @@ git push
```

> [!Tip]
> You can find out the correct `.container` file by copying it from the corresponding tag of the https://github.com/gardenlinux/repo branch, for example [1443.0](https://github.com/gardenlinux/repo/blob/1443.0/.container)
> You can find out the correct `.container` file by copying it from the corresponding tag of the https://github.com/gardenlinux/repo branch, for example [1877.0](https://github.com/gardenlinux/repo/blob/1877.0/.container)

> [!Note]
> We must create rel- branches to include the respective `.container` file, and not use maint for backports. This is required because multiple releases can use the same kernel version (e.g. rel-1443 and rel-1592 both use maint-6.6)
> We must create `rel-*` branches to include the respective `.container` file, and not use `maint-*` for backports. This is required because multiple releases can use the same kernel version (e.g. `rel-1443` and `rel-1592` both use `maint-6.6`)

## Automated kernel patch level upgrades

Expand Down
4 changes: 1 addition & 3 deletions config/amd64/defines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ config = [
'amd64/config.cloud-amd64',
'config.gardenlinux'
]
[flavour.defs]
is_quick = true
[flavour.description]
hardware = 'x86-64 cloud'
hardware_long = 'cloud platforms including Amazon EC2, Microsoft Azure, and Google Compute Engine'
Expand All @@ -34,8 +32,8 @@ hardware_long = 'cloud platforms including Amazon EC2, Microsoft Azure, and Goog
name = 'none'

[build]
enable_rust = true
enable_signed = false
enable_vdso = true
kernel_file = 'arch/x86/boot/bzImage'
kernel_stem = 'vmlinuz'

Expand Down
4 changes: 1 addition & 3 deletions config/arm64/defines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ config = [
'arm64/config.cloud-arm64',
'config.gardenlinux'
]
[flavour.defs]
is_quick = true
[flavour.description]
hardware = 'arm64 cloud'
hardware_long = 'cloud platforms supporting arm64 virtual machines'
Expand All @@ -36,8 +34,8 @@ name = 'none'

[build]
compiler_gnutype_compat = 'arm-linux-gnueabihf'
enable_rust = true
enable_signed = false
enable_vdso = true
kernel_file = 'arch/arm64/boot/Image'
kernel_stem = 'vmlinuz'

Expand Down
7 changes: 6 additions & 1 deletion config/defines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ name = 'x86'
name = 'none'

[build]
compiler = 'gcc'
c_compiler = 'gcc'
rust_build_depends = [
'rustc:native',
'bindgen:native',
'rust-src',
]

[relations.image]
depends = [
Expand Down
2 changes: 1 addition & 1 deletion config/riscv64/defines.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ installer = true
name = 'none'

[build]
enable_vdso = true
enable_rust = true
kernel_file = 'arch/riscv/boot/Image'
kernel_stem = 'vmlinux'
2 changes: 1 addition & 1 deletion finalize_source
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(
apt-get install --no-install-recommends -y kernel-wedge python3-jinja2 python3-dacite
cd "$dir/src"
{ PYTHONDONTWRITEBYTECODE=1 make -f debian/rules debian/control-real || true; } | grep 'generated SUCCESSFULLY'
PYTHONDONTWRITEBYTECODE=1 make -f debian/rules debian/control-real && echo "PASS" || echo "FAIL"
)
1 change: 0 additions & 1 deletion fixes_debian/series

This file was deleted.

12 changes: 0 additions & 12 deletions fixes_debian/series.patch

This file was deleted.

6 changes: 3 additions & 3 deletions prepare_source
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pkg=linux
version_orig=6.12.63
version="$version_orig-3"
version_orig=6.18.3
version="$version_orig-1"

(
debian_repo=https://salsa.debian.org/kernel-team/linux.git
debian_ref="debian/6.12.43-1"
debian_ref="debian/6.18.3-1"

tmp_dir="$(mktemp -d)"
trap 'cd / && rm -rf "$tmp_dir"' EXIT
Expand Down
4 changes: 2 additions & 2 deletions update-kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Script to automate the process of selecting the latest patch version of linux

# Update this when we base our kernel build on a newer lts branch
current_lts = "6.12"
current_lts = "6.18"


def get_latest_kernel_version():
Expand All @@ -15,7 +15,7 @@ def get_latest_kernel_version():
r["version"]
for r in releases
if r["version"].startswith(current_lts)
and r["moniker"] == "longterm"
# (not officially lts yet ) and r["moniker"] == "longterm"
and r["iseol"] == False
]
assert len(latest_current_lts) == 1
Expand Down