I'm trying to debug a module I programmed but I don't want to do it on the running host but against UML (don't want to reboot every 5 minutes).
The UML kernel I downloaded is 126.96.36.199. I have already downloaded the ubuntu kernel headers for this version (they belong to natty though I'm running maverick.... when I installed the .deb file with dpkg I had no problem at all).
Now I'd like to build said module against these headers. How can I do it?
Here's the makefile for my module:
obj-m := r5r.o
PWD := $(shell pwd)
KDIR := /lib/modules/$(shell uname -r)/build
make -C $(KDIR) M=$(PWD) modules
make -C $(KDIR) M=$(PWD) clean
Thanks in advance.