upg linux-lts

This commit is contained in:
joborun linux 2023-09-22 18:42:14 +03:00
parent 5be90d2758
commit a1cf85fce1
4 changed files with 246 additions and 22 deletions

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=linux-lts
pkgver=5.10.195
pkgver=5.10.196
pkgrel=01
pkgdesc='LTS Linux 5.10 + nvme-fix patch w/o zstd & ipv6'
_url="https://www.kernel.org/"
@ -211,14 +211,15 @@ validpgpkeys=(ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
647F28654894E3BD457199BE38DBBDC86092693E) # Greg Kroah-Hartman
# https://cdn.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
# sha256sums:413bee4adc71a104b998abe8ffd8403a41edf9f634ab82bee509619da2789b58 linux-5.10.195.tar.xz
# sha256sums:71ec2e3af082bcd7c4aac4b8ecdbc2e47695befe4984e3e5567791a605a96fc0 # linux-5.10.196.tar.xz
sha256sums=(413bee4adc71a104b998abe8ffd8403a41edf9f634ab82bee509619da2789b58 # linux-5.10.195.tar.xz
89bfb81748206af73e5ff6ddf36e33ef14465da18c3ed6693f6b11efd0c4ef47 # linux-5.10.195.tar.sign
bc9a0615f58502fad5c1e59980d4b44474f89ae232995f107d9bd4fd11500b6e # config
sha256sums=(71ec2e3af082bcd7c4aac4b8ecdbc2e47695befe4984e3e5567791a605a96fc0 # linux-5.10.196.tar.xz
c2cec75df0018a0d924aacdd98cb820c743fff4551bfcff0ce27176482da346d # linux-5.10.196.tar.sign
8503d0f225208a01ccd98b37a38a1eb14fc1f18863fbda798ff5dacd8be104ad # config
96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e # 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
0e14c0d788262a9781d8ba1d6e894f30877f015ccf0b6d768d759eac48bcede9 # 0002-fix-nvme.patch
ef15845ece7bc90696c722ac031d2794a33bd73be7e401fbec48e4446c3717ae) # sha256sums
92118f1acd03d920cc307a23fa1f7601f5db6613b1cda04ecf75cb4ecdfb836b) # sha256sums
## d93fcaad3674a56fd8888da169a08fd94afd511362b3ebce0e93ec06b54745a3 linux-lts-5.10.196-01-x86_64.pkg.tar.lz
## 9acfe7412e1dd71ab4f18843e62cbe4bad3bcb0fb089cd2e9dac3e32965e8555 linux-lts-headers-5.10.196-01-x86_64.pkg.tar.lz
## b86f1ad1ed8afe65cbc0706dab6e2b525b754feffb471856eced4ee24de1d464 linux-lts-headers-5.10.195-01-x86_64.pkg.tar.lz
## 365f4e73eb947d5d5383e5fe3b51f762573077b98427375e252f41fc62a16ad3 linux-lts-5.10.195-01-x86_64.pkg.tar.lz

219
linux-lts/PKGBUILD-arch Normal file
View file

