From owner-freebsd-arch@FreeBSD.ORG Sun Jun 12 19:40:42 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AC20106566C for ; Sun, 12 Jun 2011 19:40:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 45CE88FC08 for ; Sun, 12 Jun 2011 19:40:42 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5CJd75O066059 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sun, 12 Jun 2011 13:39:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sun, 12 Jun 2011 13:39:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <118F0BE0-2F1A-4106-8050-F6FE1321E106@bsdimp.com> References: To: "Bjoern A. Zeeb" X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Sun, 12 Jun 2011 13:39:08 -0600 (MDT) Cc: freebsd-arch@freebsd.org Subject: Re: [RFC] shipping kernels with default modules? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 19:40:42 -0000 On Jun 12, 2011, at 12:50 PM, Bjoern A. Zeeb wrote: >=20 > On Jun 12, 2011, at 5:51 PM, Warner Losh wrote: >=20 >>=20 >> On Jun 12, 2011, at 12:36 AM, Adrian Chadd wrote: >>=20 >>> On 11 June 2011 17:21, Adrian Chadd wrote: >>>=20 >>>> Is there any reason we aren't doing this at the moment? Eg by = having a >>>> default loader modules list populated from the kernel config file? >>>=20 >>> The immediate problem - how does one get the config parameters from >>> the kernel configuration file to appear in the per-module build = setup? >>=20 >> For options, we've been doing that for years. Config generates the = opt_foo.h files, and they are picked up by the modules. >>=20 >>> Or, in a more general sense, how do you do per-module configuration? >>=20 >> Generally, the modules follow the global settings, since we've never = tested building some network drivers with INET and some without, for = example. >=20 > What do you mean? I have been doing that for 2 or is it 3 years; you = can even see which ones depend on it in sys/conf/makeLINT.mk these days = ;) Sorry, I mean we do generally build ALL of them without INET or ALL of = them with INET. While some people sometimes do things like load em with = INET and say cxgb without INET in the same system, in general this = hasn't been widely tested. Warner=