1
0
mirror of https://aur.archlinux.org/linux-vfio.git synced 2024-12-26 06:24:09 +00:00
This commit is contained in:
xiota 2024-04-18 00:47:18 +00:00
parent e5589bf1f5
commit 7bde43f3ad
2 changed files with 29 additions and 29 deletions

View File

@ -1,6 +1,6 @@
pkgbase = linux-vfio pkgbase = linux-vfio
pkgdesc = Linux pkgdesc = Linux
pkgver = 6.8.6 pkgver = 6.8.7
pkgrel = 1 pkgrel = 1
url = https://www.kernel.org url = https://www.kernel.org
arch = x86_64 arch = x86_64
@ -20,17 +20,17 @@ pkgbase = linux-vfio
makedepends = python-yaml makedepends = python-yaml
makedepends = texlive-latexextra makedepends = texlive-latexextra
options = !strip options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.6.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.7.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.6.tar.sign source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.7.tar.sign
source = config-6.8.6::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config source = config-6.8.7::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config
source = 1001-6.8.0-add-acs-overrides.patch source = 1001-6.8.0-add-acs-overrides.patch
source = 1002-6.8.0-i915-vga-arbiter.patch source = 1002-6.8.0-i915-vga-arbiter.patch
source = https://github.com/archlinux/linux/releases/download/v6.8.6-arch1/linux-v6.8.6-arch1.patch.zst source = https://github.com/archlinux/linux/releases/download/v6.8.7-arch1/linux-v6.8.7-arch1.patch.zst
source = https://github.com/archlinux/linux/releases/download/v6.8.6-arch1/linux-v6.8.6-arch1.patch.zst.sig source = https://github.com/archlinux/linux/releases/download/v6.8.7-arch1/linux-v6.8.7-arch1.patch.zst.sig
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886 validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
validpgpkeys = 83BC8889351B5DEBBB68416EB8AC08600F108CDF validpgpkeys = 83BC8889351B5DEBBB68416EB8AC08600F108CDF
sha256sums = 9e723232d603ab45ebf043c34714c48f277ab195c29abcb8472f2a4c3a5a1995 sha256sums = 291d1a1faf4e87b3b0ea9729080db887aafd1ff2fac1430ceca921e46bc22fae
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
sha256sums = b35c26d5dc31fb9cfac68292de7b1ee8ca93b4647e4958efc77e2c77f586f1f2 sha256sums = b35c26d5dc31fb9cfac68292de7b1ee8ca93b4647e4958efc77e2c77f586f1f2

View File

