<br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 10:09 PM, Niamathullah sharief <span dir="ltr"><<a href="mailto:newbiesha@gmail.com">newbiesha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Kumaran,<br><br>Try to compile with the below makefile<br><br><b>"<font><font color="#000000"><pre>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>This was the one I tried first, but it didn't work. The code suggested by Prashant worked. I just want to know why the above code doesn't work.<br>
<br>Regards<br><font color="#888888">Sharief<br><br></font><div class="gmail_quote"><div class="h5">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></div><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>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">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></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>thanks,<br>kumaran<br>