From 616a0e2ca9b85b51e52c5aadeb85bfa50a66c0d8 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 14 Sep 2024 02:39:45 +0100 Subject: linux-build.eclass: add USE=debug --- eclass/linux-build.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'eclass') 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" -- cgit v1.2.3