diff options
author | Sam James <sam@gentoo.org> | 2022-06-07 22:10:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-07 22:10:56 +0100 |
commit | 9c84a312947ed95984b9216b2d33e71ec583fbb0 (patch) | |
tree | 40bdac43bf74a0c1735d714a28b3e2bc93db6768 /eclass | |
parent | kernel-build.eclass: Allow installation of vmlinux (diff) | |
download | gentoo-9c84a312947ed95984b9216b2d33e71ec583fbb0.tar.gz gentoo-9c84a312947ed95984b9216b2d33e71ec583fbb0.tar.bz2 gentoo-9c84a312947ed95984b9216b2d33e71ec583fbb0.zip |
kernel-build.eclass: add missing || die for debug mv
See: https://github.com/gentoo/gentoo/pull/25789
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 5a68f451caaa..24eed38eee35 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -198,7 +198,9 @@ kernel-build_src_install() { # 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}/" + if use debug; then + mv build/vmlinux "/usr/src/linux-${ver}/" || die + fi # building modules fails with 'vmlinux has no symtab?' if stripped use ppc64 && dostrip -x "/usr/src/linux-${ver}/${image_path}" |