From owner-freebsd-arch@FreeBSD.ORG Wed Jan 25 18:54:24 2012 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 BB94D106564A; Wed, 25 Jan 2012 18:54:24 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 9EA188FC19; Wed, 25 Jan 2012 18:54:24 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 39DDBC364; Wed, 25 Jan 2012 10:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1327517664; bh=M0E/Ek7u2q3KQNQHKI5eVSUPsjSMF+VlIRKxVqxVq5s=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=iI+LXeaDmjB8fQKMOi6DhZCpKVO0/axm4Q4gVXENGE0y8F96gI+X+lyON2nMyxB50 xL6sASzSjcmrG96UiIGnSzLGimgaUjqopD6Gppmi13Gczih+aBd9EGTk/tVbN36UjP rHAq8+fx29kPy4IgO5oFqAmhbzjdjvlA0ZJBs5xc= Message-ID: <4F204FDD.60807@delphij.net> Date: Wed, 25 Jan 2012 10:54:21 -0800 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Robert Millan References: <20120122201814.GA32081@thorin> <4F1DBB94.900@delphij.net> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , Adrian Chadd , d@delphij.net, freebsd-arch@freebsd.org Subject: Re: RFC: MK_BLOBS build option X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 18:54:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Robert, On 01/23/12 14:17, Robert Millan wrote: > El 23 de gener de 2012 19:57, Xin Li ha > escrit: >> Please note that it's still possible to compile these into kernel >> if they present in the kernel compile configuration (for >> instance, device hptmv), which sounds a little bit non-intuitive >> to me. Maybe we should create three include file (BLOBS, >> BLOBS_HOST, BLOBS_UCODE perhaps) that lists these modules as >> 'nodevice ' in the same time, so they can be >> included from a kernel configuration file at the end? > > Sounds useful, but I'm not sure how would one implement this so > that it is maintainable and doesn't break. > > First when you create a file to disable ucode-blobs, you have to > enumerate the drivers again, creating redundancy (which usually > leads to bitrot). > > Then when you create a file that disables both ucode-blobs and > host-blobs, you either enumerate the drivers over again, adding a > second level of redundancy, or have to use "include" directive. > But you can't just include both ucode-blob and host-blob files > because they both include GENERIC, and then GENERIC would be > included twice, right? > > The idea sounds great (in my case it'd allow me to reduce our delta > a bit further), but in practice I'm not sure this can work. I meant this, basically we have: GENERIC -- default kernel in FreeBSD SOURCELESS_EXCLUDES -- a meta-'overlay' that contains 'include SOURCELESS_HOST_EXCLUDES' and 'include SOURCELESS_UCODE_EXCLUDES' SOURCELESS_HOST_EXCLUDES -- a 'overlay' that contains a few 'nodevice 's SOURCELESS_UCODE_EXCLUDES -- ditto This way, e.g. GENERIC-DEBIAN would be simply: include GENERIC include SOURCELESS_EXCLUDES This way would minimize the maintenance of the GENERIC-DEBIAN I think while not compromising your policy of not including these stuff in binary? Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8gT90ACgkQOfuToMruuMCFkwCfZbRP6g0v7eq14t02bWX2d+sf oWYAnRMwr6XDcZmyiYWMJmEA5gtxQSsh =ONW1 -----END PGP SIGNATURE-----