Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8d742fc
Add CIQ configs
bmastbergen Jan 5, 2026
1273e57
Add initial CIQ config tweaks
bmastbergen Jan 5, 2026
1e5180b
github actions: Make Builds on Merge Request Work
PlaidCat Jan 16, 2025
92af3d5
arm64: add kernel config option to lock down when in Secure Boot mode
Aug 30, 2016
3786b04
efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode
dhowells Feb 18, 2019
6dc93d7
efi: Lock down the kernel if booted in secure boot mode
bwhacks Sep 10, 2019
78efed9
mtd: phram,slram: Disable when the kernel is locked down
bwhacks Aug 30, 2019
bcbd7d9
Add efi_status_to_str() and rework efi_status_to_err().
vathpela Oct 2, 2017
da7f978
[CIQ] v6.18.3 - rebased configs
github-actions[bot] Jan 7, 2026
e7d068a
[CIQ] v6.18.7 - rebased configs
github-actions[bot] Jan 26, 2026
748c9bc
[CIQ] v6.18.9 - rebased configs
github-actions[bot] Feb 6, 2026
e0742b1
[CIQ] v6.18.14 - rebased configs
github-actions[bot] Feb 27, 2026
d91aa1a
[CIQ] v6.18.17 - rebased configs
github-actions[bot] Mar 13, 2026
6f4ba14
configs: Enable INTEL_TDX_HOST for x86_64 configs
bmastbergen Mar 24, 2026
fb4dd17
Import initial dist-git for 6.18.19
bmastbergen Mar 18, 2026
62d3279
kernel.spec: Fix buildid and pkgrelease
bmastbergen Mar 24, 2026
2c485a3
Remove gating.yaml
bmastbergen Mar 24, 2026
510144b
Update sbat templates
bmastbergen Mar 24, 2026
8f99631
Ensure all qdiscs are in modules-core
bmastbergen Mar 25, 2026
f93f3f1
Remove modules-rt-kvm references
bmastbergen Mar 25, 2026
05b45e2
Set buildid to .1
bmastbergen Mar 25, 2026
b39a193
rocky: generalize rule for kunit and test kmod placement
bmastbergen Mar 25, 2026
586f852
Rename package to kernel-clk6.18
bmastbergen Mar 26, 2026
9a8cbaf
Remove gemini switch
bmastbergen Mar 26, 2026
870eb71
Add Provides/Conflicts for non-parallel installable kernel-* packages
bmastbergen Mar 26, 2026
2802f17
Rename tool packages with pkg_suffix and add Provides/Conflicts
bmastbergen Mar 26, 2026
44674c9
Use gzip for symvers compression to match upstream
jdieter Mar 30, 2026
1570d5b
Add +clk6.18 suffix to kernel version string (uname -r)
jdieter Mar 30, 2026
57d23c8
Add kernel-clk6.18-default package to set default kernel
bmastbergen Mar 30, 2026
f5d80e9
Consolidate spec version defines and prevent CLK kernel from hijackin…
jdieter Mar 31, 2026
2786530
Rework -default package and clean up tool subpackage naming
jdieter Mar 31, 2026
8fefd31
Bundle bindgen-cli from source for Rocky 9.6 builds
jdieter Mar 31, 2026
d12d3ac
[CIQ] v6.18.20 - updated spec
github-actions[bot] Apr 1, 2026
c362e73
[CIQ] v6.18.21 - updated spec
github-actions[bot] Apr 3, 2026
30bfeee
github actions: Inherit the Kernel CI Automated workflow from main
bmastbergen Mar 12, 2026
117cf0a
spec: Skip certificate setup for noarch builds
bmastbergen Apr 7, 2026
21bb42f
Update spec for ciq_kernel-6.18.21-2
bmastbergen Apr 7, 2026
e27a1ea
github actions: Use trigger for kernelCI
bmastbergen Apr 8, 2026
43155da
github actions: Trigger kernelCI on ciq-6.18.y-next branches
bmastbergen Apr 9, 2026
84d8fc3
[CIQ] v6.18.22 - updated spec
github-actions[bot] Apr 12, 2026
75f7e92
spec: Fix posttrans script to handle noarch package expansion
bmastbergen Apr 19, 2026
da3a219
[CIQ] ciq_kernel-6.18.22-2 - updated spec
bmastbergen Apr 20, 2026
6db7fbc
spec: update branding in package descriptions and log messages
bmastbergen Apr 14, 2026
04b80ba
github actions: add RPM build workflow for x86_64 and aarch64
bmastbergen Apr 8, 2026
1c5d809
configs: enable legacy iptables/ip6tables support for all architectures
bmastbergen Apr 30, 2026
0b3bc32
Add generic kernel Provides to spec
bmastbergen Apr 15, 2026
2971887
Add generic kernel-headers and kernel-devel Provides to spec
bmastbergen May 1, 2026
bc352ca
bundle_bindgen: add set -e, curl --fail, and SHA256 verification
bmastbergen May 4, 2026
c2d5b11
[CIQ] v6.18.27 - rebased configs
bmastbergen May 8, 2026
d16f5d7
[CIQ] v6.18.27 - updated spec
bmastbergen May 8, 2026
89cf2bd
generate_tarball: Also strip leading v from tags
bmastbergen May 8, 2026
3e35133
rxrpc: Also unshare DATA/RESPONSE packets when paged frags are present
bmastbergen May 8, 2026
c6021c1
[CIQ] v6.18.28 - updated spec
bmastbergen May 8, 2026
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
1 change: 1 addition & 0 deletions .container_build_image
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rocky-9-kernel-builder
37 changes: 37 additions & 0 deletions .github/workflows/build-check_aarch64-64k-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: aarch64-64k-debug CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build-arm64
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-aarch64-64k-debug.config .config
make olddefconfig
make -j$(nproc)
37 changes: 37 additions & 0 deletions .github/workflows/build-check_aarch64-64k.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: aarch64-64k CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build-arm64
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-aarch64-64k.config .config
make olddefconfig
make -j$(nproc)
37 changes: 37 additions & 0 deletions .github/workflows/build-check_aarch64-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: aarch64-debug CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build-arm64
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-aarch64-debug.config .config
make olddefconfig
make -j$(nproc)
37 changes: 37 additions & 0 deletions .github/workflows/build-check_aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: aarch64 CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build-arm64
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-aarch64.config .config
make olddefconfig
make -j$(nproc)
37 changes: 37 additions & 0 deletions .github/workflows/build-check_x86_64-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: x86_64-debug CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-x86_64-debug.config .config
make olddefconfig
make -j$(nproc)
37 changes: 37 additions & 0 deletions .github/workflows/build-check_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: x86_64 CI
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
kernel-build-job:
runs-on:
labels: kernel-build
container:
image: rockylinux/rockylinux:9
env:
ROCKY_ENV: rocky9
ports:
- 80
options: --cpus 8
steps:
- name: Install tools and Libraries
run: |
dnf update -y
dnf install 'dnf-command(config-manager)' -y
dnf config-manager --set-enabled devel
dnf groupinstall 'Development Tools' -y
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
- name: Build the Kernel
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
cp ciq/configs/kernel-x86_64.config .config
make olddefconfig
make -j$(nproc)
14 changes: 14 additions & 0 deletions .github/workflows/kernel-build-and-test-multiarch-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Trigger Automated kernel build and test (multi-arch)

