From owner-freebsd-hackers Wed Dec 10 23:49:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA14144 for hackers-outgoing; Wed, 10 Dec 1997 23:49:53 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from d198-232.uoregon.edu (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA14136 for ; Wed, 10 Dec 1997 23:49:47 -0800 (PST) (envelope-from mini@d198-232.uoregon.edu) Received: (from mini@localhost) by d198-232.uoregon.edu (8.8.5/8.8.5) id XAA17102; Wed, 10 Dec 1997 23:49:10 -0800 (PST) Message-ID: <19971210234909.29178@micron.mini.net> Date: Wed, 10 Dec 1997 23:49:09 -0800 From: Jonathan Mini To: "Jordan K. Hubbard" Cc: Jonathan Mini , The Classiest Man Alive , freebsd-hackers@FreeBSD.ORG Subject: Re: Why so many steps to build new kernel? Reply-To: Jonathan Mini References: <19971210160015.21473@micron.mini.net> <24904.881819698@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e In-Reply-To: <24904.881819698@time.cdrom.com>; from Jordan K. Hubbard on Wed, Dec 10, 1997 at 09:54:58PM -0800 X-files: The Truth is Out There Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jordan K. Hubbard stands accused of saying: > > What I have in mind is rather simple, but it requires the following : > > > > 1) a file, which is MAINTAINED, which contains all of the possible > > options, their classes, and a simple comment for each one. > > Woog. It's that "maintained" bit which is the hard part, and frankly > I'm more than somewhat skeptical of this for the long-term unless it's > taken to the next level of functionality which will properly encourage > its upkeep. Yes. That is the reason I capitalized it. > What I'm thinking of here, namely, is the total replacement of config > by a new utility which tries for a different configuration file > format, one "rich" enough to support a GUI interface. This has always > been a shortcoming of the current one, and the need to keep GENERIC > and LINT files around just to "document" it is rather significant > proof of its shortcomings. If you're really this ambitious then tou > won't get anywhere by simply trying to paper over config, you need to > replace it. Ok. I was shooting for a 'minumum work' approach, and then once I got people used to the GUI I was going to be radical and start talking about replacing it with the new config junk. But, you're one step ahead of me. We need to do this in three stages then : 1) decide what types of "configurability" we want to allow the config utility to handle. compile-time options, compiled-in device, managing LKMs (for now, I hope to see the kld code replace it) and other types of kernel behavior would be a good idea too. Plausably, we could extend this to cover any sort of system configuration, but whether we want to do that is what we'd talk about in this stage. 2) Once we have what we want to classify in our database defined, we should decide on a database method to store it. Most likely, due to extendability, a relational database will be the product of this stage. The exact format would be the issue under debate here. 3) Then I get to actually write the database-handling code, and the GUI to deal with it. If you don't mind, I indent to not use libdialog. :) 4) (I know I said three stages, but..) Then we get to maintain the configuration database. This should be "easier" than maintaining LINT, since you basically won't be able to compile a device in without "documenting" it in the database. -- Jonathan Mini Ingenious Productions Software Development P.O. Box 5693, Eugene, Or. 97405 "A child of five could understand this! Quick -- Fetch me a child of five."