Skip to content
Draft
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
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ spec:
- ena-pkg
- gasket-driver-pkg
- hailort-pkg
- i915-sriov
- nvidia-open-gpu-kernel-modules-lts-pkg
- nvidia-open-gpu-kernel-modules-production-pkg
- tenstorrent-pkg
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ TARGETS += grub
TARGETS += ipmitool
TARGETS += iptables
TARGETS += ipxe
TARGETS += i915-sriov
TARGETS += kmod
TARGETS += libaio
TARGETS += libattr
Expand Down
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ vars:
ipxe_sha256: debf9490f21976ef046c4feada5de55a95b294b0d1d3ddfe56e8b890830c657f
ipxe_sha512: 1b7c407fc130e3314dea9269dfbb78e9302b39939276483397db77bd54bb3666325d3f61172cbddc5c87364055c26b3cf9d5ad72640cf3b81d135ef15305427c

# renovate: datasource=git-tags depName=https://github.com/bbaa-bbaa/i915-sriov-dkms.git
i915_sriov_dkms_version: 2025.07.22
i915_sriov_dkms_sha256: a4b5f244d1845c7e1561f810b0c204df8e797627ab2cf623dea06fbe35d48e7c
i915_sriov_dkms_sha512: 2e67b67ce856abd6d72062f722affc8dc412386501796fc1519bfacf9dc69a83d656f7deb2a90e4327fa2e85b51936600b6a8c3cf1ce2adde940d841ebd80812

# renovate: datasource=git-refs versioning=git depName=https://github.com/a13xp0p0v/kernel-hardening-checker.git
kspp_ref: 7209f2fdef01885c05a1f55b7655ece514b23ead
kspp_sha256: afb5a10abc0c9586b6d24e62ff1f36904fcc0be26a26e1363175b3c51b9d17eb
Expand Down
39 changes: 39 additions & 0 deletions i915-sriov/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: i915-sriov
variant: scratch
shell: /bin/bash
dependencies:
- stage: base
- stage: kernel-build
- stage: linux-firmware
steps:
- sources:
- url: https://github.com/bbaa-bbaa/i915-sriov-dkms/archive/refs/tags/{{ .i915_sriov_dkms_version }}.tar.gz
destination: i915-sriov-dkms.pkg.tar.gz
sha256: "{{ .i915_sriov_dkms_sha256 }}"
sha512: "{{ .i915_sriov_dkms_sha512 }}"
env:
ARCH: {{ if eq .ARCH "aarch64"}}arm64{{ else if eq .ARCH "x86_64" }}x86_64{{ else }}unsupported{{ end }}
prepare:
- |
tar -xzf i915-sriov-dkms.pkg.tar.gz --strip-components=1
build:
- |
make -j $(nproc) -C /src headers
make -j $(nproc) -C /src M=$(pwd) modules
install:
- |
mkdir -p /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
cp /src/modules.order /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
cp /src/modules.builtin /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/
cp /src/modules.builtin.modinfo /rootfs/usr/lib/modules/$(cat /src/include/config/kernel.release)/

make -j $(nproc) install SYSSRC=/src INSTALL_MOD_PATH=/rootfs/usr INSTALL_MOD_STRIP=1
test:
- |
# https://www.kernel.org/doc/html/v4.15/admin-guide/module-signing.html#signed-modules-and-stripping
find /rootfs/usr/lib/modules -name '*.ko' -exec grep -FL '~Module signature appended~' {} \+
- |
fhs-validator /rootfs
finalize:
- from: /rootfs
to: /