on:
push:
branches:
- '*_ciq-6.18.y'
- '*_ciq-6.18.y-next'

jobs:
kernelCI:
uses: ctrliq/kernel-src-tree/.github/workflows/kernel-build-and-test-multiarch-trigger.yml@main
with:
skip_kabi: true
secrets: inherit
58 changes: 58 additions & 0 deletions .github/workflows/rpm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: RPM Build
on:
pull_request:
branches:
- '**'
- '!mainline'

jobs:
rpm-build-job:
strategy:
matrix:
include:
- arch: x86_64
runner: kernel-build
mock_config: rocky-9-x86_64
- arch: aarch64
runner: kernel-build-arm64
mock_config: rocky-9-aarch64
runs-on:
labels: ${{ matrix.runner }}
container:
image: rockylinux/rockylinux:9
options: --privileged --cpus 8
steps:
- name: Install tools and libraries
run: |
dnf install -y epel-release
dnf install -y mock git rust cargo zstd which
useradd -m -G mock mockbuild

- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"
fetch-depth: 0
fetch-tags: true

- name: Generate tarball
run: |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
./ciq/SOURCES/generate_tarball.sh

- name: Bundle bindgen
run: ./ciq/SOURCES/bundle_bindgen.sh ./ciq/SOURCES

- name: Build SRPM
run: |
mkdir -p ../build_files
chown mockbuild:mock ../build_files
su mockbuild -c "mock -v -r ${{ matrix.mock_config }} --resultdir=$(pwd)/../build_files \
--buildsrpm \
--sources=$(pwd)/ciq/SOURCES \
--spec=$(pwd)/ciq/SPECS/kernel-clk6.18.spec"

