mirror of
https://aur.archlinux.org/linux-vfio.git
synced 2026-03-07 07:14:43 +00:00
6.19.6
This commit is contained in:
21
.SRCINFO
21
.SRCINFO
@@ -1,6 +1,6 @@
|
|||||||
pkgbase = linux-vfio
|
pkgbase = linux-vfio
|
||||||
pkgdesc = Linux
|
pkgdesc = Linux
|
||||||
pkgver = 6.18.13
|
pkgver = 6.19.6
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://www.kernel.org
|
url = https://www.kernel.org
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
@@ -8,11 +8,13 @@ pkgbase = linux-vfio
|
|||||||
makedepends = bc
|
makedepends = bc
|
||||||
makedepends = cpio
|
makedepends = cpio
|
||||||
makedepends = gettext
|
makedepends = gettext
|
||||||
makedepends = git
|
|
||||||
makedepends = libelf
|
makedepends = libelf
|
||||||
makedepends = pahole
|
makedepends = pahole
|
||||||
makedepends = perl
|
makedepends = perl
|
||||||
makedepends = python
|
makedepends = python
|
||||||
|
makedepends = rust
|
||||||
|
makedepends = rust-bindgen
|
||||||
|
makedepends = rust-src
|
||||||
makedepends = tar
|
makedepends = tar
|
||||||
makedepends = xz
|
makedepends = xz
|
||||||
makedepends = graphviz
|
makedepends = graphviz
|
||||||
@@ -22,17 +24,17 @@ pkgbase = linux-vfio
|
|||||||
makedepends = texlive-latexextra
|
makedepends = texlive-latexextra
|
||||||
options = !debug
|
options = !debug
|
||||||
options = !strip
|
options = !strip
|
||||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.13.tar.xz
|
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.19.6.tar.xz
|
||||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.13.tar.sign
|
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.19.6.tar.sign
|
||||||
source = config-6.18.13::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/6.18.13.arch1-1/config.x86_64
|
source = config-6.19.6::https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/6.19.6.arch1-1/config.x86_64
|
||||||
source = 1001-6.14.0-add-acs-overrides.patch
|
source = 1001-6.14.0-add-acs-overrides.patch
|
||||||
source = 1002-6.18.0-i915-vga-arbiter.patch
|
source = 1002-6.18.0-i915-vga-arbiter.patch
|
||||||
source = https://github.com/archlinux/linux/releases/download/v6.18.13-arch1/linux-v6.18.13-arch1.patch.zst
|
source = https://github.com/archlinux/linux/releases/download/v6.19.6-arch1/linux-v6.19.6-arch1.patch.zst
|
||||||
source = https://github.com/archlinux/linux/releases/download/v6.18.13-arch1/linux-v6.18.13-arch1.patch.zst.sig
|
source = https://github.com/archlinux/linux/releases/download/v6.19.6-arch1/linux-v6.19.6-arch1.patch.zst.sig
|
||||||
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
|
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
|
||||||
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
|
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
|
||||||
validpgpkeys = 83BC8889351B5DEBBB68416EB8AC08600F108CDF
|
validpgpkeys = 83BC8889351B5DEBBB68416EB8AC08600F108CDF
|
||||||
sha256sums = ed2c3c55fd38e6836c094fce356f2567f9516130b73354a29857960368c5687f
|
sha256sums = 4d9f3ff73214f68c0194ef02db9ca4b7ba713253ac1045441d4e9f352bc22e14
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = 6bca6264da6717402ec89ec5ed06b8997fe3df7a20a3a57eb5a85f64e12bc396
|
sha256sums = 6bca6264da6717402ec89ec5ed06b8997fe3df7a20a3a57eb5a85f64e12bc396
|
||||||
@@ -45,13 +47,16 @@ pkgname = linux-vfio
|
|||||||
depends = coreutils
|
depends = coreutils
|
||||||
depends = initramfs
|
depends = initramfs
|
||||||
depends = kmod
|
depends = kmod
|
||||||
|
optdepends = linux-vfio-headers: headers and scripts for building modules
|
||||||
optdepends = linux-firmware: firmware images needed for some devices
|
optdepends = linux-firmware: firmware images needed for some devices
|
||||||
optdepends = scx-scheds: to use sched-ext schedulers
|
optdepends = scx-scheds: to use sched-ext schedulers
|
||||||
optdepends = wireless-regdb: to set the correct wireless channels of your country
|
optdepends = wireless-regdb: to set the correct wireless channels of your country
|
||||||
provides = KSMBD-MODULE
|
provides = KSMBD-MODULE
|
||||||
|
provides = NTSYNC-MODULE
|
||||||
provides = VIRTUALBOX-GUEST-MODULES
|
provides = VIRTUALBOX-GUEST-MODULES
|
||||||
provides = WIREGUARD-MODULE
|
provides = WIREGUARD-MODULE
|
||||||
|
|
||||||
pkgname = linux-vfio-headers
|
pkgname = linux-vfio-headers
|
||||||
pkgdesc = Headers and scripts for building modules for the Linux kernel (ACS override and i915 VGA arbiter patches)
|
pkgdesc = Headers and scripts for building modules for the Linux kernel (ACS override and i915 VGA arbiter patches)
|
||||||
depends = pahole
|
depends = pahole
|
||||||
|
provides = LINUX-HEADERS
|
||||||
|
|||||||
70
PKGBUILD
70
PKGBUILD
@@ -7,14 +7,12 @@
|
|||||||
## options
|
## options
|
||||||
: ${_build_arch_patch:=true}
|
: ${_build_arch_patch:=true}
|
||||||
|
|
||||||
: ${_build_clang:=false}
|
|
||||||
|
|
||||||
: ${_build_vfio:=true}
|
: ${_build_vfio:=true}
|
||||||
: ${_build_lts:=false}
|
: ${_build_lts:=false}
|
||||||
|
|
||||||
: ${_build_level:=1}
|
: ${_build_level:=1}
|
||||||
|
|
||||||
: ${_cksum=ed2c3c55fd38e6836c094fce356f2567f9516130b73354a29857960368c5687f}
|
: ${_cksum=4d9f3ff73214f68c0194ef02db9ca4b7ba713253ac1045441d4e9f352bc22e14}
|
||||||
|
|
||||||
unset _pkgtype
|
unset _pkgtype
|
||||||
[[ ${_build_vfio::1} == "t" ]] && _pkgtype+="-vfio"
|
[[ ${_build_vfio::1} == "t" ]] && _pkgtype+="-vfio"
|
||||||
@@ -26,7 +24,7 @@ unset _pkgtype
|
|||||||
_gitname="linux"
|
_gitname="linux"
|
||||||
_pkgname="$_gitname${_pkgtype:-}"
|
_pkgname="$_gitname${_pkgtype:-}"
|
||||||
pkgbase="$_pkgname"
|
pkgbase="$_pkgname"
|
||||||
pkgver=6.18.13
|
pkgver=6.19.6
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Linux'
|
pkgdesc='Linux'
|
||||||
url='https://www.kernel.org'
|
url='https://www.kernel.org'
|
||||||
@@ -37,11 +35,13 @@ makedepends=(
|
|||||||
bc
|
bc
|
||||||
cpio
|
cpio
|
||||||
gettext
|
gettext
|
||||||
git
|
|
||||||
libelf
|
libelf
|
||||||
pahole
|
pahole
|
||||||
perl
|
perl
|
||||||
python
|
python
|
||||||
|
rust
|
||||||
|
rust-bindgen
|
||||||
|
rust-src
|
||||||
tar
|
tar
|
||||||
xz
|
xz
|
||||||
|
|
||||||
@@ -110,13 +110,6 @@ if [[ "${_build_arch_patch::1}" == "t" ]]; then
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${_build_clang::1}" == "t" ]]; then
|
|
||||||
makedepends+=(clang llvm lld)
|
|
||||||
|
|
||||||
export LLVM=1
|
|
||||||
export LLVM_IAS=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${_build_level::1} =~ ^[2-4]$ ]]; then
|
if [[ ${_build_level::1} =~ ^[2-4]$ ]]; then
|
||||||
export KCFLAGS="-march=x86-64-v${_build_level::1} -O3"
|
export KCFLAGS="-march=x86-64-v${_build_level::1} -O3"
|
||||||
fi
|
fi
|
||||||
@@ -128,15 +121,10 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EP
|
|||||||
_prepare_extra() {
|
_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
|
|
||||||
scripts/config --disable LTO_CLANG_FULL
|
|
||||||
scripts/config --enable LTO_CLANG_THIN
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cp "config-$pkgver" "config"
|
cp "config-$pkgver" "config.$CARCH"
|
||||||
|
|
||||||
cd $_srcname
|
cd $_srcname
|
||||||
|
|
||||||
@@ -156,9 +144,9 @@ prepare() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Setting config..."
|
echo "Setting config..."
|
||||||
cp ../config .config
|
cp ../config.$CARCH .config
|
||||||
make olddefconfig
|
make olddefconfig
|
||||||
diff -u ../config .config || :
|
diff -u ../config.$CARCH .config || :
|
||||||
|
|
||||||
_prepare_extra
|
_prepare_extra
|
||||||
|
|
||||||
@@ -170,7 +158,7 @@ build() {
|
|||||||
cd $_srcname
|
cd $_srcname
|
||||||
make all
|
make all
|
||||||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
|
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
|
||||||
#make htmldocs
|
#make htmldocs SPHINXOPTS=-QT
|
||||||
}
|
}
|
||||||
|
|
||||||
_package() {
|
_package() {
|
||||||
@@ -181,12 +169,14 @@ _package() {
|
|||||||
kmod
|
kmod
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
|
"$pkgbase-headers: headers and scripts for building modules"
|
||||||
'linux-firmware: firmware images needed for some devices'
|
'linux-firmware: firmware images needed for some devices'
|
||||||
'scx-scheds: to use sched-ext schedulers'
|
'scx-scheds: to use sched-ext schedulers'
|
||||||
'wireless-regdb: to set the correct wireless channels of your country'
|
'wireless-regdb: to set the correct wireless channels of your country'
|
||||||
)
|
)
|
||||||
provides=(
|
provides=(
|
||||||
KSMBD-MODULE
|
KSMBD-MODULE
|
||||||
|
NTSYNC-MODULE
|
||||||
VIRTUALBOX-GUEST-MODULES
|
VIRTUALBOX-GUEST-MODULES
|
||||||
WIREGUARD-MODULE
|
WIREGUARD-MODULE
|
||||||
)
|
)
|
||||||
@@ -213,28 +203,40 @@ _package() {
|
|||||||
_package-headers() {
|
_package-headers() {
|
||||||
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel (ACS override and i915 VGA arbiter patches)"
|
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel (ACS override and i915 VGA arbiter patches)"
|
||||||
depends=(pahole)
|
depends=(pahole)
|
||||||
|
provides=(LINUX-HEADERS)
|
||||||
|
|
||||||
cd $_srcname
|
cd $_srcname
|
||||||
local builddir="$pkgdir/usr/lib/modules/$(< version)/build"
|
local builddir="$pkgdir/usr/lib/modules/$(< version)/build"
|
||||||
|
|
||||||
|
local karch
|
||||||
|
case $CARCH in
|
||||||
|
x86_64) karch=x86 ;;
|
||||||
|
*)
|
||||||
|
echo "Unknown CARCH $CARCH"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
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 \
|
||||||
localversion.* version vmlinux tools/bpf/bpftool/vmlinux.h
|
localversion.* version vmlinux tools/bpf/bpftool/vmlinux.h
|
||||||
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
||||||
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
|
install -Dt "$builddir/arch/$karch" -m644 arch/$karch/Makefile
|
||||||
cp -t "$builddir" -a scripts
|
cp -t "$builddir" -a scripts
|
||||||
ln -srt "$builddir" "$builddir/scripts/gdb/vmlinux-gdb.py"
|
ln -srt "$builddir" "$builddir/scripts/gdb/vmlinux-gdb.py"
|
||||||
|
|
||||||
# required when STACK_VALIDATION is enabled
|
if [[ $(scripts/config -s CONFIG_HAVE_STACK_VALIDATION) = y ]]; then
|
||||||
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
|
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
|
||||||
|
fi
|
||||||
|
|
||||||
# required when DEBUG_INFO_BTF_MODULES is enabled
|
if [[ $(scripts/config -s CONFIG_DEBUG_INFO_BTF_MODULES) = y ]]; then
|
||||||
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
|
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing headers..."
|
echo "Installing headers..."
|
||||||
cp -t "$builddir" -a include
|
cp -t "$builddir" -a include
|
||||||
cp -t "$builddir/arch/x86" -a arch/x86/include
|
cp -t "$builddir/arch/$karch" -a arch/$karch/include
|
||||||
install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
|
install -Dt "$builddir/arch/$karch/kernel" -m644 arch/$karch/kernel/asm-offsets.s
|
||||||
|
|
||||||
install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h
|
install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h
|
||||||
install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h
|
install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h
|
||||||
@@ -253,10 +255,20 @@ _package-headers() {
|
|||||||
echo "Installing KConfig files..."
|
echo "Installing KConfig files..."
|
||||||
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
||||||
|
|
||||||
|
echo "Installing Rust files..."
|
||||||
|
if [[ $(scripts/config -s CONFIG_RUST) = y ]]; then
|
||||||
|
install -Dt "$builddir/rust" -m644 rust/*.rmeta
|
||||||
|
install -Dt "$builddir/rust" rust/*.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Installing unstripped VDSO..."
|
||||||
|
make INSTALL_MOD_PATH="$pkgdir/usr" vdso_install \
|
||||||
|
link= # Suppress build-id symlinks
|
||||||
|
|
||||||
echo "Removing unneeded architectures..."
|
echo "Removing unneeded architectures..."
|
||||||
local arch
|
local arch
|
||||||
for arch in "$builddir"/arch/*/; do
|
for arch in "$builddir"/arch/*/; do
|
||||||
[[ $arch = */x86/ ]] && continue
|
[[ $arch = */$karch/ ]] && continue
|
||||||
echo "Removing $(basename "$arch")"
|
echo "Removing $(basename "$arch")"
|
||||||
rm -r "$arch"
|
rm -r "$arch"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user