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 EA10715815E for ; Sun, 11 Feb 2024 12:11:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAFBFE2A1D; Sun, 11 Feb 2024 12:11:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5DADE2A1D for ; Sun, 11 Feb 2024 12:11:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 06F6234312C for ; Sun, 11 Feb 2024 12:11:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 997EA1437 for ; Sun, 11 Feb 2024 12:11:33 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1707653475.17a6c694ec9363ab44814126e1dc31a227b5c138.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/kernel-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 17a6c694ec9363ab44814126e1dc31a227b5c138 X-VCS-Branch: master Date: Sun, 11 Feb 2024 12:11:33 +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: c5a3e02e-af4c-4d26-a416-319b173000c3 X-Archives-Hash: 37aeeec766ca72071af2557554e45a86 commit: 17a6c694ec9363ab44814126e1dc31a227b5c138 Author: Andrew Ammerlaan gentoo org> AuthorDate: Wed Feb 7 12:28:02 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Feb 11 12:11:15 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17a6c694 kernel-build.eclass: install vmlinu{x,z} symlink Some other distributions install (a symlink to) the kernel image here. Tools such as 'kernel-install list', 'kernel-install inspect', dracut and ukify look for the kernel image here. So lets install this symlink to make manual invocation of dracut and ukify a bit easier. As well as make it possible to use other kernel-install features such as list, inspect and add-all. Signed-off-by: Andrew Ammerlaan gentoo.org> eclass/kernel-build.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 14a6002ea5b5..7922638be6e1 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -385,6 +385,11 @@ kernel-build_src_install() { # fix source tree and build dir symlinks dosym "../../../${kernel_dir}" "/lib/modules/${module_ver}/build" dosym "../../../${kernel_dir}" "/lib/modules/${module_ver}/source" + if [[ "${image_path}" == *vmlinux* ]]; then + dosym "../../../${kernel_dir}/${image_path}" "/lib/modules/${module_ver}/vmlinux" + else + dosym "../../../${kernel_dir}/${image_path}" "/lib/modules/${module_ver}/vmlinuz" + fi if [[ ${KERNEL_IUSE_MODULES_SIGN} ]]; then secureboot_sign_efi_file "${image}"