Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
unable to compile a sample module
- 11-17-2005
- emb in linux
November 17, 2005, 7:44 am

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.
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
/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
- » Embedded Linux cross compiler for arm target
- — Next thread in » Embedded Linux
-
- » NET: Registered protocol family 2
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » British Medical Journal: Pfizer Vaccine Efficacy 52% After First Dose
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Co wetknÄ…c w dziury o rastrze 1.27?
- — The site's Last Updated Thread. Posted in » Electronics (Polish)
-