Something I should know about 'make buildkernel ...', but I don't.
Hi All. Something's been bugging me about 'make buildkernel ...' (or pro'lly more precisely, the docs): How do I re-make the kernel without first cleaning /usr/obj/...? After applying patches, I bump $BRANCH in /sys/conf/newvers.sh, and would like the running kernel to reflect the current patchlevel, but not at the expense of a complete rebuild. Something this trivial shouldn't get me in any trouble, kernel-wise, should it? Browsing Makefile.inc1, I see these defines: -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir -DNOCLEAN do not clean at all What does 'cleandir' do that 'clean' doesn't? Remove directory trees? Anyway, is it as simple as: make buildkernel -DNOCLEAN KERNCONF=... Like I said, I should already know this. Dave -- __ __ \__ \D. J. HAWKEY JR. / __/ \/\ [EMAIL PROTECTED]/\/ http://www.visi.com/~hawkeyd/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Something I should know about 'make buildkernel ...', but I don't.
On Sep 23, at 03:45 PM, Matthew Seaman wrote: On Tue, Sep 23, 2003 at 09:32:26AM -0500, D J Hawkey Jr wrote: After applying patches, I bump $BRANCH in /sys/conf/newvers.sh, and would like the running kernel to reflect the current patchlevel, but not at the expense of a complete rebuild. Something this trivial shouldn't get me in any trouble, kernel-wise, should it? Browsing Makefile.inc1, I see these defines: -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir -DNOCLEAN do not clean at all Anyway, is it as simple as: make buildkernel -DNOCLEAN KERNCONF=... So long as you aren't changing the kernel configuration, then you can probably use the 'old' build mechanism: [SNIP] However, this is only worth doing if you're going to be recompiling the kernel a number of times, as the first time through it will compile everything. Right! Most SAs these days don't effect the kernel. I usually leave /usr/obj populated from the last build. Note that this won't put the object files etc. under /usr/obj... Yeah, that's why I didn't want to do the old thang. I don't know that it'd even work right. But you seem to agree that something this trivial shouldn't yield a broken kernel if /usr/obj/usr/src/sys/... is unchanged from the previous build, right? Dave -- __ __ \__ \D. J. HAWKEY JR. / __/ \/\ [EMAIL PROTECTED]/\/ http://www.visi.com/~hawkeyd/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[hawkeyd@visi.com: Re: Something I should know about 'make buildkernel ...', but I don't.]
Just a little bit ago, I wrote: - Forwarded message from D J Hawkey Jr [EMAIL PROTECTED] - But you seem to agree that something this trivial shouldn't yield a broken kernel if /usr/obj/usr/src/sys/... is unchanged from the previous build, right? - End forwarded message - Looking further into the make files, it would appear as though all I would really have to do is 'rm /usr/obj/usr/src/sys/.../vers.*', and do the 'make buildkernel KERNCONF=...' just as usual. This sounds vaguely familiar... From the old way... Sorry if I wasted time and bandwidth. Dave -- __ __ \__ \D. J. HAWKEY JR. / __/ \/\ [EMAIL PROTECTED]/\/ http://www.visi.com/~hawkeyd/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Something I should know about 'make buildkernel ...', but I don't.
D J Hawkey Jr [EMAIL PROTECTED] writes: Something's been bugging me about 'make buildkernel ...' (or pro'lly more precisely, the docs): How do I re-make the kernel without first cleaning /usr/obj/...? [snip] Anyway, is it as simple as: make buildkernel -DNOCLEAN KERNCONF=... That should work fine, yes. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]