summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2019-03-14 17:29:01 -0700
committerPatrick McLean <chutzpah@gentoo.org>2019-03-14 17:33:55 -0700
commitf0250f181166b46e1c438da988611911519695a1 (patch)
treede2250d8be7c849285451ad6a2f0a34554644397 /eclass
parentdev-lang/rust-bin: move app-eselect/eselect-rust to DEPEND (diff)
downloadgentoo-f0250f181166b46e1c438da988611911519695a1.tar.gz
gentoo-f0250f181166b46e1c438da988611911519695a1.tar.bz2
gentoo-f0250f181166b46e1c438da988611911519695a1.zip
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@gentoo.org> Closes: https://bugs.gentoo.org/653286 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-mod.eclass4
1 files changed, 4 insertions, 0 deletions
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