From owner-freebsd-arch@FreeBSD.ORG Fri Sep 26 09:22:01 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC44116A4B3; Fri, 26 Sep 2003 09:22:01 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F61C4401E; Fri, 26 Sep 2003 09:22:01 -0700 (PDT) (envelope-from adam@migus.org) Received: from garple.migus.org ([68.55.83.94]) by comcast.net (rwcrmhc12) with ESMTP id <2003092616220001400qkg7ke>; Fri, 26 Sep 2003 16:22:00 +0000 Received: by garple.migus.org (Postfix, from userid 80) id 45DAA8FC30; Fri, 26 Sep 2003 12:22:00 -0400 (EDT) Received: from 204.254.155.35 (SquirrelMail authenticated user adam) by mail.migus.org with HTTP; Fri, 26 Sep 2003 12:22:00 -0400 (EDT) Message-ID: <49939.204.254.155.35.1064593320.squirrel@mail.migus.org> In-Reply-To: <20030925092319.H5418@gamplex.bde.org> References: <20030925092319.H5418@gamplex.bde.org> Date: Fri, 26 Sep 2003 12:22:00 -0400 (EDT) From: "Adam C. Migus" To: "Bruce Evans" User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: arch@freebsd.org Subject: Re: sys/conf/DEFAULT[S] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 16:22:02 -0000 Bruce Evans said: > On Wed, 24 Sep 2003, John Baldwin wrote: > >> Now that we have 'nooptions' and 'nodevice' in kernel config files >> as well >> as the abconsistentnclude other config files, I'd like to tweak >> config(8) >> so that it automatically includes sys/conf/DEFAULT (or DEFAULTS) >> and >> sys/${MACHINE}/conf/DEFAULT (S) when generating a kernel config >> and then >> get rid of all the 'NO_*' options. > > OK with me. > > Do we actually gave the abiltity to include other config files? It > was > quite broken last time I tried to use it for anything more > complicated > than the example in "SMP". > > When breaking POLA by renaming options, please use a consistent > namespace > for the new names... > I use the include feature quite a bit, nested in some cases. It works great for me for creating combinations of debug, diskless, mac and smp kernels for example. >> For example, NO_F00F_HACK could be renamed to a positive FOOF_HACK >> option. >> sys/i386/conf/DEFAULT would contain 'options F00F_HACK' and if >> people >> wanted to disable it they could use 'nooptions F00F_HACK' in their >> custom >> config. > > In a consistent namespace, it would be CPU_F00F_HACK or maybe > CPU_PENTIUM1_F00F_HACK. > >> Another nice thing, btw, might be to add a sys/conf/GENERIC that >> the >> MD GENERIC's could include that would include common things like >> 'ident', 'FFS', 'INET', etc. > > Too much of this would make it harder to see where things are, > especially > if there are things toggled back and forth. Something like "make > LINT" > would be needed to see the final set of directives. Similarly for > Makefiles generated by config. It has become hard to temporarily > change > options by editing the Makefile, since many things are set in .mk > files > in the source tree. > > Bruce Could config(8) get an additional option to print the final set of directives after it does it's magic? It could even be extended to print how/where it got them, if desired, perhaps... -- Adam - (http://people.migus.org/~amigus/) Migus Dot Org - (http://www.migus.org/)