mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 21:47:23 +00:00
[module] added 'test' to Makefile to simplify development testing
This commit is contained in:
parent
b8a1743d8f
commit
d0a7b8df9c
@ -1,7 +1,15 @@
|
|||||||
obj-m += kvmfr.o
|
obj-m += kvmfr.o
|
||||||
|
USER := $(shell whoami)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
|
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) 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
|
||||||
|
../client/bin/looking-glass-client -f /dev/uio0 -L 128
|
||||||
|
Loading…
Reference in New Issue
Block a user