Skip to content

bpftool: Allow explicitly skip llvm, libbfd and libcrypto dependencies#11389

Open
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1065979=>bpf-next
Open

bpftool: Allow explicitly skip llvm, libbfd and libcrypto dependencies#11389
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1065979=>bpf-next

Conversation

@kernel-patches-daemon-bpf
Copy link

Pull request for series with
subject: bpftool: Allow explicitly skip llvm, libbfd and libcrypto dependencies
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1065979

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: ca0f39a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1065979
version: 2

Introduce SKIP_LLVM, SKIP_LIBBFD, and SKIP_CRYPTO build flags that let
users build bpftool without these optional dependencies.

SKIP_LLVM=1 skips LLVM even when detected. SKIP_LIBBFD=1 prevents the
libbfd JIT disassembly fallback when LLVM is absent. Together, they
produce a bpftool with no disassembly support.

SKIP_CRYPTO=1 excludes sign.c and removes the -lcrypto link dependency.
Inline stubs in main.h return errors with a clear message if signing
functions are called at runtime.

Use BPFTOOL_WITHOUT_CRYPTO (not HAVE_LIBCRYPTO_SUPPORT) as the C
define, following the BPFTOOL_WITHOUT_SKELETONS naming convention for
bpftool-internal build config, leaving HAVE_LIBCRYPTO_SUPPORT free for
proper feature detection in the future.

All three flags are propagated through the selftests Makefile to bpftool
sub-builds.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: bb41fce
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1065979
version: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant