Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 01-18-2006, 11:50 PM   #1
LQ Newbie
Registered: Apr 2005
Location: India
Posts: 5

Rep: Reputation: 0
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.

Old 01-19-2006, 12:17 AM   #2
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
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.
Old 01-19-2006, 01:02 AM   #3
LQ Newbie
Registered: Apr 2005
Location: India
Posts: 5

Original Poster
Rep: Reputation: 0
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.
Old 01-19-2006, 07:30 AM   #4
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial for writing cypher kernel module ta0kira Programming 7 06-19-2011 10:43 PM
How to write makefile for module in 2.6 kernel which builds and uses libraries videsh Linux - Distributions 1 01-19-2006 02:57 PM
Require a Makefile for kernel module programs b123coder Linux - Newbie 1 12-28-2004 10:11 AM
creating Makefile with multiple kernel module files b123coder Programming 0 12-26-2004 08:41 AM
module makefile for c++ in kernel 2.6 yuhuahe Linux - Software 0 04-14-2004 06:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration