[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Missing makefile



On 7/31/2013 10:32 AM, Ben Hutchings wrote:
On Wed, 2013-07-31 at 08:57 -0400, Jerry Stuckle wrote:
On 7/31/2013 4:39 AM, Ben Hutchings wrote:
On Tue, 2013-07-30 at 23:05 -0400, Jerry Stuckle wrote:
Hi, all,

I hope this is the right list.

I'm trying to compile my first module for Debian (right now it doesn't
do anything - one step at a time :) ).

My makefile is:

obj-m = mymodule.o
KVERSION = $(shell uname -r)
all:
	make -C /lib/modules/$(KVERSION)/build M-$(PWD) modules
[...]

You typed 'M-' instead of 'M='.

Ben.


Ben,

Thanks for catching that (it must have been later than I thought last
night :) ).

However, that didn't change the problem.  I still get the missing
Makefile message.

Your Makefile works for me with the typo fixed and a trivial mymodule.c:

#include <linux/module.h>
MODULE_LICENSE("GPL");

Please direct further questions to debian-user, as this is not on-topic
for debian-devel.

Ben.


Well, it still doesn't work for me. No change in the error, and the file is still missing.

And compiling kernel modules is off-topic for debian-user. It should, however, be on-topic here.

Of course, if you don't new modules (the hardware will eventually be available to the public), then we can always look at other distros.


Reply to: