Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
eeea919
Add CIQ configs
PlaidCat Mar 25, 2025
49dae26
github actions: Make Builds on Merge Request Work
PlaidCat Jan 16, 2025
e01d9a9
arm64: add kernel config option to lock down when in Secure Boot mode
Aug 30, 2016
7079637
efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode
dhowells Feb 18, 2019
3088ccd
efi: Lock down the kernel if booted in secure boot mode
bwhacks Sep 10, 2019
8fa8c8c
mtd: phram,slram: Disable when the kernel is locked down
bwhacks Aug 30, 2019
cdcb67e
Add efi_status_to_str() and rework efi_status_to_err().
vathpela Oct 2, 2017
428747c
[CIQ] Arm Lockdown Config Enablement
PlaidCat Apr 1, 2025
b38fe5d
[CIQ] Refresh Configs after making modifications
PlaidCat Apr 2, 2025
41449cb
[CIQ] v6.12.17 -> v6.12.47 config updates
PlaidCat Apr 3, 2025
750174e
[CIQ] configs: Update PAHOLE_VERSION to 130
bmastbergen Dec 10, 2025
bf3d34c
[CIQ] v6.12.63 - rebased configs
bmastbergen Dec 18, 2025
9f6854a
[CIQ] v6.12.76 - rebased configs
github-actions[bot] Mar 5, 2026
3e4e360
Import dist-git from 6.12.74 SRPM
bmastbergen Mar 3, 2026
a6b82d8
kernel.spec: Remove kabi code
bmastbergen Mar 2, 2026
19b6fd6
kernel.spec: Move netfilter modules to core
bmastbergen Mar 5, 2026
97e808a
kernel.spec: Use configs from ciq/config
bmastbergen Feb 19, 2026
0af077b
Add generate_tarball.sh
bmastbergen Mar 5, 2026
9d9d8a8
Adding CIQ attributes to kernel mod signing cert
Mar 11, 2026
fd19361
Switch to zstd for source tarball
bmastbergen Mar 12, 2026
28c9108
Remove Makefile.rhelver
bmastbergen Mar 13, 2026
a809691
Remove kernel.changelog
bmastbergen Mar 13, 2026
db5ea30
Remove generate_all_configs.sh
bmastbergen Mar 13, 2026
463ad05
Move SOURCES and SPECS into ciq/
bmastbergen Mar 13, 2026
aa4d1fb
Remove ciq_sbsign.macros
bmastbergen Mar 13, 2026
4eb8934
generate_tarball.sh: improve error handling and cleanup
bmastbergen Mar 13, 2026
979f114
generate_tarball.sh: check for zstd and use ZSTD_CMD variable
bmastbergen Mar 13, 2026
f2118ed
Update README.rst for CIQ layout
bmastbergen Mar 13, 2026
ce2e26e
Remove rpminspect.yaml
bmastbergen Mar 13, 2026
09a5495
Add linux-kernel-test.patch
bmastbergen Mar 17, 2026
2725c52
kernel.spec: Remove FIPS config tweak
bmastbergen Mar 20, 2026
0d3aff6
uki_addons: Add debug.addon and systemd-volatile-overlay.addon
bmastbergen Mar 23, 2026
b36ee0c
[CIQ] v6.12.77 - updated spec
github-actions[bot] Mar 24, 2026
e5b6329
github actions: Inherit the Kernel CI Automated workflow from main
bmastbergen Mar 12, 2026
07e3e6d
[CIQ] v6.12.78 - rebased configs
github-actions[bot] Mar 26, 2026
e7dc69f
[CIQ] v6.12.78 - updated spec
github-actions[bot] Mar 26, 2026
439a3b0
github actions: Use trigger for kernelCI
bmastbergen Apr 8, 2026
a131eb4
github actions: Trigger kernelCI on ciq-6.12.y-next branches
bmastbergen Apr 9, 2026
cf1c083
spec: update branding in package descriptions and log messages
bmastbergen Apr 14, 2026
8cf8c7a
github actions: add RPM build workflow for x86_64 and aarch64
bmastbergen Apr 8, 2026
9726150
[CIQ] v6.12.85 - updated spec
bmastbergen Apr 30, 2026
f37fabb
github actions: fix version mismatch for upstream v-prefixed tags in …
bmastbergen May 1, 2026
29f6761
Rename package to kernel-clk6.12 and add Provides/Conflicts
bmastbergen Mar 27, 2026
0a37ee5
Use gzip for symvers compression to match upstream
jdieter Mar 30, 2026
9b68fda
Add +clk6.12 suffix to kernel version string (uname -r)
jdieter Mar 30, 2026
46b11b8
Sync spec changes from 6.18 branch
bmastbergen Mar 31, 2026
c49829a
kernel-clk6.12: replace merge.py stub with functional version from 6.18
bmastbergen Apr 3, 2026
dc3e0ff
kernel-clk6.12: fix Config= to use %{name}-%{specversion} prefix, in …
bmastbergen Apr 3, 2026
f935eb4
kernel-clk6.12: add missing namespaced Provides, in sync with 6.18
bmastbergen Apr 3, 2026
2c847a0
Add generic kernel Provides to spec
bmastbergen Apr 15, 2026
907c626
spec: Fix posttrans script to handle noarch package expansion
bmastbergen Apr 21, 2026
8fb9560
github actions: update rpm-build workflow for namespaced spec
bmastbergen Apr 23, 2026
d4171ba
Add generic kernel-headers and kernel-devel Provides to spec
bmastbergen May 1, 2026
c0a686d
spec: fix missed kernel -> %{name} substitutions in kvm, uki-virt-add…
bmastbergen May 4, 2026
ad1f3d2
bundle_bindgen: add set -e, curl --fail, and SHA256 verification
bmastbergen May 4, 2026
85df85e
[CIQ] v6.12.86 - updated spec
bmastbergen May 8, 2026
79cf8ff
[CIQ] v6.12.87 - updated spec
bmastbergen May 8, 2026
9f082a3
[CIQ] ciq_kernel-6.12.87-2 - updated spec
bmastbergen May 14, 2026
491f203
[CIQ] v6.12.89 - rebased configs
bmastbergen May 15, 2026
cb5d810
[CIQ] v6.12.89 - updated spec
bmastbergen May 15, 2026
7f623b2
bundle_bindgen: add User-Agent header to crates.io request
bmastbergen May 27, 2026
04e2dd9
[CIQ] ciq_kernel-6.12.89-2 - updated spec
bmastbergen May 27, 2026
1cf1a8c
[CIQ] v6.12.92 - updated spec
github-actions[bot] Jun 2, 2026
bbd1d3e
kernel-clk6.12: require ciq-kmod and ship %clk_version macro file
josephtate May 20, 2026
6e1f8ce
[CIQ] v6.12.93 - updated spec
github-actions[bot] Jun 9, 2026
401a866
[CIQ] ciq_kernel-6.12.93-2 - updated spec
bmastbergen Jun 10, 2026
5793e56
Add migration spec for kernel -> kernel-clk6.12 namespace transition
bmastbergen Apr 23, 2026
80d7bcb
migrate: use Obsoletes for dnf upgrade discovery, drop Provides and r…
bmastbergen May 12, 2026
d97e1a5
migrate: drop shims for packages the CLK kernel doesn't build
bmastbergen Jun 5, 2026
fbabb72
spec: make modules Provides variant-specific for debug builds
bmastbergen Jun 5, 2026
7f97bfa
github-actions: extend trigger glob to match suffix branches
shreeya-patel98 Jun 22, 2026
bb6f534
[CIQ] v6.12.94 - rebased configs
bmastbergen Jun 26, 2026
69095ba
[CIQ] v6.12.94 - updated spec
bmastbergen Jun 26, 2026
fb901d9
[CIQ] v6.12.95 - updated spec
github-actions[bot] Jul 5, 2026
1bdd95c
[CIQ] v6.12.96 - updated spec
github-actions[bot] Jul 19, 2026
d87330e
[CIQ] v6.12.97 - updated spec
github-actions[bot] Jul 24, 2026
d691587
[CIQ] v6.12.98 - updated spec
github-actions[bot] Jul 25, 2026
713101d
spec: backport --entry-type support to kernel-install preun
bmastbergen Jun 26, 2026
c52b704
[CIQ] v6.12.99 - updated spec
github-actions[bot] Jul 30, 2026
162c113
[CIQ] v6.12.101 - updated spec
github-actions[bot] Aug 3, 2026
cc129b6
Spec change: kmod+kpatch certs in unsigned builds
skip77 Aug 3, 2026
aa7e8a3
[CIQ] v6.12.102 - updated spec
github-actions[bot] Aug 7, 2026
2a722ae
[CIQ] v6.12.104 - updated spec
github-actions[bot] Aug 20, 2026
29d386c
[CIQ] v6.12.107 - updated spec
github-actions[bot] Aug 28, 2026
c7c97f9
[CIQ] v6.12.108 - updated spec
github-actions[bot] Sep 3, 2026
cd2d473
[CIQ] v6.12.109 - updated spec
github-actions[bot] Sep 8, 2026
811d5f9
[CIQ] v6.12.110 - updated spec
github-actions[bot] Sep 15, 2026
d83c07b
[CIQ] v6.12.111 - updated spec
github-actions[bot] Sep 22, 2026
e241e32
[CIQ] v6.12.112 - updated spec
github-actions[bot] Oct 4, 2026
7aadec2
[CIQ] v6.12.113 - updated spec
github-actions[bot] Oct 16, 2026
f263f68
[CIQ] v6.12.114 - updated spec
github-actions[bot] Oct 22, 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)
15 changes: 15 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,15 @@
name: Trigger Automated kernel build and test (multi-arch)

on:
push:
branches:
- '*_ciq-6.12.y'
- '*_ciq-6.12.y-*'
- '*_ciq-6.12.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.12.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 @@ -904,6 +904,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 @@ -1070,20 +1072,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 -A "bundle_bindgen/1.0" $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