From d09b0d9f9a5a926aa24991d5df67473395f2225e Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:27:04 +0300 Subject: [PATCH] --- nvidia-pikaos-kernel-module/Makefiletmp | 5 ++++- nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf | 1 + nvidia-pikaos-kernel-module/pika-nvidia.conf | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf create mode 100644 nvidia-pikaos-kernel-module/pika-nvidia.conf diff --git a/nvidia-pikaos-kernel-module/Makefiletmp b/nvidia-pikaos-kernel-module/Makefiletmp index b4e233a..d27f889 100644 --- a/nvidia-pikaos-kernel-module/Makefiletmp +++ b/nvidia-pikaos-kernel-module/Makefiletmp @@ -9,4 +9,7 @@ install: fakeroot dkms build --verbose --dkmstree "${MK_WORKDIR}" -m nvidia/"${DRIVER}" -k "${KERNEL}" install -Dt "$(DESTDIR)/usr/lib/modules/"${KERNEL}"/extramodules" -m644 nvidia/"${DRIVER}"/"${KERNEL}"/"${CARCH}"/module/* find "$(DESTDIR)" -name '*.ko' -exec xz -T1 {} + - \ No newline at end of file + mkdir -p "$(DESTDIR)"/etc/modprobe.d/ + install -D -m 644 blacklist-pika-nouveau.conf $(DESTDIR)/etc/modprobe.d/blacklist-pika-nouveau.conf + mkdir -p "$(DESTDIR)"/etc/modules-load.d/ + install -D -m 644 pika-nvidia.conf $(DESTDIR)/etc/modules-load.d/pika-nvidia.conf \ No newline at end of file diff --git a/nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf b/nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf new file mode 100644 index 0000000..31075c0 --- /dev/null +++ b/nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf @@ -0,0 +1 @@ +blacklist nouveau diff --git a/nvidia-pikaos-kernel-module/pika-nvidia.conf b/nvidia-pikaos-kernel-module/pika-nvidia.conf new file mode 100644 index 0000000..f607db4 --- /dev/null +++ b/nvidia-pikaos-kernel-module/pika-nvidia.conf @@ -0,0 +1,4 @@ +nvidia-modeset +nvidia-uvm +nvidia-drm +nvidia-peermem