mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
ee5d6c7c3e
Fixes #148
14 lines
360 B
Makefile
14 lines
360 B
Makefile
obj-m += kvmfr.o
|
|
USER := $(shell whoami)
|
|
|
|
all:
|
|
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
|
|
|
|
test: all
|
|
grep -q '^uio' /proc/modules || sudo modprobe uio
|
|
grep -q '^kvmfr' /proc/modules && sudo rmmod kvmfr || true
|
|
sudo insmod ./kvmfr.ko
|
|
sudo chown $(USER) /dev/uio0
|