2006/1/17, Zhikun Wang <[EMAIL PROTECTED]>:
> 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...
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to