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

Makefile:

obj-m := wierd.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
        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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/92691c41-9dca-6f31-aa6c-91cfb3930426%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to