Dear Kumaran,<br><br>Try to compile with the below makefile<br><br><b>"<font><font color="#000000"><pre class="PROGRAMLISTING">obj-m += hello-1.o
all:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean"</pre></font></font></b><br><br>Regards<br>Sharief<br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 12:24 PM, Ponkumaran Annadurai <span dir="ltr"><<a href="mailto:aspkumaran@gmail.com">aspkumaran@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 12:15 PM, Prashant Shah <span dir="ltr"><<a href="mailto:pshah.mumbai@gmail.com" target="_blank">pshah.mumbai@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div><br>
On Sun, Jul 10, 2011 at 11:36 AM, Ponkumaran Annadurai<br>
<<a href="mailto:aspkumaran@gmail.com" target="_blank">aspkumaran@gmail.com</a>> wrote:<br>
><br>
> Also I couldn't understand the script (particularly $(MAKE) - what does the<br>
> variable stands for? also the rest of the code after "depend.depend.dep").<br>
> If you can explain the script, I shall know how to edit the script for my<br>
> file.<br>
<br>
</div>Edit the Makefile and add the following echo's<br>
<br>
`default:<br>
echo $(MAKE)<br>
echo $(KERNELDIR)<br>
echo $(PWD)<br>
<div> $(MAKE) -C $(KERNELDIR) M=$(PWD)<br>
<br>
</div>You can try echoing the values of the variables. The $(MAKE) is the<br>
make command used.<br>
</blockquote></div><br></div>Thanks sir, It worked. But still I couldn't understand what is the wrong in the makefile given in TLDP.org, also the if statements as said in the previous mail.<br>One more thing can I install the new kernel in a virtual machine like virtual box? if so how can I do it? coz I can't access Internet from that kernel. Suggesting some measures will be helpful.<br clear="all">
<font color="#888888">
<br>-- <br>thanks,<br>kumaran<br>
</font><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br>