LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-06-2003, 12:43 PM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Building kernel mods for an existing kernel


Suppose I have built a kernel from the official source and I want to add modules to it later on (from the same source), is it possible to do this without rebuilding what has been built?

For eg, my present kernel has sound support (sound.o and soundcore.o) but not a specific sound card's driver. I decide to build this driver based on my existing .config build settings. How do I accomplish this without rebuilding sound.o/soundcore.o (or the other modules for that matter)?

I'm able to individually compile the driver by doing...

make obj-m=trident.o modules

but trident.o has another dependency module (ac97_codec.o) that is not part of my existing kernel does not get built this way. i could manually figure out what deps are needed but this seems kind of error prone and time wasting. so is there a better way that will track and build all dependent mods (but not those deps that have already been built)?
 
Old 10-06-2003, 01:06 PM   #2
Hans Zarkoff
Member
 
Registered: Apr 2002
Location: Canada
Distribution: Slackware
Posts: 58

Rep: Reputation: 15
The only way I know of is listed in the kernel-howto:
http://www.tldp.org/HOWTO/Kernel-HOW...es.html#AEN285

Hope this helps.
 
Old 10-06-2003, 01:25 PM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
i've already read the howto and no that didnt address the issue.
that method does not prevent from building the already built modules.
 
  


Reply


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
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
kernel rolling, missing mods wheelsg Slackware 2 03-10-2004 05:40 PM
HowDo I replace my existing kernel with a precompiled distro kernel ? gmartin Slackware 1 01-06-2004 09:46 PM
Adding Mods to the Kernel frkstein Linux - General 2 11-29-2003 05:28 PM
2.2.0 kernel wrong mods spux Linux - Newbie 0 03-23-2003 08:57 PM


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

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