]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Add CONFIG_PAHOLE_VERSION
authorNathan Chancellor <nathan@kernel.org>
Tue, 1 Feb 2022 20:56:21 +0000 (13:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 2 Feb 2022 10:19:33 +0000 (11:19 +0100)
commit4fd1ff2c0d77485381a9e8a7c5bd943636c9f045
treebd040d3f8b8891c73747c1cbe11f0220f7898856
parente6edd7cab2f1505b6e22b7348678416cd852e2e2
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
MAINTAINERS
init/Kconfig
scripts/pahole-version.sh [new file with mode: 0755]