mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
bpftool: Restrict feature tests during bootstrap compilation
When the perf build executes 'make -C ../bpf/bpftool bootstrap', bpftool's Makefile unconditionally evaluated feature checks for llvm, libcap, libbfd, and disassembler libraries because the bootstrap target was not exempted. Since the bootstrap bpftool strictly compiles minimal AST parsing and C code generation logic without linking LLVM or disassembler libraries, these feature check sub-makes are completely redundant. Exempt the bootstrap target from non-essential feature tests to eliminate unneeded sub-make fork overhead during Kbuild startup. Tested-by: James Clark <james.clark@linaro.org> Assisted-by: Gemini:gemini-3.1-pro-preview Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Quentin Monnet <qmo@kernel.org> Link: https://lore.kernel.org/r/20260531010750.525160-1-irogers@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
aa22d619ba
commit
231fc9bc27
|
|
@ -106,6 +106,10 @@ ifneq ($(SKIP_CRYPTO),1)
|
|||
CRYPTO_LIBS := -lcrypto
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),bootstrap)
|
||||
FEATURE_TESTS := libelf-zstd
|
||||
FEATURE_DISPLAY :=
|
||||
else
|
||||
FEATURE_TESTS := clang-bpf-co-re
|
||||
FEATURE_TESTS += llvm
|
||||
FEATURE_TESTS += libcap
|
||||
|
|
@ -122,6 +126,7 @@ FEATURE_DISPLAY += libcap
|
|||
FEATURE_DISPLAY += libbfd
|
||||
FEATURE_DISPLAY += libbfd-liberty
|
||||
FEATURE_DISPLAY += libbfd-liberty-z
|
||||
endif
|
||||
|
||||
check_feat := 1
|
||||
NON_CHECK_FEAT_TARGETS := clean uninstall doc doc-clean doc-install doc-uninstall
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user