nvidia{,-stable}: the nvidia-uvm module is only available on x86_64.

This commit is contained in:
Juan RP 2015-01-29 10:48:54 +01:00
parent e8e538b84c
commit 33c64900cd
2 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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