Skip to content
Advertisement

Linux kernel module compiling

I try to compile simple linux kernel module:

JavaScript

My makefile:

JavaScript

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.

Advertisement

Answer

The default command in your makefile is

JavaScript

That instructs make to cd to /lib/modules/$(KVERSION)/build and run

JavaScript

In turn, that makefile is not finding anything to do. Presumably, that makefile expects to find some particular structure in your current directory.

You need to more carefully read whatever instructions led you to set up this makefile.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement