Download your favorite Linux distribution at LQ ISO.
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.


  Search this Thread
Old 10-06-2003, 01:43 PM   #1
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, 02:06 PM   #2
Hans Zarkoff
Registered: Apr 2002
Location: Canada
Distribution: Slackware
Posts: 58

Rep: Reputation: 15
The only way I know of is listed in the kernel-howto:

Hope this helps.
Old 10-06-2003, 02:25 PM   #3
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.


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 10:31 AM
kernel rolling, missing mods wheelsg Slackware 2 03-10-2004 06:40 PM
HowDo I replace my existing kernel with a precompiled distro kernel ? gmartin Slackware 1 01-06-2004 10:46 PM
Adding Mods to the Kernel frkstein Linux - General 2 11-29-2003 06:28 PM
2.2.0 kernel wrong mods spux Linux - Newbie 0 03-23-2003 09:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 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