PDA

View Full Version : build kernel when hack on it


wsw1wsw2
March 2nd, 2009, 08:22
Hi,

Every time I add some printf()s to the kernel source and build it. The building system(cd /usr/src && make buildkern KERNCONF=...) will build the whole kernel.(clean all the objects in /usr/obj and rebuild all the objects)

Is there a way to build only file(s) what I've edited just like Linux's Kbuild does?

Thanks!

richardpl
March 2nd, 2009, 11:43
NO_CLEAN=1 and many more options ....

crsd
March 2nd, 2009, 12:27
-DNO_KERNELCLEAN
check /usr/src/Makefile.inc1 for more defines.

octix
March 5th, 2009, 05:57
Nice, I was thinking to ask this too :)

Thanks!