Re: [PATCH] perf build: Add MINIMAL=1 to build without optional features

From: Arnaldo Carvalho de Melo

Date: Wed Oct 21 2026 - 21:40:34 EST


On Wed, Oct 21, 2026 at 04:17:29PM -0700, Namhyung Kim wrote:
> On Sun, Oct 18, 2026 at 09:53:21AM -0400, Sasha Levin wrote:
> > Turning off every optional feature takes a long list of NO_* variables,
> > and the list has to follow features as they are added and renamed. The
> > one in tests/make for make_minimal has fallen behind: it leaves
> > libtraceevent, jevents, slang, AIO, LZMA, zlib, libLLVM and Rust to be
> > detected, so a make_minimal build still needs libtraceevent and python.
> >
> > Add MINIMAL=1, which turns off every optional feature, the BPF
> > skeletons, and the shellcheck, mypy and pylint runs. perf then builds,
> > natively or cross, with no library beyond the C library and without
> > python, pkg-config, clang or rustc, and the result does not depend on
> > what is installed on the build machine.
> >
> > A MINIMAL=1 build also leaves out the notices that post unwind and
> > python support are disabled, which it asked for, and the one about the
> > pkg-config search path for cross builds, as pkg-config is not needed
> > then.
> >
> > It is handled in Makefile.perf rather than Makefile.config, as
> > Makefile.config is included after the pkg-config, shellcheck, mypy and
> > pylint setup.
> >
> > Use it for make_minimal in tests/make.
> >
> > Suggested-by: Ian Rogers <irogers@xxxxxxxxxx>
> > Link: https://lore.kernel.org/r/CAP-5=fWFY-tpJz2vcBZvurwdZY5gwd8cuTemE9q1rtZ0Vi0dng@xxxxxxxxxxxxxx
> > Assisted-by: LLM
> > Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
>
> Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Not tested but:

Acked-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

- Arnaldo