From owner-freebsd-current@FreeBSD.ORG Sat Feb 21 01:27:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1663B106564A for ; Sat, 21 Feb 2009 01:27:15 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id ACE518FC0C for ; Sat, 21 Feb 2009 01:27:14 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by gxk24 with SMTP id 24so4095956gxk.19 for ; Fri, 20 Feb 2009 17:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SejXBnOGvVLaHBqqExjPKD6FWdCUL2H5QGwIEA/1DR0=; b=P0l4O6G1on/j6wFrY6e5MZfrqpbntmbml9bBQbGts4zGZDGqieZkZt0Cndu0Z5bSji msekxIT0GdDTrl1fUkn1X3kKj/bqxyTqIY5hNUdJ6D2WGHKlKb+qz/QrQjexOpCTsAzL iU1S05FuT81bqh/K2dDOBQnG/CraSNr56kJE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Xq3aXlBOhPmMCOTJlWS4zgfpftJIf3dVLrCTFVzpODJ4yef90QPJJze3qT4PCoN3Bc Md8RBDLi/dCRgIiBOLzkFhAeI2feL9+wclhB5cJfB+09xEOX34JIozfHOwBXirs6ZWou W2On8yC56+6vzi0o0LW5pqu00BXPYNOi5hoek= MIME-Version: 1.0 Received: by 10.90.84.17 with SMTP id h17mr123917agb.40.1235179634005; Fri, 20 Feb 2009 17:27:14 -0800 (PST) In-Reply-To: References: <49935993.50303@stillbilde.net> <200902120818.34567.jhb@freebsd.org> Date: Fri, 20 Feb 2009 17:27:13 -0800 Message-ID: <7d6fde3d0902201727k61554608j9b3d5cdc3e78c3dc@mail.gmail.com> From: Garrett Cooper To: Buganini Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: army.of.root@googlemail.com, freebsd-current@freebsd.org Subject: Re: modular kernconf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 21 Feb 2009 01:27:15 -0000 On Fri, Feb 20, 2009 at 10:35 AM, Buganini wrote: > I've made a patch to allow using section/nosection in kernconf. > http://140.112.64.5/buganini/config.patch > > My uname -a: > FreeBSD Zeta.twbbs.org 8.0-CURRENT FreeBSD 8.0-CURRENT #9: Fri Feb 20 > 01:18:21 CST 2009 root@Zeta.twbbs.org:/usr/obj/usr/src/sys/ZETA > i386 > > Currently this patch can deal with cpu/options/device/makeoptions, > probably enough (actually I think options/device is usually enough). > > I havent tested it fully, just modify GENERIC as follow: > ... > section USB2 > # USB core support > ... > section FireWire > # FireWire support > ... > > and the customized kernconf: > include GENERIC > ident ZETA > nosection USB2 > nosection FireWire > > then `config ZETA`, > I can see corresponding in > /usr/src/sys/i386/compile/ZETA/config.c > > The default section is "main", everythins before the first section > direction will be in section "main". > I've not really make kernel by this yet. The included file _must_ be quoted (at least on 8-CURRENT). It's a common mistake in the examples. HTH, -Garrett