From: Nathan Chancellor Date: Tue, 1 Feb 2022 20:56:23 +0000 (-0700) Subject: lib/Kconfig.debug: Use CONFIG_PAHOLE_VERSION X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6ba3de5a8a0265469ca42f37ad7c48b611c55894;p=linux.git lib/Kconfig.debug: Use CONFIG_PAHOLE_VERSION commit 6323c81350b73a4569cf52df85f80273faa64071 upstream. Now that CONFIG_PAHOLE_VERSION exists, use it in the definition of CONFIG_PAHOLE_HAS_SPLIT_BTF and CONFIG_PAHOLE_HAS_BTF_TAG to reduce the amount of duplication across the tree. Signed-off-by: Nathan Chancellor Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20220201205624.652313-5-nathan@kernel.org [maennich: omitted patching non-existing config PAHOLE_HAS_BTF_TAG] Signed-off-by: Matthias Maennich Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index f71db0cc3bf1d..944fd2ae756b6 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -328,7 +328,7 @@ config DEBUG_INFO_BTF DWARF type info into equivalent deduplicated BTF type info. config PAHOLE_HAS_SPLIT_BTF - def_bool $(success, test `$(PAHOLE) --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/'` -ge "119") + def_bool PAHOLE_VERSION >= 119 config DEBUG_INFO_BTF_MODULES def_bool y