- name: Build RPM
run: |
SRPM=$(ls ../build_files/*.src.rpm | head -1)
su mockbuild -c "mock -v -r ${{ matrix.mock_config }} --resultdir=$(pwd)/../build_files $SRPM"
16 changes: 2 additions & 14 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,8 @@ void __init setup_arch(char **cmdline_p)
if (efi_enabled(EFI_BOOT))
efi_init();

efi_set_secure_boot(boot_params.secure_boot);

reserve_ibft_region();
x86_init.resources.dmi_setup();

Expand Down Expand Up @@ -1160,20 +1162,6 @@ void __init setup_arch(char **cmdline_p)
/* Allocate bigger log buffer */
setup_log_buf(1);

if (efi_enabled(EFI_BOOT)) {
switch (boot_params.secure_boot) {
case efi_secureboot_mode_disabled:
pr_info("Secure boot disabled\n");
break;
case efi_secureboot_mode_enabled:
pr_info("Secure boot enabled\n");
break;
default:
pr_info("Secure boot could not be determined\n");
break;
}
}

reserve_initrd();

acpi_table_upgrade();
Expand Down
9 changes: 9 additions & 0 deletions ciq/SOURCES/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=====================
CIQ Kernel Source Tree
=====================

The kernel spec and supporting sources are maintained under ``ciq/`` in the
source tree rather than in a separate dist-git repository.

Build artifacts (tarballs, SRPMs) are generated using the scripts in
``ciq/SOURCES/``. See ``generate_tarball.sh`` to create the source tarball.
50 changes: 50 additions & 0 deletions ciq/SOURCES/bundle_bindgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/sh
set -e

# Bundle the bindgen-cli source code to be included in the kernel build.
# https://crates.io/crates/bindgen-cli
#
# The bindgen tool, required to build Rust code in the Linux kernel, is
# currently only packaged in Fedora/ELN. In order to build CLK kernels
# on Rocky Linux we need to build bindgen as part of the kernel build.

SOURCES=$1

BINDGEN_CLI=bindgen-cli
BINDGEN_CLI_VERSION="0.71.1"
BINDGEN_CLI_CRATE=bindgen-cli.crate
BINDGEN_CLI_SHA256="fded10ca0956afd0cbe5cf89cc71ae1a679e65b8216c651fca17ba7de8ac54dc"
CRATESIO_API_ENDPOINT=https://crates.io/api/v1/crates/bindgen-cli/${BINDGEN_CLI_VERSION}/download

curl -sfL $CRATESIO_API_ENDPOINT -o $SOURCES/$BINDGEN_CLI_CRATE

echo "$BINDGEN_CLI_SHA256 $SOURCES/$BINDGEN_CLI_CRATE" | sha256sum -c - || {
echo "Error: SHA256 checksum mismatch for $BINDGEN_CLI_CRATE"
echo "Expected: $BINDGEN_CLI_SHA256"
echo "Got: $(sha256sum $SOURCES/$BINDGEN_CLI_CRATE | awk '{print $1}')"
rm -f $SOURCES/$BINDGEN_CLI_CRATE
exit 1
}

tar -xf $SOURCES/$BINDGEN_CLI_CRATE -C $SOURCES
mv $SOURCES/$BINDGEN_CLI-$BINDGEN_CLI_VERSION $SOURCES/$BINDGEN_CLI

# vendor bindgen-cli
cd $SOURCES/$BINDGEN_CLI
mkdir .cargo
cat > .cargo/config.toml <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

cargo vendor --locked --quiet

cd ..
tar czf $BINDGEN_CLI.tar.gz $BINDGEN_CLI

# clean up
rm -f $SOURCES/$BINDGEN_CLI_CRATE
rm -rf $SOURCES/$BINDGEN_CLI
Binary file added ciq/SOURCES/ciq_sb_ca.der
Binary file not shown.
Loading
Loading