summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2026-11-03 16:55:21 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-11-07 17:31:37 -0300
commita5399c1457abce20a7e7feeb0ca1f11296d8ab33 (patch)
tree5d7b03b63da3e5dd4d41f3a8f4f574186093f529 /tools/perf/scripts/python
parentfe748877fe66561b354dcfb0cbb931c985abbc04 (diff)
perf build: Override OUTPUT when building internal libraries
After commit 1572ba36fbca9583 ("perf tests: Improvements to build-test performance"), building perf with OUTPUT on the command line fails: make -C tools/perf OUTPUT=/tmp/linux/perf/ ARCH=x86_64 LC_ALL=C \ CC=gcc HOSTCC=gcc LD=ld ... make[3]: *** No rule to make target '/tmp/linux/perf/libsubcmd/libsubcmd.a'. Stop. MAKEFLAGS propagates the command-line OUTPUT assignment to recursive makes. The library builds pass their output directories through $O, but the assignment to $OUTPUT in tools/scripts/Makefile.include cannot replace a command-line argument. This affects libapi, libperf, libsubcmd and libsymbol. With "unexport MAKEFLAGS" returned and added $(info) debug in libsubcmd Makefile produces: OUTPUT = /tmp/linux/perf/libsubcmd/ Without it, on current master it prints: OUTPUT = /tmp/linux/perf/ Pass OUTPUT explicitly to each library build, including the trailing slash required when constructing file names. This follows the existing libbpf build rule and preserves MAKEFLAGS and jobserver propagation. Fixes: 1572ba36fbca9583 ("perf tests: Improvements to build-test performance") Signed-off-by: Dmitry Safonov <dima@arista.com> [ Fixed the copy'n'paste in the example, the OUTPUT path had a stray '/bld/' ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions