summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kletzander <nert.pinx@gmail.com>2022-06-07 14:21:41 +0200
committerSam James <sam@gentoo.org>2022-06-07 22:10:26 +0100
commitad3b55e32736f04981e6a4f074ce846e7f4ef118 (patch)
treebd76ed186a61b01ab6098f3b804f2a004c7638cb /eclass/kernel-build.eclass
parentdev-python/discogs-client: style tweak (diff)
downloadgentoo-ad3b55e32736f04981e6a4f074ce846e7f4ef118.tar.gz
gentoo-ad3b55e32736f04981e6a4f074ce846e7f4ef118.tar.bz2
gentoo-ad3b55e32736f04981e6a4f074ce846e7f4ef118.zip
kernel-build.eclass: Allow installation of vmlinux
It is used by systemtap to reliably find kernel debuginfo. Thankfully the build path is one of the searched ones so we do not need to install it into /boot. There is a use flag for compiling the dist kernels with debuginfo, but it is not being installed afterwards. Signed-off-by: Martin Kletzander <nert.pinx@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25789 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r--eclass/kernel-build.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 0a49533e48d3..5a68f451caaa 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -195,6 +195,11 @@ kernel-build_src_install() {
local image_path=$(dist-kernel_get_image_path)
cp -p "build/${image_path}" "${ED}/usr/src/linux-${ver}/${image_path}" || die
+ # Install the unstripped uncompressed vmlinux for use with systemtap
+ # etc. Use mv rather than doins for the same reason as above --
+ # space and time.
+ use debug && mv build/vmlinux "/usr/src/linux-${ver}/"
+
# building modules fails with 'vmlinux has no symtab?' if stripped
use ppc64 && dostrip -x "/usr/src/linux-${ver}/${image_path}"