mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-03 07:25:38 +00:00
Update makefile to allow kernel override
This commit is contained in:
parent
2b4f8091f9
commit
71ffa0a137
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
obj-m += kvmfr.o
|
||||
USER := $(shell whoami)
|
||||
KVER ?= $(shell uname -r)
|
||||
KDIR ?= /lib/modules/$(KVER)/build
|
||||
|
||||
all:
|
||||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
|
||||
make -C $(KDIR) M=$(PWD) modules
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
|
||||
make -C $(KDIR) M=$(PWD) clean
|
||||
|
||||
test: all
|
||||
grep -q '^uio' /proc/modules || sudo modprobe uio
|
||||
|
|
Loading…
Add table
Reference in a new issue