diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-02-07 13:28:02 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-02-11 13:11:15 +0100 |
commit | 17a6c694ec9363ab44814126e1dc31a227b5c138 (patch) | |
tree | ff37b39158d7d3c3e7f446782fb361a49eebd73c /eclass | |
parent | dev-tex/minted: Keyword 2.6 arm64, #924290 (diff) | |
download | gentoo-17a6c694ec9363ab44814126e1dc31a227b5c138.tar.gz gentoo-17a6c694ec9363ab44814126e1dc31a227b5c138.tar.bz2 gentoo-17a6c694ec9363ab44814126e1dc31a227b5c138.zip |
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 <andrewammerlaan@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
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}" |