nvidia{,-stable}: the nvidia-uvm module is only available on x86_64.
This commit is contained in:
parent
e8e538b84c
commit
33c64900cd
2 changed files with 14 additions and 6 deletions
|
@ -145,15 +145,19 @@ do_install() {
|
||||||
# dkms pkg
|
# dkms pkg
|
||||||
vmkdir usr/src/nvidia-${version}
|
vmkdir usr/src/nvidia-${version}
|
||||||
# add nvidia-uvm dkms submodule too.
|
# 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}
|
vcopy "kernel/*" usr/src/nvidia-${version}
|
||||||
|
|
||||||
# systemd modules-load.d(5) file.
|
# systemd modules-load.d(5) file.
|
||||||
vmkdir usr/lib/modules-load.d
|
vmkdir usr/lib/modules-load.d
|
||||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
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.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.
|
# Blacklist nouveau.
|
||||||
vmkdir usr/lib/modprobe.d
|
vmkdir usr/lib/modprobe.d
|
||||||
|
|
|
@ -145,15 +145,19 @@ do_install() {
|
||||||
# dkms pkg
|
# dkms pkg
|
||||||
vmkdir usr/src/nvidia-${version}
|
vmkdir usr/src/nvidia-${version}
|
||||||
# add nvidia-uvm dkms submodule too.
|
# 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}
|
vcopy "kernel/*" usr/src/nvidia-${version}
|
||||||
|
|
||||||
# systemd modules-load.d(5) file.
|
# systemd modules-load.d(5) file.
|
||||||
vmkdir usr/lib/modules-load.d
|
vmkdir usr/lib/modules-load.d
|
||||||
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
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.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.
|
# Blacklist nouveau.
|
||||||
vmkdir usr/lib/modprobe.d
|
vmkdir usr/lib/modprobe.d
|
||||||
|
|
Loading…
Reference in a new issue