Skip to content

Improvements to incremental builds

Ian Rogers bpf linux-perf-users lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools lib api: Add dependency test to install_headerstools/lib/api/Makefile+26 -120 replies
2/5tools lib perf: Add dependency test to install_headerstools/lib/perf/Makefile+22 -213 replies
3/5tools lib subcmd: Add dependency test to install_headerstools/lib/subcmd/Makefile+13 -103 replies
4/5tools lib symbol: Add dependency test to install_headerstools/lib/symbol/Makefile+14 -70 replies
5/5perf build: Fix python/perf.so library's nametools/perf/Makefile.config tools/perf/Makefile.perf+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Improvements to incremental builds

Switching to using install_headers caused incremental builds to always rebuild most targets. This was caused by the headers always being reinstalled and then getting new timestamps causing dependencies to be rebuilt. Follow the convention in libbpf where the install targets are separated and trigger when the target isn't present or is out-of-date.

Further, fix an issue in the perf build with libpython where python/perf.so was also regenerated as the target name was incorrect.

Ian Rogers (5):
tools lib api: Add dependency test to install_headers tools lib perf: Add dependency test to install_headers tools lib subcmd: Add dependency test to install_headers tools lib symbol: Add dependency test to install_headers perf build: Fix python/perf.so library's name

 tools/lib/api/Makefile     | 38 ++++++++++++++++++++++-----------
 tools/lib/perf/Makefile    | 43 +++++++++++++++++++-------------------
 tools/lib/subcmd/Makefile  | 23 +++++++++++---------
 tools/lib/symbol/Makefile  | 21 ++++++++++++-------
 tools/perf/Makefile.config |  4 +++-
 tools/perf/Makefile.perf   |  2 +-
 6 files changed, 79 insertions(+), 52 deletions(-)
Signature · 1 line
2.39.0.rc0.267.gcb52ba06e7-goog