add NVIDIA_340XX_DKMS_ONLY option

This commit is contained in:
JerryXiao 2021-06-06 10:12:43 +08:00
parent 2222ca11f9
commit 06fbf9d626
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = nvidia-340xx pkgbase = nvidia-340xx
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
pkgver = 340.108 pkgver = 340.108
pkgrel = 19 pkgrel = 20
url = https://www.nvidia.com/ url = https://www.nvidia.com/
arch = x86_64 arch = x86_64
license = custom license = custom
@ -42,4 +42,3 @@ pkgname = nvidia-340xx-dkms
provides = nvidia-340xx=340.108 provides = nvidia-340xx=340.108
conflicts = nvidia conflicts = nvidia
conflicts = nvidia-340xx conflicts = nvidia-340xx

View file

@ -4,9 +4,9 @@
# Contributor: Eric Bélanger <eric@archlinux.org> # Contributor: Eric Bélanger <eric@archlinux.org>
pkgbase=nvidia-340xx pkgbase=nvidia-340xx
pkgname=(nvidia-340xx nvidia-340xx-dkms) pkgname=(nvidia-340xx nvidia-340xx-dkms); [ -n "$NVIDIA_340XX_DKMS_ONLY" ] && pkgname=(nvidia-340xx-dkms)
pkgver=340.108 pkgver=340.108
pkgrel=19 pkgrel=20
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch" pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
arch=('x86_64') arch=('x86_64')
url="https://www.nvidia.com/" url="https://www.nvidia.com/"
@ -55,6 +55,7 @@ prepare() {
} }
build() { build() {
[ -n "$NVIDIA_340XX_DKMS_ONLY" ] && return 0
cd "${_pkg}/kernel" cd "${_pkg}/kernel"
make SYSSRC="/usr/src/$_kernelname" module make SYSSRC="/usr/src/$_kernelname" module