From owner-freebsd-arch@FreeBSD.ORG Wed Sep 24 14:03:43 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 7CAC316A4BF for ; Wed, 24 Sep 2003 14:03:43 -0700 (PDT) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id C08B443FEA for ; Wed, 24 Sep 2003 14:03:42 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 7120 invoked from network); 24 Sep 2003 21:03:42 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 24 Sep 2003 21:03:42 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h8OL3c6Y024435 for ; Wed, 24 Sep 2003 17:03:39 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 24 Sep 2003 17:03:42 -0400 (EDT) From: John Baldwin To: arch@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: 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: Wed, 24 Sep 2003 21:03:43 -0000 Now that we have 'nooptions' and 'nodevice' in kernel config files as well as the ability to include 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. 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. This would also make it easier to turn things on by default w/o requiring that a kernel option get renamed to NO_FOO. So, for example, with DEVFS, turning it on by default could have been done by just adding 'options DEVFS' to sys/conf/DEFAULT rather than having to rename it to 'NO_DEVFS'. Another thing this might help with is allowing for smaller kernels w/o bloating normal config files. For example, in 5.x we turned USER_LDT on by default by just removing the option altogether. We could have simply moved USER_LDT to sys/i386/conf/DEFAULT and folks that wanted to build a smaller kernel and didn't need USER_LDT could use 'nooptions USER_LDT'. Just an idea. 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. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/