On Monday March 27, raidwang@xxxxxxxxx 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@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html