-   Linux - Software (
-   -   need help in writing Makefile for module in 2.6 kernel (

videsh 01-18-2006 11:50 PM

need help in writing Makefile for module in 2.6 kernel

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.


scott_R 01-19-2006 12: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 01: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 07: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.

Continue this here.

All times are GMT -5. The time now is 05:36 AM.