X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.alpinelinux.org (Postfix) with ESMTP id CE7A35C0298 for ; Tue, 9 Jan 2018 08:24:57 +0000 (GMT) Received: by mail-lf0-f42.google.com with SMTP id e203so184540lfg.3 for ; Tue, 09 Jan 2018 00:24:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gx2gkJAH+Wp6V8YE6JGD4CHi3HwpZ1LiUY9P6KjxjFY=; b=i17fWR3bi9Pu9GRMmfPPu0lODE2ip4CMzeXFjZTmIwmsOumRYqo/x7jkoPq12EierW 6kK39zBBdtE/n1CpnDW8pLX2A5+cjOx1RvxCZAwG2Gu/IkEv+gg6yd6yY5RK9I7rW7On nMSxCeeSNhE4XcII8IZ/LyOMj00RVWIpms4z70xgWbk4FrgKUmelsyzeu+Re72IUdsj2 ZOu51y8QWQz/H0T2uVUodgHUqh795LT4LjxrtACVEbv1796P2U3rDhXNebFeiuWJRhHI LLzMEQQb1V8zbxHibtgWiY0Bg3C0KYpcTwvzUmDgfaKmKwnL6oG66Q0zp6FkU7r4iov5 kyww== X-Gm-Message-State: AKGB3mIqtXnUwiZ71dKSZ5eKto+WV7RM2dkAwGA3+hNOl3nMWOGI+uld 3buuPwUuaalpryzXT61YdlI1Ma38 X-Google-Smtp-Source: ACJfBovoikKMye697Negk5ZjiluDQ+9WR15HVQh37X14UymxKB6uFhjb8oSlvkntjBdCQCZ7w9Chzg== X-Received: by 10.46.84.85 with SMTP id y21mr8856139ljd.99.1515486296953; Tue, 09 Jan 2018 00:24:56 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id n34sm2465829lfi.19.2018.01.09.00.24.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jan 2018 00:24:56 -0800 (PST) Date: Tue, 9 Jan 2018 10:24:54 +0200 From: Timo Teras To: Oliver Smith Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Splitting up linux-firmware? Message-ID: <20180109102454.4fb32aee@vostro> In-Reply-To: <86963455-e88b-1014-4618-1a861257bb9f@bitmessage.ch> References: <4d19a51c-3eba-9775-0208-4d87da66effc@bitmessage.ch> <86963455-e88b-1014-4618-1a861257bb9f@bitmessage.ch> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel 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-Transfer-Encoding: 7bit On Mon, 08 Jan 2018 16:51:00 +0000 Oliver Smith wrote: > William Pitcock: > > On Sat, Jan 6, 2018 at 4:13 PM, Oliver Smith > > wrote: > >> Hey alpine-devel, > >> > >> there's the >250 MB (install size) linux-firmware package, of > >> which usually only few files are needed for one machine. For other > >> packages, Alpine already splits off -dev and even -doc to save as > >> much space as possible, so it would make sense to me if we started > >> splitting up linux-firmware as well. Our use case in Alpine Linux > >> based postmarketOS is, that we could only flash the firmware > >> subpackges to the mobile device, which we actually need (thus > >> making the total image size a lot smaller). > >> > >> The package provides files in /lib/firmware and is already > >> categorized in subfolders. So we could make one subpackage for > >> each subfolder. Examples: > >> > >> - linux-firmware-liquido (23.7 MB) > >> - linux-firmware-netrome (22.0 MB) > >> - linux-firmware-brcm (15.1 MB) > >> - linux-firmware-amdgpu (13.9 MB) > >> - linux-firmware-intel (12.8 MB) > >> - linux-firmware-ti-connectivity (8.6 MB) > >> - linux-firmware-bnx2x (8.6 MB) > >> - linux-firmware-mrvl (7.7 MB) > >> - linux-firmware-radeon (7.4 MB) > >> > >> Files directly in /lib/firmware could go into > >> "linux-firmware-other", and the "linux-firmware" package could > >> depend on all its subpackages for compatibility. > >> > >> What do you think, would it make sense to submit a PR for that? > > > > Yes, please do it. > > Done: https://github.com/alpinelinux/aports/pull/3037 Thanks for working on this! Few additional comments: Should we now also change linux-grsec and linux-vanilla to not depend on linux-firmware? Because they still pull in the meta-package pulling in everything. Should the modules be split accordingly? Or should we pull in some core firmwares only automatically? Btw. mkinitfs properly picks up the firmwares for initramfs disks based on kernel modules on initramfs. See: https://git.alpinelinux.org/cgit/mkinitfs/tree/mkinitfs.in#n127 I earlier had the idea to do similar pruning for linux-firmware package as it contains overlapping versions of firmwares, and firmwares for modules we don't even build. However, this would require us to track the firmwares requires for all of the kernel builds we do (all arches; all configs). So it was not so trivial to implement. And finally a minor nitpick: now have linux-firmware-RTL8192E; generally we don't use uppercase in package names. But thanks again for working on this. I have had on my todo list for a while and good to see you're getting it done :) Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---