linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* help: How to compile md source code as modules? Thanks!
@ 2006-01-17  8:29 Zhikun Wang
  2006-01-17  9:49 ` Francois Barre
  0 siblings, 1 reply; 2+ messages in thread
From: Zhikun Wang @ 2006-01-17  8:29 UTC (permalink / raw)
  To: linux-raid

hi,
	I am a new guy in linux MD. I want to add some fuctions into md source code to do research. But i can not complile MD source code as modules properly. Every time i need to put the source code at the directory and bulid the whole kernel. This is a terrible thing for me. So i wonder whether you can tell me how compile md as modules?
	Thank you very much!


																						zkwang
 				



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: help: How to compile md source code as modules? Thanks!
  2006-01-17  8:29 help: How to compile md source code as modules? Thanks! Zhikun Wang
@ 2006-01-17  9:49 ` Francois Barre
  0 siblings, 0 replies; 2+ messages in thread
From: Francois Barre @ 2006-01-17  9:49 UTC (permalink / raw)
  To: Zhikun Wang; +Cc: linux-raid

2006/1/17, Zhikun Wang <raidwang@gmail.com>:
> hi,
>        I am a new guy in linux MD. I want to add some fuctions into md source code to do research. But i can not complile MD source code as modules properly. Every time i need to put the source code at the directory and bulid the whole kernel. This is a terrible thing for me. So i wonder whether you can tell me how compile md as modules?
>        Thank you very much!
> zkwang
>

Hello,

First of all, you have to set md as a module.
In /usrc/src/linux, run make menuconfig, and configure md driver to be
compiled as a module [M].
Then, I think you have two options here :
- If you really want to build md (or any module) in a separate
directory, you will have to play with the kernel Makefile params, such
as SUBDIR and MODVERDIR. Have a look on out-of-kernel drivers, such as
madwifi, which uses these kind of building [http://madwifi.org/].
- Modify md source in-place, in /usr/src/kernel/drivers/md, and build
up as modules here. It seems to me like you're modifying code out of
the tree, and inserting after.
BTW, how do you compile your kernel ? Do you have any kind of
distro-specific way to build it ?
Maybe a simple make modules && make modules_install (from
/usr/src/linux) would be enough to achieve what you want to do...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-17  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17  8:29 help: How to compile md source code as modules? Thanks! Zhikun Wang
2006-01-17  9:49 ` Francois Barre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).