@ -24,7 +24,7 @@ unset _pkgtype
_gitname="linux" _gitname="linux"
_pkgname="$_gitname${_pkgtype:-}" _pkgname="$_gitname${_pkgtype:-}"
pkgbase="$_pkgname" pkgbase="$_pkgname"
pkgver=6.8.6 pkgver=6.8.7
pkgrel=1 pkgrel=1
pkgdesc='Linux' pkgdesc='Linux'
url='https://www.kernel.org' url='https://www.kernel.org'
@ -56,17 +56,17 @@ source+=(
"config-$pkgver"::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config "config-$pkgver"::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config
) )
sha256sums+=( sha256sums+=(
'9e723232d603ab45ebf043c34714c48f277ab195c29abcb8472f2a4c3a5a1995' '291d1a1faf4e87b3b0ea9729080db887aafd1ff2fac1430ceca921e46bc22fae'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
) )
validpgpkeys=( validpgpkeys=(
ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman
83BC8889351B5DEBBB68416EB8AC08600F108CDF # Jan Alexander Steffens (heftig) 83BC8889351B5DEBBB68416EB8AC08600F108CDF # Jan Alexander Steffens (heftig)
) )
if [[ ${_build_vfio::1} == "t" ]] ; then if [[ ${_build_vfio::1} == "t" ]]; then
source+=( source+=(
1001-6.8.0-add-acs-overrides.patch # updated from https://lkml.org/lkml/2013/5/30/513 1001-6.8.0-add-acs-overrides.patch # updated from https://lkml.org/lkml/2013/5/30/513
1002-6.8.0-i915-vga-arbiter.patch # updated from https://lkml.org/lkml/2014/5/9/517 1002-6.8.0-i915-vga-arbiter.patch # updated from https://lkml.org/lkml/2014/5/9/517
@ -77,13 +77,13 @@ if [[ ${_build_vfio::1} == "t" ]] ; then
) )
fi fi
if [[ ${_build_arch_patch::1} == "t" ]] ; then if [[ ${_build_arch_patch::1} == "t" ]]; then
_srctag=v${pkgver}-arch1 _srctag=v${pkgver}-arch1
_dl_url_arch='https://github.com/archlinux/linux' _dl_url_arch='https://github.com/archlinux/linux'
# if no new patch, use previous one # if no new patch, use previous one
if grep 404 <(curl -sI $_dl_url_arch/releases/download/$_srctag/linux-$_srctag.patch.zst | head -1) > /dev/null ; then if grep 404 <(curl -sI $_dl_url_arch/releases/download/$_srctag/linux-$_srctag.patch.zst | head -1) > /dev/null; then
_srctag=v${pkgver::4}$(( ${pkgver##*.} -1 ))-arch1 _srctag=v${pkgver::4}$((${pkgver##*.} - 1))-arch1
fi fi
source+=( source+=(
@ -95,14 +95,14 @@ if [[ ${_build_arch_patch::1} == "t" ]] ; then
) )
fi fi
if [[ ${_build_clang::1} == "t" ]] ; then if [[ ${_build_clang::1} == "t" ]]; then
makedepends+=(clang llvm lld) makedepends+=(clang llvm lld)
export LLVM=1 export LLVM=1
export LLVM_IAS=1 export LLVM_IAS=1
fi fi
if [[ "${_build_v3::1}" == "t" ]] ; then if [[ "${_build_v3::1}" == "t" ]]; then
export KCFLAGS="-march=x86-64-v3 -mtune=generic -O3" export KCFLAGS="-march=x86-64-v3 -mtune=generic -O3"
export HOSTCFLAGS="-march=x86-64-v3 -mtune=generic -O3" export HOSTCFLAGS="-march=x86-64-v3 -mtune=generic -O3"
export HOSTCXXFLAGS="-march=x86-64-v3 -mtune=generic -O3" export HOSTCXXFLAGS="-march=x86-64-v3 -mtune=generic -O3"
@ -116,12 +116,12 @@ _prepare_extra() {
# remove extra version suffix # remove extra version suffix
sed -E 's&^(EXTRAVERSION =).*$&\1&' -i Makefile sed -E 's&^(EXTRAVERSION =).*$&\1&' -i Makefile
if [[ "${_build_clang::1}" == "t" ]] ; then if [[ "${_build_clang::1}" == "t" ]]; then
scripts/config --disable LTO_CLANG_FULL scripts/config --disable LTO_CLANG_FULL
scripts/config --enable LTO_CLANG_THIN scripts/config --enable LTO_CLANG_THIN
fi fi
if [[ "${_build_clang::1}" == "t" ]] || [[ "${_build_tracer::1}" != "t" ]] ; then if [[ "${_build_clang::1}" == "t" ]] || [[ "${_build_tracer::1}" != "t" ]]; then
echo "Disabling Tracers..." echo "Disabling Tracers..."
scripts/config \ scripts/config \
--disable CONFIG_FTRACE \ --disable CONFIG_FTRACE \
@ -129,7 +129,7 @@ _prepare_extra() {
--disable CONFIG_STACK_TRACER --disable CONFIG_STACK_TRACER
fi fi
if [[ "${_build_numa::1}" != "t" ]] ; then if [[ "${_build_numa::1}" != "t" ]]; then
echo "Disabling NUMA..." echo "Disabling NUMA..."
scripts/config --disable CONFIG_NUMA scripts/config --disable CONFIG_NUMA
fi fi
@ -163,7 +163,7 @@ prepare() {
_prepare_extra _prepare_extra
make -s kernelrelease > version make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)" echo "Prepared $pkgbase version $(< version)"
} }
build() { build() {
@ -191,7 +191,7 @@ _package() {
) )
cd $_srcname cd $_srcname
local modulesdir="$pkgdir/usr/lib/modules/$(<version)" local modulesdir="$pkgdir/usr/lib/modules/$(< version)"
echo "Installing boot image..." echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation # systemd expects to find the kernel here to allow hibernation
@ -203,7 +203,7 @@ _package() {
echo "Installing modules..." echo "Installing modules..."
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \ ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod DEPMOD=/doesnt/exist modules_install # Suppress depmod
# remove build link # remove build link
rm "$modulesdir"/build rm "$modulesdir"/build
@ -214,7 +214,7 @@ _package-headers() {
depends=(pahole) depends=(pahole)
cd $_srcname cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build" local builddir="$pkgdir/usr/lib/modules/$(< version)/build"
echo "Installing build files..." echo "Installing build files..."
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \ install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
@ -272,11 +272,11 @@ _package-headers() {
local file local file
while read -rd '' file; do while read -rd '' file; do
case "$(file -Sib "$file")" in case "$(file -Sib "$file")" in
application/x-sharedlib\;*) # Libraries (.so) application/x-sharedlib\;*) # Libraries (.so)
strip -v $STRIP_SHARED "$file" ;; strip -v $STRIP_SHARED "$file" ;;
application/x-archive\;*) # Libraries (.a) application/x-archive\;*) # Libraries (.a)
strip -v $STRIP_STATIC "$file" ;; strip -v $STRIP_STATIC "$file" ;;
application/x-executable\;*) # Binaries application/x-executable\;*) # Binaries
strip -v $STRIP_BINARIES "$file" ;; strip -v $STRIP_BINARIES "$file" ;;
application/x-pie-executable\;*) # Relocatable binaries application/x-pie-executable\;*) # Relocatable binaries
strip -v $STRIP_SHARED "$file" ;; strip -v $STRIP_SHARED "$file" ;;
@ -295,7 +295,7 @@ _package-docs() {
pkgdesc="Documentation for the $pkgdesc kernel (ACS override and i915 VGA arbiter patches)" pkgdesc="Documentation for the $pkgdesc kernel (ACS override and i915 VGA arbiter patches)"
cd $_srcname cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build" local builddir="$pkgdir/usr/lib/modules/$(< version)/build"
echo "Installing documentation..." echo "Installing documentation..."
local src dst local src dst