unable to compile a sample module

Nov 17, 2005 1 Replies

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.



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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required