]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Disallow BPF_PRELOAD in allmodconfig builds
authorAlexei Starovoitov <ast@kernel.org>
Tue, 25 Aug 2020 22:23:46 +0000 (15:23 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Aug 2020 22:23:46 +0000 (15:23 -0700)
commit7663a3a50257058c09bac8be14748ed408975152
treec92e91cc28bde6f4cb5999c8b7480c861cafdd0e
parentd2221851e9e7699a7d30fa5b29b1f32b47792781
bpf: Disallow BPF_PRELOAD in allmodconfig builds

The CC_CAN_LINK checks that the host compiler can link, but bpf_preload
relies on libbpf which in turn needs libelf to be present during linking.
allmodconfig runs in odd setups with cross compilers and missing host
libraries like libelf. Instead of extending kconfig with every possible
library that bpf_preload might need disallow building BPF_PRELOAD in
such build-only configurations.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/preload/Kconfig