Re: [android-kernel] Re: loadable kernel module...

2010-05-26 Thread rohan raizada
Thanks Greg, Perumal and Pavan for your inputs .. finally i got it working :-) Thanks, Rohan. On Wed, May 26, 2010 at 12:46 PM, Pavan Savoy wrote: > M=`pwd` should work from your present working directory .. > > On Wed, May 26, 2010 at 10:07 PM, rohan raizada > wrote: > > Hi, > > > > I created

Re: [android-kernel] Re: loadable kernel module...

2010-05-26 Thread Pavan Savoy
M=`pwd` should work from your present working directory .. On Wed, May 26, 2010 at 10:07 PM, rohan raizada wrote: > Hi, > > I created a Makefile as Greg suggested but even then it doesnt seem to work > and now it seems to be giving me this error. > The Makefile that I have is as follows: > > /***

Re: [android-kernel] Re: loadable kernel module...

2010-05-26 Thread rohan raizada
Hi, I created a Makefile as Greg suggested but even then it doesnt seem to work and now it seems to be giving me this error. The Makefile that I have is as follows: /**/ myhome=/hom

[android-kernel] Re: loadable kernel module...

2010-05-26 Thread perumal316
Hi Rohan, You can try using the below code in the Makefile: ifeq ($(KERNELRELEASE),) KERNELDIR ?= /home/ PWD := $(shell pwd) .PHONY: build clean build: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c else $(info Building with KER