15 lines
581 B
Plaintext
Raw Normal View History

2023-09-02 16:44:58 +03:00
.PHONY: install
all:
true
install:
2023-09-02 17:09:56 +03:00
fakeroot dkms build --verbose --dkmstree "${MK_WORKDIR}" -m nvidia/"${DRIVER}" -k "${KERNEL}"
2023-09-02 16:44:58 +03:00
install -Dt "$(DESTDIR)/usr/lib/modules/"${KERNEL}"/extramodules" -m644 nvidia/"${DRIVER}"/"${KERNEL}"/"${CARCH}"/module/*
2023-09-02 17:16:25 +03:00
find "$(DESTDIR)" -name '*.ko' -exec xz -T1 {} +
2023-09-02 19:27:04 +03:00
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