diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-09-14 02:39:45 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-09-14 02:40:10 +0100 |
commit | 616a0e2ca9b85b51e52c5aadeb85bfa50a66c0d8 (patch) | |
tree | ea112bf845c5821b44540923c00809def4aa27bd /eclass | |
parent | sys-kernel/stable-sources: add 6.10.10, drop 6.10.9 (diff) | |
download | portage-616a0e2ca9b85b51e52c5aadeb85bfa50a66c0d8.tar.xz |
linux-build.eclass: add USE=debug
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-build.eclass | 9 |
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" |