From owner-freebsd-current@FreeBSD.ORG Mon Oct 25 19:18:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7335516A4CE for ; Mon, 25 Oct 2004 19:18:56 +0000 (GMT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D120E43D31 for ; Mon, 25 Oct 2004 19:18:53 +0000 (GMT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (andy@localhost [127.0.0.1]) i9PJIla6054898; Mon, 25 Oct 2004 15:18:47 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)i9PJIj7M054895; Mon, 25 Oct 2004 15:18:46 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Mon, 25 Oct 2004 15:18:45 -0400 (EDT) From: Andre Guibert de Bruet To: Ryan Sommers In-Reply-To: <63488.208.4.77.15.1098729817.squirrel@208.4.77.15> Message-ID: <20041025150626.J42571@alpha.siliconlandmark.com> References: <417960C2.8040007@freebsd.org> <20041022194008.GA23778@odin.ac.hmc.edu> <41796D6D.7000108@freebsd.org> <41799315.70201@elischer.org> <41799396.9090307@freebsd.org> <20041025141556.I42571@alpha.siliconlandmark.com> <63488.208.4.77.15.1098729817.squirrel@208.4.77.15> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: Garance A Drosihn cc: current@freebsd.org Subject: Re: Breaking up kernel config files (GENERIC) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 19:18:56 -0000 On Mon, 25 Oct 2004, Ryan Sommers wrote: > Andre Guibert de Bruet said: >> What I would really like to see is a mechanism for recognizing hardware >> (arch, cpu family, scsi, ide, sound, firewire and net) that is currently >> in the system and generating a barebones configuration file with just the >> results. > > I've thought about something like this. I'm sure some of us use our own > "semi-automated" generation method of just doing something like dmesg | > awk '{print $1}' | sed 's/:.*$//' | sort -u. I generally do something like > this anytime I'm given a box and told to assimilate it to FreeBSD. I just > take the output of this and use it as a base for what modifications I have > to do to GENERIC. I'm sure someone could whip up a sed/awk script to do > something like this pretty easily. A more complicated approach would > involve actual hardware probing, generating dependency trees, compile time > optimizations, etc. The dmesg approach works well for devices but doesn't fare too well with "options" unless you get into some really creative scripting. The approach I was thinking about would make extensive use of the hw and dev sysctl MIBs. I should have something that "works", tonight... Regards, Andy | Andre Guibert de Bruet | Enterprise Software Consultant > | Silicon Landmark, LLC. | http://siliconlandmark.com/ >