commit:     f0250f181166b46e1c438da988611911519695a1
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Fri Mar 15 00:29:01 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 00:33:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0250f18

linux-mod.eclass: support DEBUG_INFO_{SPLIT,DWARF4} bug #653286

When CONFIG_DEBUG_INFO_SPLIT and/or CONFIG_DEBUG_INFO_DWARF4 are set,
the kernel build system tries to create a null.dwo file in the root of
the kernel source directory. This adds an addpredict to prevent this
from failing due to a sandbox failure.

Acked-by: Thomas Deutschmann <whissi <AT> gentoo.org>
Closes: https://bugs.gentoo.org/653286
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 eclass/linux-mod.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 920790b8db9..de005967a36 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -638,6 +638,8 @@ linux-mod_src_compile() {
        set_arch_to_kernel
        ABI="${KERNEL_ABI}"
 
+       [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"
+
        BUILD_TARGETS=${BUILD_TARGETS:-clean module}
        strip_modulenames;
        cd "${S}"
@@ -702,6 +704,8 @@ linux-mod_src_install() {
 
        local modulename libdir srcdir objdir i n
 
+       [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"
+
        strip_modulenames;
        for i in ${MODULE_NAMES}
        do

Reply via email to