]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kbuild: Add CONFIG_PAHOLE_VERSION
authorNathan Chancellor <nathan@kernel.org>
Mon, 7 Feb 2022 15:15:12 +0000 (15:15 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 11 Feb 2022 10:59:44 +0000 (11:59 +0100)
commit0bcce289845df8e40f093358abf8f397f039dc21
tree2408344b9633398ef68e497cd58c26d0f6d70d0a
parent7b811c42e37c194352ec37808c5e2acc4f868790
kbuild: Add CONFIG_PAHOLE_VERSION

There are a few different places where pahole's version is turned into a
three digit form with the exact same command. Move this command into
scripts/pahole-version.sh to reduce the amount of duplication across the
tree.

Create CONFIG_PAHOLE_VERSION so the version code can be used in Kconfig
to enable and disable configuration options based on the pahole version,
which is already done in a couple of places.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220201205624.652313-3-nathan@kernel.org
(cherry picked from bpf-next commit 613fe169237785a4bb1d06397b52606b2967da53)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
MAINTAINERS
init/Kconfig
scripts/pahole-version.sh [new file with mode: 0755]