mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
2532f849b5
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>
27 lines
833 B
Plaintext
27 lines
833 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config USERMODE_DRIVER
|
|
bool
|
|
default n
|
|
|
|
menuconfig BPF_PRELOAD
|
|
bool "Preload BPF file system with kernel specific program and map iterators"
|
|
depends on BPF
|
|
# The dependency on !COMPILE_TEST prevents it from being enabled
|
|
# in allmodconfig or allyesconfig configurations
|
|
depends on !COMPILE_TEST
|
|
select USERMODE_DRIVER
|
|
help
|
|
This builds kernel module with several embedded BPF programs that are
|
|
pinned into BPF FS mount point as human readable files that are
|
|
useful in debugging and introspection of BPF programs and maps.
|
|
|
|
if BPF_PRELOAD
|
|
config BPF_PRELOAD_UMD
|
|
tristate "bpf_preload kernel module with user mode driver"
|
|
depends on CC_CAN_LINK
|
|
depends on m || CC_CAN_LINK_STATIC
|
|
default m
|
|
help
|
|
This builds bpf_preload kernel module with embedded user mode driver.
|
|
endif
|