From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 14:36:14 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DC03106566B; Thu, 12 Feb 2009 14:36:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5CBB68FC14; Thu, 12 Feb 2009 14:36:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id E01F346B3C; Thu, 12 Feb 2009 09:36:13 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n1CEZWYL034674; Thu, 12 Feb 2009 09:36:03 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 12 Feb 2009 08:18:33 -0500 User-Agent: KMail/1.9.7 References: <49935993.50303@stillbilde.net> In-Reply-To: <49935993.50303@stillbilde.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902120818.34567.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 12 Feb 2009 09:36:04 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.2/8983/Thu Feb 12 07:48:01 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: "Svein Skogen \(listmail account\)" , Buganini , 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: Thu, 12 Feb 2009 14:36:15 -0000 On Wednesday 11 February 2009 6:04:51 pm Svein Skogen (listmail account) wrote: > Chuck Swiger wrote: > > On Feb 11, 2009, at 12:31 PM, Buganini wrote: > > [ ... ] > >> This way I can customize my kernconf cleanly and easily. > >> Like today I want to try USB2, I just change the GENERIC to USB2, then > >> I got what I want. > >> > >> I dont like to make a replica GENERIC then modify it, > >> because sometimes options in the SCHED section changes, > >> and in this case, if I want to try USB2, things become dirty. > >> > >> Or any better ideas? > > > > You should look into the way the include directive is used for the SMP > > and PAE kernels (ie, /usr/src/sys/i386/conf/SMP). You can make specific > > changes to GENERIC to enable or disable things without having to roll an > > entire kernel config file.... > > > > Regards, > > Can the kernel file (that contains the include directive) contain an > opposite of the option and device, such as no_option or no_device? Yes, just prefix a line with 'no', e.g. 'nodevice de'. -- John Baldwin