-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from bbaa-bbaa/kernel-v6.12
- Loading branch information
Showing
17 changed files
with
332 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
packaging-debian: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential devscripts dh-make dh-dkms dkms | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Packaging | ||
working-directory: i915-sriov-dkms | ||
run: dpkg-buildpackage -tc | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: debain-package | ||
path: "*.deb" | ||
|
||
packaging-archlinux: | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: archlinux:base-devel | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
pacman-key --init | ||
pacman -Syu --noconfirm git dkms | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Packaging | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
useradd -m user | ||
sed -i 's/COMPRESSZST=.*/COMPRESSZST=(zstd -c -T0 --ultra -20 -)/' /etc/makepkg.conf | ||
echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
chown -R user: . | ||
sudo -u user makepkg -s | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: arch-package | ||
path: "i915-sriov-dkms/*.pkg*" | ||
|
||
test-ubuntu-noble: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential linux-generic linux-headers-generic | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Build Module | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s linux-headers-generic | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build") | ||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//') | ||
sudo make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd) | ||
test-ubuntu-oracular: | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: ubuntu:24.10 | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential linux-generic linux-headers-generic | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Build Module | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s linux-headers-generic | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build") | ||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//') | ||
make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd) | ||
test-proxmox: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential | ||
sudo sh -c "echo deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription >> /etc/apt/sources.list" | ||
sudo apt-get --allow-insecure-repositories update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated install -y proxmox-archive-keyring | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y proxmox-default-kernel proxmox-default-headers | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Build Module | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s $(dpkg -s proxmox-default-headers | grep "Depends: " | cut -d " " -f2) | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build") | ||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//') | ||
sudo make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd) | ||
test-archlinux: | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: archlinux:base-devel | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
pacman-key --init | ||
pacman -Syu --noconfirm linux linux-headers | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: i915-sriov-dkms | ||
- name: Build Module | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
KERNEL_SOURCE_DIR=$(pacman -Qql linux-headers | grep -m 1 -Eo ".*/lib/modules/[^/]+/build") | ||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//') | ||
sudo make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd) | ||
release: | ||
runs-on: ubuntu-24.04 | ||
needs: [packaging-debian, packaging-archlinux, test-ubuntu-noble, test-ubuntu-oracular, test-proxmox, test-archlinux] | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
path: i915-sriov-dkms | ||
- name: Check release created | ||
working-directory: i915-sriov-dkms | ||
run: | | ||
VERSION=$(grep "^PACKAGE_VERSION" "dkms.conf" | grep -o "[0-9]*\.[0-9]*\.[0-9]*") | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
git tag | grep $VERSION && echo "MAKE_RELEASE=0" > $GITHUB_ENV || echo "MAKE_RELEASE=1" >> $GITHUB_ENV | ||
- name: Download artifacts | ||
if: ${{ env.MAKE_RELEASE == 1 }} | ||
uses: actions/download-artifact@v4 | ||
with: | ||
merge-multiple: true | ||
- name: Create Release | ||
if: ${{ env.MAKE_RELEASE == 1 }} | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
name: ${{ env.VERSION }} | ||
tag_name: ${{ env.VERSION }} | ||
files: | | ||
*.pkg* | ||
*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
# Maintainer: Xilin Wu <[email protected]> | ||
|
||
_pkgbase=i915-sriov-dkms | ||
pkgname=i915-sriov-dkms-git | ||
pkgname=i915-sriov-dkms | ||
pkgver=2024.12.30 | ||
pkgrel=1 | ||
pkgdesc="Linux i915 module patched with SR-IOV support" | ||
arch=('x86_64') | ||
url="https://github.com/strongtz/i915-sriov-dkms" | ||
license=('GPL2') | ||
depends=('dkms') | ||
license=('GPL-2.0-only') | ||
makedepends=('git') | ||
conflicts=("${_pkgbase}") | ||
depends=('dkms') | ||
conflicts=("${pkgname}-git") | ||
backup=("etc/tmpfiles.d/i915-set-sriov-numvfs.conf") | ||
install=${pkgname}.install | ||
source=("git+https://github.com/strongtz/i915-sriov-dkms.git") | ||
md5sums=('SKIP') | ||
source=("git+https://github.com/strongtz/i915-sriov-dkms.git" "i915-set-sriov-numvfs.conf") | ||
sha256sums=('SKIP' | ||
'e85e4d4c97cb1f6e825c47ea5e3a9c18f10761714307985f67b58c8e55a1e2c2') | ||
|
||
package() { | ||
cd "$srcdir/$_pkgbase" | ||
# Copy dkms.conf | ||
install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf | ||
cd "$srcdir/$pkgname" | ||
|
||
echo "* Copying module into /usr/src..." | ||
install -dm755 "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" | ||
cp -r ${srcdir}/$_pkgbase/* "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" | ||
install -dm755 "${pkgdir}/usr/src/${pkgname}-${pkgver}" | ||
cp -r ${srcdir}/$pkgname/{compat,config,drivers,include,Makefile,configure,dkms.conf} "${pkgdir}/usr/src/${pkgname}-${pkgver}" | ||
|
||
cd "$srcdir" | ||
install -Dm644 i915-set-sriov-numvfs.conf "${pkgdir}/etc/tmpfiles.d/i915-set-sriov-numvfs.conf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
i915-sriov-dkms (2024.12.30) UNRELEASED; urgency=medium | ||
|
||
* 2024.12.30: backport missing pciids for ADL-N CPU | ||
|
||
-- bbaa bbaa <[email protected]> Thu, 2 Jan 2025 17:37:04 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: i915-sriov-dkms | ||
Section: kernel | ||
Priority: optional | ||
Maintainer: bbaa <[email protected]> | ||
Rules-Requires-Root: no | ||
Build-Depends: | ||
debhelper-compat (= 13), dh-sequence-dkms | ||
Standards-Version: 2024.12.30 | ||
Homepage: https://github.com/strongtz/i915-sriov-dkms | ||
|
||
Package: i915-sriov-dkms | ||
Architecture: amd64 | ||
Depends: | ||
${misc:Depends}, build-essential | ||
Description: Linux i915 driver (dkms module) with SR-IOV support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Source: https://github.com/strongtz/i915-sriov-dkms | ||
Upstream-Name: i915-sriov-dkms | ||
Upstream-Contact: https://github.com/strongtz/i915-sriov-dkms/issues | ||
|
||
Files: | ||
* | ||
Copyright: | ||
Linus Torvalds and others | ||
License: GPL-2.0 | ||
This package is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
. | ||
This package is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/> | ||
Comment: | ||
On Debian systems, the complete text of the GNU General | ||
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". |
Oops, something went wrong.