pkg-nvidia-pikaos-kernel-mo.../nvidia-pikaos-kernel-module/Makefile

13 lines
418 B
Makefile
Raw Normal View History

2023-09-02 15:33:40 +02:00
DRIVER=$(shell cat ${./DRIVER})
KERNEL=$(shell cat ${./KERNEL})
VERSION=$(shell cat ${./VERSION})
CARCH=x86_64
.PHONY: install
all:
true
install:
fakeroot dkms build --dkmstree "$(shell ./get_pwd.sh)" -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 {} +