nvidia{,-stable}: the nvidia-uvm module is only available on x86_64.
This commit is contained in:
parent
e8e538b84c
commit
33c64900cd
|
@ -145,15 +145,19 @@ do_install() {
|
|||
# dkms pkg
|
||||
vmkdir usr/src/nvidia-${version}
|
||||
# add nvidia-uvm dkms submodule too.
|
||||
cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf
|
||||
fi
|
||||
vcopy "kernel/*" usr/src/nvidia-${version}
|
||||
|
||||
# systemd modules-load.d(5) file.
|
||||
vmkdir usr/lib/modules-load.d
|
||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
echo "nvidia-uvm" > ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
echo "nvidia-uvm" > ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
fi
|
||||
|
||||
# Blacklist nouveau.
|
||||
vmkdir usr/lib/modprobe.d
|
||||
|
|
|
@ -145,15 +145,19 @@ do_install() {
|
|||
# dkms pkg
|
||||
vmkdir usr/src/nvidia-${version}
|
||||
# add nvidia-uvm dkms submodule too.
|
||||
cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
cat kernel/uvm/dkms.conf.fragment >> kernel/dkms.conf
|
||||
fi
|
||||
vcopy "kernel/*" usr/src/nvidia-${version}
|
||||
|
||||
# systemd modules-load.d(5) file.
|
||||
vmkdir usr/lib/modules-load.d
|
||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
echo "nvidia-uvm" > ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
echo "nvidia-uvm" > ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia-uvm.conf
|
||||
fi
|
||||
|
||||
# Blacklist nouveau.
|
||||
vmkdir usr/lib/modprobe.d
|
||||
|
|
Loading…
Reference in New Issue
Block a user