summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-build.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index e645492f..487fc8b0 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -40,7 +40,7 @@ BUILDDIR="${WORKDIR}/build"
KV_EXTRA="${EXTRAVERSION}"
S="${SRCDIR}"
-IUSE="build llvm rust source"
+IUSE="build debug llvm rust source"
REQUIRED_USE="symlink? ( source )
rust? ( llvm )"
@@ -49,6 +49,9 @@ BDEPEND="${BDEPEND}
sys-apps/diffutils
virtual/libelf
${PYTHON_DEPS}
+ debug? (
+ dev-util/pahole
+ )
llvm? (
sys-devel/clang:=
sys-devel/llvm:=
@@ -348,6 +351,10 @@ _linux-build_src_prepare_build() {
_linux-build_configval UEVENT_HELPER_PATH \
&& ewarn "CONFIG_UEVENT_HELPER_PATH should be empty"
+ if ! _linux-build_configval DEBUG_INFO_BTF && ! use debug ; then
+ ewarn "USE=debug is required for CONFIG_DEBUG_INFO_BTF"
+ fi
+
_linux-build_configval FHANDLE || ewarn "CONFIG_FHANDLE is needed for >=sys-fs/udev-210"
_linux-build_configval NET || ewarn "CONFIG_NET is needed for >=sys-fs/udev-210"