@ -0,0 +1,219 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgbase=linux-lts
pkgver=5.15.43
pkgrel=1
pkgdesc='LTS Linux'
url="https://www.kernel.org/"
arch=(x86_64)
license=(GPL2)
makedepends=(
bc libelf pahole cpio perl tar xz
xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra
)
options=('!strip')
_srcname=linux-$pkgver
source=(
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
config # the main kernel config file
0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
0002-PCI_Add_more_NVIDIA_controllers_to_the_MSI_masking_quirk.patch
0003-iommu_intel_do_deep_dma-unmapping_to_avoid_kernel-flooding.patch
0004-Bluetooth_btintel_Fix_bdaddress_comparison_with_garbage_value.patch
0005-lg-laptop_Recognize_more_models.patch
0006_fix_NFSv4_mount_regression.diff
)
validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
# https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
sha256sums=('064b913a9d58773a85cafa62f2a2f9031aeee724d7e41b66631037d9a6571c12'
'SKIP'
'68de8b84a6e6a61b7107ca1ba6dd3f729531af890af8bebe3b9ba4bb1ec0d118'
'99df282c594cc269d9a5d19bb86ea887892d3654cfc53c4ce94a644cf3278423'
'c35018601f04ae81e0a2018a8597595db6ae053158c206845399cdebb2d2b706'
'7c7707c738983f3683d76295b496f578996b7341fa39ad334ec2833bfe4b966e'
'3fa8a4af66d5a3b99b48ca979a247c61e81c9b2d3bcdffa9d3895a5532a420b4'
'79266c6cc970733fd35881d9a8f0a74c25c00b4d81741b8d4bba6827c48f7c78'
'e9527ad81d5b1821a7b17c56cb3abaec85785563f51e448cb3c06f1c68e2966f')
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
prepare() {
cd $_srcname
# fix NFSv4 mounting issue regression - FS#73838 / FS#73860
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=6f2836341d8a39e1e000572b10959347d7e61fd9
patch -Rp1 -i ../0006_fix_NFSv4_mount_regression.diff
echo "Setting version..."
scripts/setlocalversion --save-scmversion
echo "-$pkgrel" > localversion.10-pkgrel
echo "${pkgbase#linux}" > localversion.20-pkgname
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
echo "Setting config..."
cp ../config .config
make olddefconfig
# diff -u ../config .config || :
#return 1
make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)"
}
build() {
cd $_srcname
make all
make htmldocs
}
_package() {
pkgdesc="The $pkgdesc kernel and modules"
depends=(coreutils kmod initramfs)
optdepends=('wireless-regdb: to set the correct wireless channels of your country'
'linux-firmware: firmware images needed for some devices')
provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
replaces=(wireguard-lts)
cd $_srcname
local kernver="$(<version)"
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
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}
}
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=(pahole)
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
echo "Installing build files..."
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
localversion.* version vmlinux
install -Dt "$builddir/kernel" -m644 kernel/Makefile
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
cp -t "$builddir" -a scripts
# add objtool for external module building and enabled VALIDATION_STACK option
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# add xfs and shmem for aufs building
mkdir -p "$builddir"/{fs/xfs,mm}
echo "Installing headers..."
cp -t "$builddir" -a include
cp -t "$builddir/arch/x86" -a arch/x86/include
install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
install -Dt "$builddir/drivers/md" -m644 drivers/md/*.h
install -Dt "$builddir/net/mac80211" -m644 net/mac80211/*.h
# https://bugs.archlinux.org/task/13146
install -Dt "$builddir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h
# https://bugs.archlinux.org/task/20402
install -Dt "$builddir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h
# https://bugs.archlinux.org/task/71392
install -Dt "$builddir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
echo "Removing unneeded architectures..."
local arch
for arch in "$builddir"/arch/*/; do
[[ $arch = */x86/ ]] && continue
echo "Removing $(basename "$arch")"
rm -r "$arch"
done
echo "Removing documentation..."
rm -r "$builddir/Documentation"
echo "Removing broken symlinks..."
find -L "$builddir" -type l -printf 'Removing %P\n' -delete
echo "Removing loose objects..."
find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete
echo "Stripping build tools..."
local file
while read -rd '' file; do
case "$(file -bi "$file")" in
application/x-sharedlib\;*) # Libraries (.so)
strip -v $STRIP_SHARED "$file" ;;
application/x-archive\;*) # Libraries (.a)
strip -v $STRIP_STATIC "$file" ;;
application/x-executable\;*) # Binaries
strip -v $STRIP_BINARIES "$file" ;;
application/x-pie-executable\;*) # Relocatable binaries
strip -v $STRIP_SHARED "$file" ;;
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
echo "Stripping vmlinux..."
strip -v $STRIP_STATIC "$builddir/vmlinux"
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
}
_package-docs() {
pkgdesc="Documentation for the $pkgdesc kernel"
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
echo "Installing documentation..."
local src dst
while read -rd '' src; do
dst="${src#Documentation/}"
dst="$builddir/Documentation/${dst#output/}"
install -Dm644 "$src" "$dst"
done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/share/doc"
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
}
pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
_package${_p#$pkgbase}
}"
done
# vim:set ts=8 sts=2 sw=2 et:
4076fafd2c0a4fbcf76a41b8db47c75d2d6ca4a791d0ec18621410ae2bc000f3 config

View file

@ -1,7 +1,7 @@
#
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.10.195 Kernel Configuration
# Linux/x86 5.10.196 Kernel Configuration
#
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 13.2.1 20230804"

View file

