From owner-freebsd-stable@FreeBSD.ORG Tue Mar 7 21:44:39 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDCFB16A428 for ; Tue, 7 Mar 2006 21:44:39 +0000 (GMT) (envelope-from amesbury@umn.edu) Received: from mtaout-a.tc.umn.edu (mtaout-a.tc.umn.edu [134.84.119.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7350343D45 for ; Tue, 7 Mar 2006 21:44:39 +0000 (GMT) (envelope-from amesbury@umn.edu) Received: from [160.94.247.212] (paulaner.oitsec.umn.edu [160.94.247.212]) by mtaout-a.tc.umn.edu with ESMTP for freebsd-stable@freebsd.org; Tue, 7 Mar 2006 15:44:38 -0600 (CST) X-Umn-Remote-Mta: [N] paulaner.oitsec.umn.edu [160.94.247.212] #+LO+TS+AU+HN Message-ID: <440DFEC5.3070501@umn.edu> Date: Tue, 07 Mar 2006 15:44:37 -0600 From: Alan Amesbury User-Agent: Thunderbird 1.5 (X11/20060119) MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Kernel INCLUDE_CONFIG_FILE workaround? 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: Tue, 07 Mar 2006 21:44:40 -0000 In the past "options INCLUDE_CONFIG_FILE" worked great. Unfortunately, following recent changes in how kernel configuration files are parsed (namely the changes that use the "DEFAULTS" to include the 'isa' and 'npx' devices), this feature appears to be broken. For example, here's what appears in an almost-stock SMP kernel (on a 6.0-RELEASE-px box): # echo "options INCLUDE_CONFIG_FILE" >>! /sys/i386/conf/SMP # cd /usr/src # make KERNCONF=SMP buildkernel . [build magic happens] . # strings /usr/obj/usr/src/sys/SMP/kernel | egrep "^___" ____ ____````QQQQ ___# ___# SMP -- Generic kernel configuration file for FreeBSD/i386 SMP ___# Use this for multi-processor machines ___# ___# $FreeBSD: src/sys/i386/conf/SMP,v 1.5.6.1 2005/09/18 03:37:58 scottl Exp $ ___include GENERIC ___ident SMP-GENERIC ___# To make an SMP kernel, the next line is needed ___options SMP # Symmetric MultiProcessor Kernel ___options INCLUDE_CONFIG_FILE Obviously that's not complete. There should be, at minimum, an 'npx' and 'isa' device. ;-) I'm not interested in rehashing earlier threads on the merits of dumbing down or improving (depending on which side of the issue you were on) kernel configuration through silent inclusion of devices via mechanisms like DEFAULTS. I *am* interested seeing restored to functionality a feature that used to work great, but is now broken. Does anyone know if this is due to be fixed, or if there's a workaround? (I've searched for PR's relating to "INCLUDE_CONFIG_FILE" but see none.) One possible workaround (the one that seems to make the most sense) is to delete DEFAULTS from /sys/`uname -m`/conf and use kernel configs that don't use "include {otherconfig}". However, besides the fact that DEFAULTS would come back every time /usr/src is sync'ed, I'm unsure what the long-term ramifications are. -- Alan Amesbury University of Minnesota