From owner-freebsd-current@FreeBSD.ORG Fri Feb 20 18:35:10 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 66EDE106564A for ; Fri, 20 Feb 2009 18:35:10 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id ECF3F8FC13 for ; Fri, 20 Feb 2009 18:35:09 +0000 (UTC) (envelope-from buganini@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1329187fgb.35 for ; Fri, 20 Feb 2009 10:35:09 -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=qqJQBTyg/XMGHe2vOi1yB6Cf6o4zWLs9iCSmFCErAB0=; b=gC/pkA1tGQNJCfF4cfrfjpxNMFqf/Oo1+mdT6llQeH0fmaTV5v2wRbV7QMm2wBtEX6 +58J+RsUcw2VVygbCoqhcnZ8Fw4EsATVUQ9lWHb2vkbl29VVclp2/V1TUBduR7eIJf9j JQQh3+z8kpmLqJOayzi75A432dX6beVuDGrnE= 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=CDpCSPr6kR++zXLraNYygxg2nTKVzTK85TPKk2Jf+urNvEzfoo6HW5AWNGn9xnvoof qA9gwgrH3xeKOxMAHFzS72+6NZz9hGHy0Rq4GwGojq+8wMUqh5IavrcCvx++O4yA/Onk RBXgVlke0H4Bcj0MhkRhXrRdeuPrjsuXgZ7a4= MIME-Version: 1.0 Received: by 10.103.49.12 with SMTP id b12mr1936654muk.81.1235154909038; Fri, 20 Feb 2009 10:35:09 -0800 (PST) In-Reply-To: <200902120818.34567.jhb@freebsd.org> References: <49935993.50303@stillbilde.net> <200902120818.34567.jhb@freebsd.org> Date: Sat, 21 Feb 2009 02:35:09 +0800 Message-ID: From: Buganini To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: army.of.root@googlemail.com 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: Fri, 20 Feb 2009 18:35:10 -0000 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.