mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[kvmfr] added the ability to obtain a dmabuf of the ivshmem memory
This is to enable the ability to use dri3 to create dmabuf backed pixmaps directly.
This commit is contained in:
@@ -3,14 +3,20 @@ USER := $(shell whoami)
|
||||
KVER ?= $(shell uname -r)
|
||||
KDIR ?= /lib/modules/$(KVER)/build
|
||||
|
||||
all:
|
||||
all: test
|
||||
make -C $(KDIR) M=$(PWD) modules
|
||||
|
||||
clean:
|
||||
make -C $(KDIR) M=$(PWD) clean
|
||||
|
||||
test: all
|
||||
test:
|
||||
gcc test.c -Wall -Werror -g -Og -o test
|
||||
|
||||
load: 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
|
||||
sudo chown $(USER) /dev/kvmfr0
|
||||
|
||||
.PHONY: test
|
||||
|
Reference in New Issue
Block a user