LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help in writing Makefile for module in 2.6 kernel (http://www.linuxquestions.org/questions/linux-software-2/need-help-in-writing-makefile-for-module-in-2-6-kernel-405240/)

videsh 01-19-2006 12:50 AM

need help in writing Makefile for module in 2.6 kernel
 
Hi,

I want to make a module for 2.6 kernel, but it involves first making libraries and then ld all .o and .a . How can I do it in 2.6 kernel since the way we write Makefile is completely different from that for 2.4 kernel.

I will appreciate your support.

Regards
Videsh

scott_R 01-19-2006 01:17 AM

This would be better asked in the programming forum, but you should be able to find a lot of (updated/specific) information in the documentation that comes with your kernel, especially in the ./Documentation/kbuild/ directory.

Hope that helps a little, though.

videsh 01-19-2006 02:02 AM

Thanks for ur reply scott.
I read the documents, it mentions something about building library, but it did not work when I tried using lib-m.
I have some cpp files also, but those are not compiled even if I give it as {modulename}-cxxobjs as mentioned in the document.

jtshaw 01-19-2006 08:30 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Continue this here.


All times are GMT -5. The time now is 04:53 PM.