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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F249D138335 for ; Sat, 23 Mar 2019 09:52:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C613DE09FA; Sat, 23 Mar 2019 09:52:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B49DE09F6 for ; Sat, 23 Mar 2019 09:52:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D156335D15 for ; Sat, 23 Mar 2019 09:52:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01FA557E for ; Sat, 23 Mar 2019 09:52:42 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1553328377.196549a830f9ab359fb52824c59d9deada675626.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 196549a830f9ab359fb52824c59d9deada675626 X-VCS-Branch: master Date: Sat, 23 Mar 2019 09:52:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6d19c6fd-925a-4e2d-9783-e5a0ab1fba4f X-Archives-Hash: 1b040fcfa8719497f0c26b792b6990b0 commit: 196549a830f9ab359fb52824c59d9deada675626 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Mar 23 03:15:51 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 23 08:06:17 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=196549a8 create_initramfs(): Show message that MICROCODE_INITRAMFS option is obsolete only to Intel users Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 51ac29c..5cafd11 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1190,7 +1190,12 @@ create_initramfs() { ## be before the other cpio archives in the stream. cfg_CONFIG_MICROCODE=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}"/.config CONFIG_MICROCODE) if isTrue "${MICROCODE_INITRAMFS}" && [ "${cfg_CONFIG_MICROCODE}" == "y" ]; then - print_info 1 "--microcode-initramfs is enabled by default for compatability but made obsolete by sys-boot/grub-2.02-r1" + if [[ "${MICROCODE}" == intel ]]; then + # Only show this information for Intel users because we have no mechanism yet + # to generate amd-*.img in /boot after sys-kernel/linux-firmware update + print_info 1 "MICROCODE_INITRAMFS option is enabled by default for compatability but made obsolete by >=sys-boot/grub-2.02-r1" + fi + cfg_CONFIG_MICROCODE_INTEL=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}"/.config CONFIG_MICROCODE_INTEL) cfg_CONFIG_MICROCODE_AMD=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}"/.config CONFIG_MICROCODE_AMD) print_info 1 "$(getIndent 1)>> Adding early-microcode support..." @@ -1222,6 +1227,7 @@ create_initramfs() { mv -f "${CPIO}.early-microcode" "${CPIO}" || gen_die "Rename failed" else print_info 1 "$(getIndent 2)early-microcode: CONFIG_MICROCODE=y is set but no microcode found" + print_info 1 "$(getIndent 2)early-microcode: You can disable MICROCODE_INITRAMFS option if you use your bootloader to load AMD/Intel ucode initrd" fi fi if isTrue "${WRAP_INITRD}"