* Question about build md.c in the kernel source tree
@ 2006-03-27 8:19 Zhikun Wang
2006-03-27 9:48 ` Neil Brown
2006-03-27 18:40 ` Ming Zhang
0 siblings, 2 replies; 3+ messages in thread
From: Zhikun Wang @ 2006-03-27 8:19 UTC (permalink / raw)
To: linux-raid
Hi:
I am reading linux software RAID(MD) source code. I want to add some "printk" information in the md.c file. But md.c has been build in the kernel. How can i only build the md.c file without building the whole kernel source tree?
Thanks a lot!
zkwang
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about build md.c in the kernel source tree
2006-03-27 8:19 Question about build md.c in the kernel source tree Zhikun Wang
@ 2006-03-27 9:48 ` Neil Brown
2006-03-27 18:40 ` Ming Zhang
1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2006-03-27 9:48 UTC (permalink / raw)
To: Zhikun Wang; +Cc: linux-raid
On Monday March 27, raidwang@gmail.com wrote:
> Hi:
> I am reading linux software RAID(MD) source code. I want to add some "printk" information in the md.c file. But md.c has been build in the kernel. How can i only build the md.c file without building the whole kernel source tree?
> Thanks a lot!
Edit .config
remove the line
CONFIG_BLK_DEV_MD=y
run 'make oldconfig'
When it asks you about the md driver and 'm' for module rather than
'y' for yes.
Then md will be built as a module, producing md_mod.ko and raid*.ko.
These can then be loaded into the running kernel with 'insmod' and
removed with 'rmmod'.
NeilBrown
>
> zkwang
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about build md.c in the kernel source tree
2006-03-27 8:19 Question about build md.c in the kernel source tree Zhikun Wang
2006-03-27 9:48 ` Neil Brown
@ 2006-03-27 18:40 ` Ming Zhang
1 sibling, 0 replies; 3+ messages in thread
From: Ming Zhang @ 2006-03-27 18:40 UTC (permalink / raw)
To: Zhikun Wang; +Cc: linux-raid
* pls add a text wrap at ~80 in u email client.
* once u build whole kernel once, and u only make change in md.c, u can
do kernel redo and make process will automatically only rebuild md.c.
then u install the new kernel and check u changes.
ming
On Mon, 2006-03-27 at 16:19 +0800, Zhikun Wang wrote:
> Hi:
> I am reading linux software RAID(MD) source code. I want to add some "printk" information in the md.c file. But md.c has been build in the kernel. How can i only build the md.c file without building the whole kernel source tree?
> Thanks a lot!
>
> zkwang
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-27 18:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-27 8:19 Question about build md.c in the kernel source tree Zhikun Wang
2006-03-27 9:48 ` Neil Brown
2006-03-27 18:40 ` Ming Zhang
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).