]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: tolerate missing pahole when generating BTF
authorAndrii Nakryiko <andriin@fb.com>
Mon, 6 May 2019 00:10:33 +0000 (17:10 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 6 May 2019 08:18:47 +0000 (10:18 +0200)
commit7688e1aed07bc2192df73b3bcc80132a29f6ba20
treea076348ed5959e8b879281242da823681569fc21
parent68345e4ef9e45d207e4f6d8f27314b73e2a97984
kbuild: tolerate missing pahole when generating BTF

When BTF generation is enabled through CONFIG_DEBUG_INFO_BTF,
scripts/link-vmlinux.sh detects if pahole version is too old and
gracefully continues build process, skipping BTF generation build step.
But if pahole is not available, build will still fail. This patch adds
check for whether pahole exists at all and bails out gracefully, if not.

Cc: Alexei Starovoitov <ast@fb.com>
Reported-by: Yonghong Song <yhs@fb.com>
Fixes: 1d7dded2a39e ("kbuild: add ability to generate BTF type info for vmlinux")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
scripts/link-vmlinux.sh