Re: [PATCH v1] bpftool build: Restrict feature tests during bootstrap compilation
From: Quentin Monnet
Date: Mon Jun 01 2026 - 04:20:20 EST
2026-05-30 18:07 UTC-0700 ~ Ian Rogers <irogers@xxxxxxxxxx>
> 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@xxxxxxxxxx>
> Assisted-by: Gemini:gemini-3.1-pro-preview
> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Makes sense, thank you Ian!
Acked-by: Quentin Monnet <qmo@xxxxxxxxxx>