Re: Question about build md.c in the kernel source tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux