From f0250f181166b46e1c438da988611911519695a1 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 14 Mar 2019 17:29:01 -0700 Subject: 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 Closes: https://bugs.gentoo.org/653286 Signed-off-by: Patrick McLean --- eclass/linux-mod.eclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eclass/linux-mod.eclass') diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 920790b8db98..de005967a36c 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 -- cgit v1.2.3-18-g5258