if I;ve chhanged one line of one file, how can I recompile without going back to the top and doing a 'make buildkernel' so I just recompile that one file ? It's getting a bit tedious to wait 40 minutes when I've only chnaged one line - is there a better way ? cheers, -pete.
Pete French wrote:> if I;ve chhanged one line of one file, how can I recompile without > going back to the top and doing a 'make buildkernel' so I just recompile > that one file ? It's getting a bit tedious to wait 40 minutes when I've > only chnaged one line - is there a better way ?1. Go to your kernel configuration directory (e.g. /sys/i386/conf) 2. run "config CONFNAME" (e.g. config GENERIC) 3. chdir to the printed directory and follow the instructions about make cleandepend;make depend;make; make install (if you need to re-make the kernel with changes to existing files, you can skip the make clean; make depend steps). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080121/71726be1/signature.pgp
> 1. Go to your kernel configuration directory (e.g. /sys/i386/conf) > 2. run "config CONFNAME" (e.g. config GENERIC) > 3. chdir to the printed directory and follow the instructions about make > cleandepend;make depend;make; make install > > (if you need to re-make the kernel with changes to existing files, you > can skip the make clean; make depend steps).Ah, yes, of copurrse. Thanks. -pete.
On Mon, Jan 21, 2008 at 12:09:46PM +0000, Pete French wrote:> if I;ve chhanged one line of one file, how can I recompile without > going back to the top and doing a 'make buildkernel' so I just recompile > that one file ? It's getting a bit tedious to wait 40 minutes when I've > only chnaged one line - is there a better way ? >Use 'make -DNO_CLEAN buildkernel' instead of 'make buildkernel'. This way the build will not remove all the old object files first, but will just recompile those files that need to be recompiled. (Works for buildworld as well.) Beware that there are a few, fairly rare, situations where it is actually needed to clean the tree first before building. If you run into problems it is a good idea to skip the '-DNO_CLEAN' flag. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se