On Fri, Jul 20, 2012 at 11:53 AM, Shakthi Kannan <[email protected]>wrote:

> Hi,
>
> --- On Fri, Jul 20, 2012 at 11:10 AM, shailendra singh
> <[email protected]> wrote:
> | well that a trz file for the code example,my question is when i compile
> | the hello.c file
> \--
>
> Which hello.c file? Which tutorial are you following? Try to write in
> detail when asking a question.
>
> SK
>
> --
> Shakthi Kannan
> http://www.shakthimaan.com
>
> --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>

hi,

 I am also starting with the device drivers,can you help me understanding
the behavior of the Makefile.
 I am following the examples in  device-drivers-2.6/ex1-hello-world.

>

obj-m += hello.o # please explain the behavior of this obj-m


 I am not able to understand what is it doing...if I comment the above line
of code it does not show any error but there is no object file..

> all:

 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


 This make -C invokes the Makefile located in build directory right ?
 Is it save to use make command in the Makefile ?


> clean:

 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

 rm -f *~






-- 
-------------------------------------------------------------------------------------------------------
*Rahul Gaur*
*irc : iamaregee2*
*blogs : *aregee.wordpress.com ,  <http://sanencynicalwriter.wordpress.com/>
http://sanencynicalwriter.wordpress.com/
*fb:* http://facebook.com/iamaregee
*github: *https://github.com/aregee

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to