@ -635,6 +635,7 @@ e51038e6d7080ee224d6b1263afafd64a47ef01f308d05114b99e1c416caac69 ChangeLog-5.10
bf8f6d70c9fbea18338758686ee2892b383ad59fad357324c409a04325fff4aa ChangeLog-5.10.193
b777407f8e47d5556d75993c9a01c0386b1ca1f0cfd3cc63eff13564c53f8c0a ChangeLog-5.10.194
a88261541ebb0f206c21dc0ec7c3c27fa3ab10945524ced2a1c4506922178eba ChangeLog-5.10.195
93bc08e97fbcee5fd11150333ff9a2e8ad3ac4a7229263892d5b176221e6794c ChangeLog-5.10.196
1b67a4eb91d8009cf5b47521caae0ff1c904e4fb0ec95e4c2562b61a772f3e16 ChangeLog-5.11
61e4714a1413779d4c9bf707de34ca7146714eb787a9078bcd51c8c18489dc7e ChangeLog-5.11.1
548b64c633da18f18021e72b4c9ba3212d699df6c56e9496277285283df300f5 ChangeLog-5.11.2
@ -2197,6 +2198,8 @@ d419989af291da0d9098e2dd8afda5c60f183c55a81822f20bf5887d150f1622 linux-5.10.194
240d5e47bb378c6813ecd07704fb887651ea7617159d2771071fd70bf33cd995 linux-5.10.194.tar.xz
a3f753e8774e78ded7b0bffa241152024a6eb24f2c707e00b8058563a4ec7c06 linux-5.10.195.tar.gz
413bee4adc71a104b998abe8ffd8403a41edf9f634ab82bee509619da2789b58 linux-5.10.195.tar.xz
00db84bc0f3f4d46568ba1b80a9503b887f0db56edddf1d4a3d355db67a1e0b7 linux-5.10.196.tar.gz
71ec2e3af082bcd7c4aac4b8ecdbc2e47695befe4984e3e5567791a605a96fc0 linux-5.10.196.tar.xz
8e7f07e91e9aa0611b749fd1a908dc9d28c7d612f831e9d273427d4442b55f25 linux-5.11.tar.gz
04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4 linux-5.11.tar.xz
13c77074922003f9c456dec532020067358849a54877d8bca68157b1a5feb5f7 linux-5.11.1.tar.gz
@ -3419,6 +3422,7 @@ c04019da6ab852a66bad81382fd9ba1d3a30d1d1fd784f8a0ca4565516b36098 patch-5.10.181
aff0670a8bfc7e648510640e9a7c26c60f3357b66a1d8ce39dbca1015734ca3c patch-5.10.193.xz
01091c143691b4063b630d284d77bd2840fe2a85194c8bbbfb6523d0740852f7 patch-5.10.194.xz
ef349aa1f434b381599f0910c1399ee30da64e6e99d304de0696276ebc79b6db patch-5.10.195.xz
8bcc4b46e0d4f621d4d31f35a979cc2dc41237dbe15e901897b363fb371e9210 patch-5.10.196.xz
5b2710f30dd7b0c6f886a2042a76a4e640d3a690a57817d6ac3da49d5e1d96e9 patch-5.11.xz
8808ee2c7e904f2fb3c830b41c8bbc2b2ad37638ee95fdfde68167f0be35dd3f patch-5.11.1.xz
7a6d20308aed903a81a67e76e7c6cd294fb7cbb87f887e2168097da865def8ba patch-5.11.2.xz
@ -3716,17 +3720,17 @@ fdabf20292982e808a26b87f2f29493ba9f20a87d958dc592018ba1a381669df patch-5.19.15.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBCAAGBQJlCXlhAAoJEGMtOgZYnaaxjwYP/3/qiVo2O0uWbD/ac1sSJbIx
5ti7J67677YD3Js0tc0evVQKIk1fZjM2E5tDS5WtkCcWvdtyvBi/6idF76QW5+sZ
qw1H2qTLIr6Cc8/kCOgPfQzeZjngo9VgFXPm7cmY5s1WCP/De9ch8WhqJ/N/eIXJ
qyBOy8MLXsqYhu40k3a0epnlKA8JP2ZK8K4vmxxg37WyLQq+OfvmrWshPLRV+7ll
LgGp9rPNoK00IyBZR5dzIM2MAnmbdTYkEwVi0LVUHjvjnwuWicGzFN9vIwkP0rp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