diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 50 insertions, 27 deletions
@@ -1,40 +1,44 @@ pkgbase = linux-xanmod-rt pkgdesc = Linux Xanmod real-time version - pkgver = 6.1.59 + pkgver = 6.1.64 pkgrel = 1 url = http://www.xanmod.org/ arch = x86_64 license = GPL2 makedepends = bc makedepends = cpio - makedepends = kmod + makedepends = gettext makedepends = libelf + makedepends = pahole makedepends = perl + makedepends = python makedepends = tar makedepends = xz options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.sign - source = patch-6.1.59-rt16-xanmod1.xz::https://sourceforge.net/projects/xanmod/files/releases/rt/6.1.59-rt16-xanmod1/patch-6.1.59-rt16-xanmod1.xz/download + source = patch-6.1.64-rt17-xanmod1.xz::https://sourceforge.net/projects/xanmod/files/releases/rt/6.1.64-rt17-xanmod1/patch-6.1.64-rt17-xanmod1.xz/download source = choose-gcc-optimization.sh validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886 validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E sha256sums = 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb sha256sums = SKIP - sha256sums = 5a22f50b84a7f40a2c06182830b38f55ba8bd08f297bd98513101de2fdc64726 + sha256sums = a05a8e75178714b2858c870e0d571b5258b46d6504d9d0e9fdd20fbc2d7bfa5b sha256sums = a8b38eb482eb685944757182c4886404abc12703e5e56ec39c7d61298d17d71f pkgname = linux-xanmod-rt pkgdesc = The Linux kernel and modules with Xanmod patches depends = coreutils - depends = kmod depends = initramfs - optdepends = crda: to set the correct wireless channels of your country + depends = kmod + optdepends = wireless-regdb: to set the correct wireless channels of your country optdepends = linux-firmware: firmware images needed for some devices + provides = KSMBD-MODULE provides = VIRTUALBOX-GUEST-MODULES provides = WIREGUARD-MODULE - provides = KSMBD-MODULE provides = NTFS3-MODULE + replaces = virtualbox-guest-modules-arch + replaces = wireguard-arch pkgname = linux-xanmod-rt-headers pkgdesc = Headers and scripts for building modules for the Linux Xanmod real-time version kernel @@ -1,6 +1,6 @@ # Maintainer: Joan Figueras <ffigue at gmail dot com> # Contributor: Torge Matthies <openglfreak at googlemail dot com> -# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org> ## ## The following variables can be customized at build time. Use env or export to change at your wish @@ -73,9 +73,9 @@ fi pkgbase=linux-xanmod-rt _major=6.1 -pkgver=${_major}.59 +pkgver=${_major}.64 _branch=6.x -_rt=16 +_rt=17 xanmod=1 _revision= _sf_branch=rt @@ -86,7 +86,15 @@ arch=(x86_64) license=(GPL2) makedepends=( - bc cpio kmod libelf perl tar xz + bc + cpio + gettext + libelf + pahole + perl + python + tar + xz ) if [ "${_compiler}" = "clang" ]; then makedepends+=(clang llvm lld python) @@ -106,13 +114,12 @@ validpgpkeys=( _commit="ec9e9a4219fe221dec93fa16fddbe44a34933d8d" _patches=() for _patch in ${_patches[@]}; do - #source+=("${_patch}::https://git.archlinux.org/svntogit/packages.git/plain/trunk/${_patch}?h=packages/linux&id=${_commit}") source+=("${_patch}::https://raw.githubusercontent.com/archlinux/svntogit-packages/${_commit}/trunk/${_patch}") done sha256sums=('2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb' 'SKIP' - '5a22f50b84a7f40a2c06182830b38f55ba8bd08f297bd98513101de2fdc64726' + 'a05a8e75178714b2858c870e0d571b5258b46d6504d9d0e9fdd20fbc2d7bfa5b' 'a8b38eb482eb685944757182c4886404abc12703e5e56ec39c7d61298d17d71f') export KBUILD_BUILD_HOST=${KBUILD_BUILD_HOST:-archlinux} @@ -236,17 +243,28 @@ build() { _package() { pkgdesc="The Linux kernel and modules with Xanmod patches" - depends=(coreutils kmod initramfs) - optdepends=('crda: to set the correct wireless channels of your country' - 'linux-firmware: firmware images needed for some devices') - provides=(VIRTUALBOX-GUEST-MODULES - WIREGUARD-MODULE - KSMBD-MODULE - NTFS3-MODULE) + depends=( + coreutils + initramfs + kmod + ) + optdepends=( + 'wireless-regdb: to set the correct wireless channels of your country' + 'linux-firmware: firmware images needed for some devices' + ) + provides=( + KSMBD-MODULE + VIRTUALBOX-GUEST-MODULES + WIREGUARD-MODULE + NTFS3-MODULE + ) + replaces=( + virtualbox-guest-modules-arch + wireguard-arch + ) cd linux-${_major} - local kernver="$(<version)" - local modulesdir="$pkgdir/usr/lib/modules/$kernver" + local modulesdir="$pkgdir/usr/lib/modules/$(<version)" msg2 "Installing boot image..." # systemd expects to find the kernel here to allow hibernation @@ -257,10 +275,11 @@ _package() { echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" msg2 "Installing modules..." - make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install + ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \ + DEPMOD=/doesnt/exist modules_install # Suppress depmod - # remove build and source links - rm "$modulesdir"/{source,build} + # remove build link + rm "$modulesdir"/build } _package-headers() { @@ -325,7 +344,7 @@ _package-headers() { msg2 "Stripping build tools..." local file while read -rd '' file; do - case "$(file -bi "$file")" in + case "$(file -Sib "$file")" in application/x-sharedlib\;*) # Libraries (.so) strip -v $STRIP_SHARED "$file" ;; application/x-archive\;*) # Libraries (.a) @@ -339,7 +358,7 @@ _package-headers() { msg2 "Stripping vmlinux..." strip -v $STRIP_STATIC "$builddir/vmlinux" - + msg2 "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" |