[PATCH v2 0/4] perf build: Linter parallelism and clean/install dependency fixes
From: Ian Rogers
Date: Thu Oct 01 2026 - 01:43:01 EST
This series includes a small Python test cleanup alongside build system
improvements for linter parallelism and clean/install target
dependencies:
1. Update tools/perf/tests/shell/lib/attr.py to use argparse instead of
the deprecated optparse module, avoiding a pylint deprecated-module
warning.
2. Building on Leo Yan's recent change to run pylint checks on
standalone scripts and tests in parallel with linking perf, move the
remaining shellcheck, mypy, and pylint rules (in tools/perf/Build,
tools/perf/tests/Build, tools/perf/util/Build, and
tools/perf/pmu-events/Build) into top-level phony targets in
Makefile.perf so they no longer serialize archive creation, jevents
generation, or final linking, nor wait on $(LANG_BINDINGS).
3. Clear GTK4 via 'override GTK4 :=' in Makefile.config when the gtk4
feature check fails instead of setting the unused 'NO_GTK4 := 1'
variable left over from commit 4751bddd3f98 ("perf tools: Make GTK2
support opt-in").
4. Fix missing dependencies and target ordering for clean and install
targets across Makefile, Makefile.perf, and
Documentation/build-docdep.perl.
v2: In patch 4, exclude 'install-build-deps' from 'install_goals' in
tools/perf/Makefile so it is not ordered after 'all', and explicitly
order non-'clean' targets after 'install-build-deps' when present.
Ian Rogers (4):
perf test: Update attr.py to use argparse
perf build: Run shellcheck, mypy, and remaining pylint checks in
parallel
perf build: Clear GTK4 instead of setting unused NO_GTK4 when gtk4 is
missing
perf build: Fix clean and install target dependencies
tools/perf/Build | 8 ++-
tools/perf/Documentation/build-docdep.perl | 2 +-
tools/perf/Makefile | 16 ++++-
tools/perf/Makefile.config | 2 +-
tools/perf/Makefile.perf | 75 ++++++++++++++++++----
tools/perf/pmu-events/Build | 66 ++++++++++---------
tools/perf/tests/Build | 8 ++-
tools/perf/tests/shell/lib/attr.py | 37 ++++-------
tools/perf/util/Build | 8 ++-
9 files changed, 145 insertions(+), 77 deletions(-)
--
2.56.0.rc1.315.gc6ed9934b7-goog