From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A406B1581D3 for ; Tue, 14 May 2024 12:00:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18274E2A16; Tue, 14 May 2024 11:59:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C73AE2A12 for ; Tue, 14 May 2024 11:59:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F383B34067D; Tue, 14 May 2024 11:59:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.119 X-Spam-Level: X-Spam-Status: No, score=-1.119 tagged_above=-9999 required=3.5 tests=[AWL=0.000, BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.001, SPF_HELO_FAIL=0.001, SPF_NEUTRAL=0.779] autolearn=no autolearn_force=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3V0m_FKDY7WH; Tue, 14 May 2024 11:59:35 +0000 (UTC) Received: from andrew-gentoo-laptop.science.ru.nl (n036122.science.ru.nl [131.174.36.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D2FE34076D; Tue, 14 May 2024 11:59:34 +0000 (UTC) From: Andrew Ammerlaan To: gentoo-dev@lists.gentoo.org Cc: Andrew Ammerlaan Subject: [gentoo-dev] [PATCH 4/7] sys-firmware/intel-microcode: add USE=dist-kernel Date: Tue, 14 May 2024 13:59:09 +0200 Message-ID: <20240514115924.29167-4-andrewammerlaan@gentoo.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514115924.29167-1-andrewammerlaan@gentoo.org> References: <20240514115924.29167-1-andrewammerlaan@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: da879c17-8278-48ad-9009-c5a28d3f2bf2 X-Archives-Hash: cb83bfebd7db656fb338d529718e5413 The /boot/intel-uc.img is useless when we use a dist-kernel since dracut is responsible for generating the initramfs, and it (by default) includes the microcode. Instead add USE=dist-kernel and enable USE=initramfs by default. The initramfs flag toggles the early_microcode setting of dracut, and if both flags are enabled we trigger initramfs re-installation. This ensures that when we update this package, we also get the latest microcode in our dist-kernel initramfs or UKI. Signed-off-by: Andrew Ammerlaan --- .../intel-microcode-20221108_p20221102.ebuild | 43 ++++++++++++++----- .../intel-microcode-20230214_p20230212.ebuild | 41 ++++++++++++++---- .../intel-microcode-20230512_p20230512.ebuild | 41 ++++++++++++++---- .../intel-microcode-20230613_p20230520.ebuild | 40 +++++++++++++---- .../intel-microcode-20230808_p20230804.ebuild | 40 +++++++++++++---- .../intel-microcode-20230808_p20231007.ebuild | 40 +++++++++++++---- .../intel-microcode-20231114_p20231114.ebuild | 40 +++++++++++++---- .../intel-microcode-20240312_p20240312.ebuild | 38 +++++++++++++--- 8 files changed, 256 insertions(+), 67 deletions(-) diff --git a/sys-firmware/intel-microcode/intel-microcode-20221108_p20221102.ebuild b/sys-firmware/intel-microcode/intel-microcode-20221108_p20221102.ebuild index 006f4811618a..a8cf0d39ff33 100644 --- a/sys-firmware/intel-microcode/intel-microcode-20221108_p20221102.ebuild +++ b/sys-firmware/intel-microcode/intel-microcode-20221108_p20221102.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" -inherit linux-info mount-boot +inherit dist-kernel-utils linux-info mount-boot # Find updates by searching and clicking the first link (hopefully it's the one): # https://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File @@ -23,13 +23,20 @@ SRC_URI="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/arc LICENSE="intel-ucode" SLOT="0" KEYWORDS="-* amd64 x86" -IUSE="hostonly initramfs +split-ucode vanilla" -REQUIRED_USE="|| ( initramfs split-ucode )" - -BDEPEND=">=sys-apps/iucode_tool-2.3" +IUSE="dist-kernel hostonly +initramfs +split-ucode vanilla" +REQUIRED_USE="!dist-kernel? ( || ( initramfs split-ucode ) )" +BDEPEND=" + >=sys-apps/iucode_tool-2.3 + dist-kernel? ( + initramfs? ( sys-kernel/installkernel ) + ) +" # !