All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francois Barre <francois.barre@gmail.com>
To: Zhikun Wang <raidwang@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: help: How to compile md source code as modules? Thanks!
Date: Tue, 17 Jan 2006 10:49:30 +0100	[thread overview]
Message-ID: <fd8d0180601170149x71db7a5v@mail.gmail.com> (raw)
In-Reply-To: <200601171629140629275@gmail.com>

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...

      reply	other threads:[~2006-01-17  9:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd8d0180601170149x71db7a5v@mail.gmail.com \
    --to=francois.barre@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=raidwang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.