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

Re: Missing Makefile



On 7/31/2013 11:12 PM, Tom H wrote:
On Tue, 30 Jul 2013 23:05:01 -0400, Jerry Stuckle wrote:
 >
 > I'm trying to compile my first module for Debian.
 >
 > My makefile is:
 >
 > obj-m = mymodule.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
 >
 > When I try to run make, I get the following:
 >
 > make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules
 > make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
 > /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44:
 > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such
 > file or directory make[5]: *** No rule to make target
 > `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop.
 >
 > That is true -
 > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile does not
 > exist.

Is linux-kbuild-3.2 installed?

"/usr/src/linux-headers-3.2.0-4-common/scripts" is a link to
"/lib/modules/linux-kbuild-3.2/scripts".



Tom,

Thanks for the response. Yes, linux-kbuild-3.2 is installed (and the symlink is correct).

Jerry


Reply to: