[Lustre-discuss] (re)building lustre kernel from lustre src rpm

Nirmal Seenu nirmal at fnal.gov
Wed Feb 25 14:16:37 PST 2009


I do the following whenever I need to recompile a Kernel module.

Edit the following line to replace "custom" with "smp" in the file: 
/usr/src/linux-2.6.18-92.1.10.el5_lustre.1.6.6/Makefile

EXTRAVERSION = -92.1.10.el5_lustre.1.6.6smp

cd /usr/src/linux-2.6.18-92.1.10.el5_lustre.1.6.6-obj/x86_64/smp/
make -C ../../../linux-2.6.18-92.1.10.el5_lustre.1.6.6 
O=../linux-2.6.18-92.1.10.el5_lustre.1.6.6-obj/x86_64/smp oldconfig

make -j4 -C ../../../linux-2.6.18-92.1.10.el5_lustre.1.6.6 
O=../linux-2.6.18-92.1.10.el5_lustre.1.6.6-obj/x86_64/smp

make -C ../../../linux-2.6.18-92.1.10.el5_lustre.1.6.6 
O=../linux-2.6.18-92.1.10.el5_lustre.1.6.6-obj/x86_64/smp modules

Hope this helps!
Nirmal



More information about the lustre-discuss mailing list