Re: Trouble making module

2010-10-13 Thread Dave Hylands
Hi Wouter, On Tue, Oct 12, 2010 at 11:50 PM, Wouter Simons l...@woutersimons.org wrote: On 10/12/2010 04:40 PM, Dave Hylands wrote: Hi guys, On Tue, Oct 12, 2010 at 6:46 AM, Wouter Simons l...@woutersimons.org wrote: On 10/12/2010 12:30 PM, shivanth m p wrote: ...snip... all:        obj-m

Re: Trouble making module

2010-10-13 Thread Wouter Simons
On 10/13/2010 12:20 PM, Robert P. J. Day wrote: On Wed, 13 Oct 2010, Dave Hylands wrote: That looks reasonable, although the normal way of specifying multiple files in an object is like: obj-m := composite_driver.o composite_driver-objs := file1.o file2.o which is what you mentioned with

Re: Trouble making module

2010-10-13 Thread Robert P. J. Day
On Wed, 13 Oct 2010, Dave Hylands wrote: That looks reasonable, although the normal way of specifying multiple files in an object is like: obj-m := composite_driver.o composite_driver-objs := file1.o file2.o which is what you mentioned with the excerpt from the kbuild documenation.

Re: Trouble making module

2010-10-13 Thread shivanth m p
On Wed, Oct 13, 2010 at 3:57 PM, Wouter Simons l...@woutersimons.orgwrote: On 10/13/2010 12:20 PM, Robert P. J. Day wrote: On Wed, 13 Oct 2010, Dave Hylands wrote: That looks reasonable, although the normal way of specifying multiple files in an object is like: obj-m :=

Re: Trouble making module

2010-10-13 Thread Mulyadi Santosa
On Thu, Oct 14, 2010 at 12:23, shivanth m p fordearli...@gmail.com wrote: I actually put a space in  M= $(PWD) . Note the whitespace between = and $ . That was the root of all causes :-) Hope you people dont spent most of your time debugging the make file . its really irritating Thanks for

Re: Trouble making module

2010-10-12 Thread shivanth m p
On Tue, Oct 12, 2010 at 12:43 PM, Wouter Simons l...@woutersimons.orgwrote: On 10/11/2010 05:20 PM, shivanth m p wrote: I created a kernel module for the 2.6.33 kernel outside the kernel source directory . When i give the make command it says Nothing to be done for /root/mydrivers

Re: Trouble making module

2010-10-12 Thread Wouter Simons
On 10/12/2010 12:30 PM, shivanth m p wrote: On Tue, Oct 12, 2010 at 12:43 PM, Wouter Simons l...@woutersimons.org mailto:l...@woutersimons.org wrote: On 10/11/2010 05:20 PM, shivanth m p wrote: I created a kernel module for the 2.6.33 kernel outside the kernel source

Re: Trouble making module

2010-10-12 Thread gaurav mahajan
Hello shivanth, I am also a newbie to the linux kernel. I think the PWD (path) contains a folder name having spaces inside like shivnath s p. Try to use likeshivnath_s_p ,a complete path having no spaces in between. I might be wrong, but i was having the same problem and i resolved like wise.

Re: Trouble making module

2010-10-12 Thread Dave Hylands
Hi guys, On Tue, Oct 12, 2010 at 6:46 AM, Wouter Simons l...@woutersimons.org wrote: On 10/12/2010 12:30 PM, shivanth m p wrote: ...snip... all:        obj-m           += modname.o        modname-y       := mydriver.o That's definitely not going to work. You're trying to put make variable

Trouble making module

2010-10-11 Thread shivanth m p
I created a kernel module for the 2.6.33 kernel outside the kernel source directory . When i give the make command it says Nothing to be done for /root/mydrivers Here's my makefile obj-m +=mydiver.o modules : make -C ..kerndev/linux-2.6/ M=$(PWD) modules clean : make

Re: Trouble making module

2010-10-11 Thread Mulyadi Santosa
On Mon, Oct 11, 2010 at 22:20, shivanth m p fordearli...@gmail.com wrote: Here's my makefile  obj-m +=mydiver.o ^^ sure that's not a typo? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training:

Re: Trouble making module

2010-10-11 Thread Dave Hylands
HI Shivanth, On Mon, Oct 11, 2010 at 8:20 AM, shivanth m p fordearli...@gmail.com wrote: I created a kernel module for the 2.6.33 kernel outside the kernel source directory . When i give the make command it says Nothing to be done for /root/mydrivers Here's my makefile  obj-m +=mydiver.o

Re: Trouble making module

2010-10-11 Thread Robert P. J. Day
On Mon, 11 Oct 2010, Dave Hylands wrote: HI Shivanth, On Mon, Oct 11, 2010 at 8:20 AM, shivanth m p fordearli...@gmail.com wrote: I created a kernel module for the 2.6.33 kernel outside the kernel source directory . When i give the make command it says Nothing to be done for

Re: Trouble making module

2010-10-11 Thread Dave Hylands
Hi Robert, On Mon, Oct 11, 2010 at 11:18 AM, Robert P. J. Day rpj...@crashcourse.ca wrote: On Mon, 11 Oct 2010, Dave Hylands wrote: HI Shivanth, On Mon, Oct 11, 2010 at 8:20 AM, shivanth m p fordearli...@gmail.com wrote: I created a kernel module for the 2.6.33 kernel outside the kernel