X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 94696DC02D1 for ; Sun, 3 Apr 2016 20:55:10 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 5FE9CDC0218 for ; Sun, 3 Apr 2016 20:55:09 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id tt10so129340810pab.3 for ; Sun, 03 Apr 2016 13:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PeLYQaJFSljlfqt3UoP11Xc7SC80tahJSoZl2tnqV7s=; b=LiN7TFYzf/n1QFFU/NtmRV5ZKw7s7GDaYEZa1I59ticT51yw55UXAMB4dwMg1+6lH2 jxqD2C+nPFiBeGMw/xHHLcflgN/3ZCltegTGzYSQGj1jBOmsSZA/uhWsXHepWcj1v8rS LsaJ+Tr5Jsa8ezQ/MyS771TK5BY7uGbALaFzKRfYuGNrGlSmCI+m2tkPyrMy/wrcgDp+ F9QasmoXwR1dqX5xVEWIWi9h+oEvt780WQ4HNGMplrHycfgAZQ0JGXdgyJJN7REl7gG5 9feJ0OSXse7W1n6l8qMpNTNQr7ZrEwoXCBoSLA5bhOmo9VvlpZJ8xUhKwpr2090BAv+E yLJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PeLYQaJFSljlfqt3UoP11Xc7SC80tahJSoZl2tnqV7s=; b=G1eA3w/6UFHOinu/jDCnKbl+zXp7vx2UW71wqlaYHYluXY59oFzv4CNkchLFx8g6Uw I6+8JD/QPUL1EsgVx51MiP/H0KWx/IxgahOk3MkSUKet/xLBDwrdG2L7HCcXjFyIiDuC UeH+BdbrANWh4GkrDo9J1E7a9soBRVVfRUCdt6Z+G7JScD0RQ9vGTKkr0XtzctU/kMki i9TAO7VFt2antfBAWeCNOPhJq2ubLJzNOuWqVEgsjSDhEu6DsQhFHJFssiD5tY4ZqT/+ Rctm8m02L0a0CY0AczweVhedfnyYIaqjO8uHeVhOjH3wXo4PuCKOcJo7mK4jfS3VkU2w Lquw== X-Gm-Message-State: AD7BkJJyaYtFoVJA/EP3DoHOgEctoeycYW38YWb5UuXgFO0g8o4R3HDeVMgXA2ENe0fzAQ== X-Received: by 10.66.90.226 with SMTP id bz2mr48378253pab.31.1459716908063; Sun, 03 Apr 2016 13:55:08 -0700 (PDT) Received: from newbook ([50.0.225.136]) by smtp.gmail.com with ESMTPSA id o69sm34228522pfi.14.2016.04.03.13.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Apr 2016 13:55:07 -0700 (PDT) Date: Sun, 3 Apr 2016 13:55:02 -0700 From: Isaac Dunham To: Timo Teras Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [RFC] Splitting linux-firmware Message-ID: <20160403205501.GA13799@newbook> References: <20160403052116.GA22996@newbook> <20160403162518.213e9151@vostro> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160403162518.213e9151@vostro> User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP On Sun, Apr 03, 2016 at 04:25:18PM +0300, Timo Teras wrote: > On Sat, 2 Apr 2016 22:21:18 -0700 > Isaac Dunham wrote: > > > I recently checked the size of installed packages on my system, and > > found that linux-firmware was the largest (~120 megabytes). > > I need the Realtek firmware, and perhaps could use the i915 firmware. > > So I figured it would be a significant cutdown in installed size, > > as well as a major reduction in downloads, if it were possible to just > > select firmware from a couple of manufacturers. > > > > While I was in the process of doing this, I noticed a few smaller > > issues: -the non-firmware files that the APKBUILD tries to delete are > > actually located in /lib/firmware, not /usr/lib/firmware > > -the source for carl9170 firmware is included in the final package > > > > Here's a tentative patch that fixes those issues and tries to split > > things up. > > > > Does this look like a good idea? > > Should any further splitting be done? > > For example: > > -splitting iwlwifi firmware off because it's the bulk of the intel > > firmware, but not the bulk of the users; > > -splitting qlogic, 3com, and chelsio firmware from -misc > > Before doing this, a first step would be to delete the unneeded > firmwares. > > We already do this for modloop. But to do it for the package, would > need a list of files needed to be maintained. I believe about half of > the package can be just deleted based on our module configuration and > specific kernel versions. > > See http://git.alpinelinux.org/cgit/alpine-iso/tree/Makefile#n92 for > how to get info on what firmware is required by the kernel modules. Before doing that, there's a question of whether we're going to support 'noarch' "properly" (ie, with a single build/package upload for all arches). If so, it would be necessary to compile a single list of files for all arches. Checking it against linux-firmware I get results along the lines of - one third of the firmware is 'missing' (ie, not in linux-firmware) A large chunk of this is in alsa-firmware and other packages. - the remainder runs just over 40 megabytes - there's lots of firmware that seems to be 'unneeded' even though the relevant drivers are enabled (eg, only 2 files from brcm/ of 24 are needed), which makes me wonder if something's wrong with modinfo... > If the package is still too large after this, doing splitting might be > an idea. *If* the results are correct, it wouldn't be *needed*. Thanks, Isaac Dunham --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---