How can I build a kernel module for an AppVM?  I would like to write
some simple kernel modules, but I cannot figure out how to build them. 
I get:

make[1]: *** No rule to make target 'tools/objtool/objtool', needed by
'/home/user/kernel/wierd.o'.  Stop. make: *** [Makefile:1507:
_module_/home/user/kernel] Error 2 make: Leaving directory
'/usr/lib/modules/4.14.18-1.pvops.qubes.x86_64/build' make: ***
[Makefile:5: default] Error 2


obj-m := wierd.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
        make $(MAKE) -c $(KDIR) SUBDIRS=$(PWD) help modules

Adding sudo to the inner make command has no effect.

You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to