Hello,
I try to compile simple linux kernel module:
#include <linux/module.h>    
#include <linux/kernel.h>       
int init_module(void)
{
        printk("Hello world 1.\n");
        return 0;
}
void cleanup_module(void)
{
        printk(KERN_ALERT "Goodbye world 1.\n");
}
My makefile:
obj-m = testmodule.o
KVERSION = $(shell uname -r)
all:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
Now i haven't errors in my .c file.
But when i try make in terminal: make: Nothing to be done for `all'.
What's wrong?
Thank you.