Messages in this thread | | | Date | Mon, 8 Oct 2012 13:50:06 -0700 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH v3 4/8] perf tools: configure tmp path at build time |
| |
Em Mon, Oct 08, 2012 at 09:43:29AM +0300, Irina Tirdea escreveu: > From: Irina Tirdea <irina.tirdea@intel.com> > > Temporary perf files are hardcoded to point to /tmp. Android does not have > a /tmp directory so it needs to set this path at compile time. > > Add a compile-time definition (PERF_TMP_DIR) in the Makefile that sets the path > to temp directory. By default it points to /tmp.
[acme@sandy linux]$ am /wb/1.patch Applying: perf tools: configure tmp path at build time [perf/core eafbb72] perf tools: configure tmp path at build time Author: Irina Tirdea <irina.tirdea@intel.com> 9 files changed, 39 insertions(+), 9 deletions(-) [acme@sandy linux]$ make -j8 -C tools/perf/ LIBUNWIND_DIR=/opt/libunwind O=/home/acme/git/build/perf install make: Entering directory `/home/git/linux/tools/perf' PERF_VERSION = 3.6.rc5.371.geafbb7 make: Leaving directory `/home/git/linux/tools/perf' make: Entering directory `/home/git/linux/tools/perf' make: *** No rule to make target `/home/acme/git/build/perf/util/pmu.c', needed by `/home/acme/git/build/perf/util/pmu.o'. Stop. make: *** Waiting for unfinished jobs.... make: Leaving directory `/home/git/linux/tools/perf'
Remove this patch:
[acme@sandy linux]$ git reset --hard HEAD^ HEAD is now at 7747e2f Documentation: add documentation on compiling for Android
And it works again, dropping,
- Arnaldo
[acme@sandy linux]$ make -j8 -C tools/perf/ LIBUNWIND_DIR=/opt/libunwind O=/home/acme/git/build/perf install make: Entering directory `/home/git/linux/tools/perf' PERF_VERSION = 3.6.rc5.370.g7747e2 make: Leaving directory `/home/git/linux/tools/perf' make: Entering directory `/home/git/linux/tools/perf' GEN perf-archive make[1]: Entering directory `/home/git/linux/tools/lib/traceevent' make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[1]: Leaving directory `/home/git/linux/tools/lib/traceevent' CC /home/acme/git/build/perf/perf.o CC /home/acme/git/build/perf/util/pmu.o CC /home/acme/git/build/perf/util/symbol.o CC /home/acme/git/build/perf/util/dso-test-data.o CC /home/acme/git/build/perf/util/trace-event-info.o CC /home/acme/git/build/perf/util/map.o AR /home/acme/git/build/perf/libperf.a LINK /home/acme/git/build/perf/perf install -d -m 755 '/home/acme/bin' install /home/acme/git/build/perf/perf '/home/acme/bin' install -d -m 755 '/home/acme/libexec/perf-core/scripts/perl/Perf-Trace-Util/lib/Perf/Trace' install -d -m 755 '/home/acme/libexec/perf-core/scripts/perl/bin' install /home/acme/git/build/perf/perf-archive -t '/home/acme/libexec/perf-core' install scripts/perl/Perf-Trace-Util/lib/Perf/Trace/* -t '/home/acme/libexec/perf-core/scripts/perl/Perf-Trace-Util/lib/Perf/Trace' install scripts/perl/*.pl -t '/home/acme/libexec/perf-core/scripts/perl' install scripts/perl/bin/* -t '/home/acme/libexec/perf-core/scripts/perl/bin' install -d -m 755 '/home/acme/libexec/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace' install -d -m 755 '/home/acme/libexec/perf-core/scripts/python/bin' install scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '/home/acme/libexec/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace' install scripts/python/*.py -t '/home/acme/libexec/perf-core/scripts/python' install scripts/python/bin/* -t '/home/acme/libexec/perf-core/scripts/python/bin' install -d -m 755 '/home/acme/etc/bash_completion.d' install bash_completion '/home/acme/etc/bash_completion.d/perf' make: Leaving directory `/home/git/linux/tools/perf' [acme@sandy linux]$
| |