From owner-freebsd-stable@FreeBSD.ORG Mon Mar 19 16:12:36 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9212E16A400 for ; Mon, 19 Mar 2007 16:12:36 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [74.92.149.58]) by mx1.freebsd.org (Postfix) with ESMTP id 69B0013C469 for ; Mon, 19 Mar 2007 16:12:34 +0000 (UTC) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id AC9B2B81E for ; Mon, 19 Mar 2007 12:12:33 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <45FE8EF3.7030400@delphij.net> References: <45FE8EF3.7030400@delphij.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5FB13991-7374-4FA9-BE77-57B1613744CF@khera.org> Content-Transfer-Encoding: 7bit From: Vivek Khera Date: Mon, 19 Mar 2007 12:12:32 -0400 To: FreeBSD Stable List X-Mailer: Apple Mail (2.752.2) Cc: Subject: Re: Reverting to 6.2-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2007 16:12:36 -0000 On Mar 19, 2007, at 9:24 AM, LI Xin wrote: > I always use options INCLUDE_CONFIG_FILE for my kernel :-) Maybe we > should add it to DEFAULTS some day... ew yucky.... What I do is keep my kernel configs in subversion. I have a "common" component which applies to all systems under my control, and an architecture specific component that applies separately to i386 vs. amd64 systems. In each, I take advantage of the fact that the config file can have 'makeoptions' which are basically dumped right into the generated Makefile. So in my common file, KCICOMMON, I have this at the top: makeoptions KCICOMMONREV="$Revision: 366 $" makeoptions KCICOMMON="${KCICOMMONREV:C/[^0-9]//g}" and in the i386 specific file, KCI32, I have this: ident "KCI32@${KCI}+${KCICOMMON}" makeoptions KCIREV="$Revision: 358 $" makeoptions KCI="${KCIREV:C/[^0-9]//g}" Since some of my systems are SMP enabled, I have a minor variant called "KCI32SMP" also, which is entirely this: include KCI32 ident "KCI32SMP@${KCI}+${KCICOMMON}" options SMP now, my kernel identifies itself with uname: % uname -i KCI32SMP@358+366 So I know this is a 32-bit system running SMP with the version 358 i386 config and the version 366 common config. and a trivial lookup in subversion tells me exactly what's in it.