unable to compile a sample module

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
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.


Re: unable to compile a sample module
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


Site Timeline