From owner-freebsd-hackers Sat Jun 23 12:59:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (diskworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id AFE0737B406 for ; Sat, 23 Jun 2001 12:59:01 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 2711 invoked by uid 1000); 23 Jun 2001 19:55:26 -0000 Date: Sat, 23 Jun 2001 22:55:26 +0300 From: Peter Pentchev To: Terry Lambert Cc: Valentin Nechayev , John Baldwin , hackers@FreeBSD.ORG Subject: Re: Two Junior Kernel Hacker tasks.. Message-ID: <20010623225526.A564@ringworld.oblivion.bg> Mail-Followup-To: Terry Lambert , Valentin Nechayev , John Baldwin , hackers@FreeBSD.ORG References: <20010623081844.B982@iv.nn.kiev.ua> <3B34ECB7.CF7F4047@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B34ECB7.CF7F4047@mindspring.com>; from tlambert2@mindspring.com on Sat, Jun 23, 2001 at 12:23:35PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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). Terry, this is simply not true. Even in -stable, config(8) is smart enough to try reading the opt_*.h files, and not change them if they already contain the values it is about to write there. See for yourself: [root@ringworld:v1 /usr/src]# LANG=C ls -lt /usr/obj/usr/src/sys/RINGWORLD/opt_*.h | head -2 -rw-r--r-- 1 root wheel 0 Jun 11 23:35 /usr/obj/usr/src/sys/RINGWORLD/opt_aac.h -rw-r--r-- 1 root wheel 0 Jun 11 23:35 /usr/obj/usr/src/sys/RINGWORLD/opt_wavelan.h [root@ringworld:v1 /usr/src]# As you can see, the two most recent files date back to June 11th... [root@ringworld:v1 /usr/src]# LANG=C ls -lt /usr/obj/usr/src/sys/RINGWORLD | head -3 total 6187 -rw-r--r-- 1 root wheel 424510 Jun 23 22:51 .depend -rwxr-xr-x 1 root wheel 1963795 Jun 23 14:34 kernel [root@ringworld:v1 /usr/src]# ..the kernel was rebuilt today at 14:34, and the .depend file was regenerated by a 'make -DNOCLEAN buildkernel' about two minutes ago. No opt*.h files were changed, NO recompilation was done, since everything was completely up-to-date. 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..) G'luck, Peter -- When you are not looking at it, this sentence is in Spanish. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message