Skip to content

Commit 660f9d2

Browse files
committed
linux-cachyos: auto updated to 6.18.2-1
It has been built because: * nvchecker detects the following updates: aur(0): 6.18.1-1 -> 6.18.2-1
1 parent 09eba4a commit 660f9d2

1 file changed

Lines changed: 4 additions & 46 deletions

File tree

archlinuxcn/linux-cachyos/PKGBUILD

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@
111111
# If you use ZFS, refrain from building the RT kernel
112112
: "${_build_zfs:=no}"
113113

114-
# Builds the nvidia module and package it into a own base
115-
# This does replace the requirement of nvidia-dkms
116-
: "${_build_nvidia:=no}"
117-
118114
# Builds the open nvidia module and package it into a own base
119115
# This does replace the requirement of nvidia-open-dkms
120116
# Use this only if you have Turing+ GPU
@@ -170,7 +166,7 @@ fi
170166

171167
pkgbase="linux-$_pkgsuffix"
172168
_major=6.18
173-
_minor=1
169+
_minor=2
174170
#_minorc=$((_minor+1))
175171
#_rcver=rc8
176172
pkgver=${_major}.${_minor}
@@ -204,7 +200,7 @@ makedepends=(
204200
)
205201

206202
_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"
207-
_nv_ver=580.119.02
203+
_nv_ver=590.48.01
208204
_nv_pkg="NVIDIA-Linux-x86_64-${_nv_ver}"
209205
_nv_open_pkg="NVIDIA-kernel-module-source-${_nv_ver}"
210206
source=(
@@ -235,11 +231,6 @@ if [ "$_build_zfs" = "yes" ]; then
235231
source+=("git+https://github.com/cachyos/zfs.git#commit=7de9800e5ce45d03c797be57a3e959fc914b2adb")
236232
fi
237233

238-
# NVIDIA pre-build module support
239-
if [ "$_build_nvidia" = "yes" ]; then
240-
source+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"
241-
"${_patchsource}/misc/nvidia/0001-Enable-atomic-kernel-modesetting-by-default.patch")
242-
fi
243234

244235
if [ "$_build_nvidia_open" = "yes" ]; then
245236
source+=("https://download.nvidia.com/XFree86/${_nv_open_pkg%"-$_nv_ver"}/${_nv_open_pkg}.tar.xz"
@@ -514,14 +505,6 @@ prepare() {
514505
local basedir="$(dirname "$(readlink "${srcdir}/config")")"
515506
cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}"
516507

517-
if [ "$_build_nvidia" = "yes" ]; then
518-
cd "${srcdir}"
519-
sh "${_nv_pkg}.run" --extract-only
520-
521-
# Use fbdev and modeset as default
522-
patch -Np1 -i "${srcdir}/0001-Enable-atomic-kernel-modesetting-by-default.patch" -d "${srcdir}/${_nv_pkg}/kernel"
523-
fi
524-
525508
if [ "$_build_nvidia_open" = "yes" ]; then
526509
patch -Np1 -i "${srcdir}/0001-Enable-atomic-kernel-modesetting-by-default.patch" -d "${srcdir}/${_nv_open_pkg}/kernel-open"
527510
patch -Np1 -i "${srcdir}/0002-Add-IBT-support.patch" -d "${srcdir}/${_nv_open_pkg}/"
@@ -556,11 +539,6 @@ build() {
556539
SYSSRC="${srcdir}/${_srcname}"
557540
SYSOUT="${srcdir}/${_srcname}"
558541
)
559-
if [ "$_build_nvidia" = "yes" ]; then
560-
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES')
561-
cd "${srcdir}/${_nv_pkg}/kernel"
562-
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules
563-
fi
564542

565543
if [ "$_build_nvidia_open" = "yes" ]; then
566544
cd "${srcdir}/${_nv_open_pkg}"
@@ -756,25 +734,6 @@ _package-zfs(){
756734
# sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${pkgver}-${pkgbase}'/" "$startdir/zfs.install"
757735
}
758736

759-
_package-nvidia(){
760-
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
761-
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
762-
provides=('NVIDIA-MODULE')
763-
conflicts=("$pkgbase-nvidia-open")
764-
license=('custom')
765-
766-
cd "$_srcname"
767-
local modulesdir="$pkgdir/usr/lib/modules/$(<version)/extramodules"
768-
769-
cd "${srcdir}/${_nv_pkg}"
770-
install -dm755 "${modulesdir}"
771-
install -m644 kernel/*.ko "${modulesdir}"
772-
install -Dt "$pkgdir/usr/share/licenses/${pkgname}" -m644 LICENSE
773-
774-
_sign_modules "${modulesdir}"
775-
find "$pkgdir" -name '*.ko' -exec zstd --rm -19 -T0 {} +
776-
}
777-
778737
_package-nvidia-open(){
779738
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
780739
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
@@ -798,7 +757,6 @@ pkgname=("$pkgbase")
798757
[ "$_build_debug" = "yes" ] && pkgname+=("$pkgbase-dbg")
799758
pkgname+=("$pkgbase-headers")
800759
[ "$_build_zfs" = "yes" ] && pkgname+=("$pkgbase-zfs")
801-
[ "$_build_nvidia" = "yes" ] && pkgname+=("$pkgbase-nvidia")
802760
[ "$_build_nvidia_open" = "yes" ] && pkgname+=("$pkgbase-nvidia-open")
803761
for _p in "${pkgname[@]}"; do
804762
eval "package_$_p() {
@@ -807,7 +765,7 @@ for _p in "${pkgname[@]}"; do
807765
}"
808766
done
809767

810-
b2sums=('6ea6a7235ee59f876b015c6fda0f2772980c6ea58240689ce581182262387cbef3aed3c95ced66cdb56479cbd83961fbcbdfdff09f049941c3daf047710adb61'
768+
b2sums=('2e5cae5fe963cf25344ccfe9426d2edab2583b1bb206f6551d60177777595d4c19200e5e3c35ca41b574d25e8fa49013ea086efe05078e7ec2203c77ea420d51'
811769
'4193034f32392fe6c551080b2afab61d7efbb3a7205daf73490a102d2649b1fa54e0e91dcd3b99afd29795dbf11c1d1a17e0f9b7fd9747b90d296977f2a7bb77'
812-
'7b839b9a94345b95a782c380394536e492de16716649e6913ddde6cf82b857873994f88aecb78d3164c87684519fbda69c1a49ce76449baee36c50e9071e0feb'
770+
'810ae795919a4414d386288d484ae1e7e73ea56a827e5f7dca3cebfcec32a3e82bb05c2a6bc450b3a08a1d0aa6d275dbb1f1fb5dde41156e172278c317383e09'
813771
'c7294a689f70b2a44b0c4e9f00c61dbd59dd7063ecbe18655c4e7f12e21ed7c5bb4f5169f5aa8623b1c59de7b2667facb024913ecb9f4c650dabce4e8a7e5452')

0 commit comments

Comments
 (0)