Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2001 12:16:49 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        Terry Lambert <tlambert2@mindspring.com>, Valentin Nechayev <netch@iv.nn.kiev.ua>, hackers@FreeBSD.org
Subject:   Re: Two Junior Kernel Hacker tasks..
Message-ID:  <XFMail.010625121649.jhb@FreeBSD.org>
In-Reply-To: <20010624132329.A507@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help

On 24-Jun-01 Peter Pentchev wrote:
> On Sat, Jun 23, 2001 at 10:44:51PM -0700, John Baldwin wrote:
>> 
>> On 23-Jun-01 Peter Pentchev wrote:
>> > On Sat, Jun 23, 2001 at 12:23:35PM -0700, Terry Lambert wrote:
>> >> > make buildkernel is rather easy way to work it around: in
>> >> > any case object tree is machine-dependent, and one yet
>> >> > another directory does not destroy anything. ;|
>> >> 
>> >> The "make buildkernel" approach sucks for incremental
>> >> builds, since you are unable to avoid the "config" run
>> >> each time, and a lot of unnecessary stuff gets compiled
>> >> again because of opt_*.h files whose contents have not
>> >> changed (even if you defeat the clean of the compile
>> >> directory).
>> > 
>> > About the release process, you are right, it is a bit harder
>> > to restart without some tweaks, but the buildkernel target
>> > is about as restartable as it can be.  (I really don't think
>> > anyone would ever advocate skipping the config(8) or
>> > the 'make depend' stage..)
>> 
>> Actually, make depend takes a relatively long time, and when
>> I'm hacking on a kernel, I don't want to wait 15 minutes to
>> build a kernel after changing one file.  I compile kernels
>> w/o config or make depend a lot.
> 
> OK, so if you're really really sure your changes do not affect
> the dependency graph, use -DNOKERNELDEPEND :)

make ; make install is a _lot_ shorter to type than:

make -DNOKERNELDEPEND -DDOWHATIWANTDANGIT -DDONTDOTHIS
-DDONTDOTHATOTHERTHINGEITHER buildkernel ; make -DDONTINSTALLFOO
-DDONTTRYTODOTHIS installkernel

And I won't even mention 'make reinstall'...

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010625121649.jhb>