unable to compile a sample module

Hai all I had wrote a small helloworld module and unable to compile.can anybody help me out. Here is my module path details: at path /home/haranth/dd/hello.c---->is my sample module. /home/haranath/dd/makefile--->obj-m += hello.o for compilation i used------->make -C /usr/src/linux-2.6.8.1-12mdk SUBDIRS=PWD modules

the following are the error statements which i am getting:

make:Entering directory '/usr/src/linux-2.6.8.1-12mdk' scripts/makefile.build:13:/home/haranath/dd/makefile/pwd:No such file or directory make[1]:*** no rule to make target '/home/haranath/dd/makefile/pwd. stop make:***[_module_/home/haranath/dd} Error 2 make:Leaving directory'/usr/src/linux-2.6.8.1-12mdk'

with regards

emb in linux.

Reply to
emb in linux
Loading thread data ...

at path /home/haranth/dd/hello.c---->is my sample module. /home/haranath/dd/makefile--->obj-m += hello.o for compilation i used------->make -C /usr/src/linux-2.6.8.1-12mdk SUBDIRS=PWD modules

i think u missed a $ in the make command make -C /usr/src/linux-2.6.8.1-12mdk SUBDIRS=$PWD modules

Reply to
Harish

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.