[ale] compiling modules

Joseph A. Knapka jknapka at earthlink.net
Sat Aug 4 04:01:03 EDT 2001


Gary Lawler wrote:
> 
> I compiled kernel 2.4.6 today and found that it did not compile the
> tulip module needed for my NIC. Can I compile it with out having to
> recompile the whole kernel? If so, what command would I use to compile
> it? If not, what option did I miss to get it to compile.  Is there any
> thing in the LDP that I missed?
> 
> All suggestions and help are greatly appreciated.

You can usually compile a single module like this:

gcc -c -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -o your_mod.o
your_mod.c

You may need to add other command-line options as appropriate for
your kernel configuration - do "make modules" and watch a couple
gcc commands go by to get the complete list. Basically your
command should look just like the ones used by "make modules",
except for the file names.

HTH,

-- Joe Knapka
"You know how many remote castles there are along the gorges? You
 can't MOVE for remote castles!" -- Lu Tze re. Uberwald
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
2nd Lbl A + 1 = 2nd Pause 2nd Prt GTO 2 R/S
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list