Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1309363
| From | pi3orama <pi3orama@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test |
| Date | 2016-01-14 16:10 +0100 |
| Message-ID | <qQRHc-nE-5@gated-at.bofh.it> (permalink) |
| References | <qQPYJ-7yP-3@gated-at.bofh.it> <qQPYK-7yP-15@gated-at.bofh.it> <qQRxx-8vf-33@gated-at.bofh.it> <qQRxx-8vf-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
发自我的 iPhone > 在 2016年1月14日,下午10:58,Arnaldo Carvalho de Melo <acme@kernel.org> 写道: > > Em Thu, Jan 14, 2016 at 11:50:21AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Thu, Jan 14, 2016 at 01:13:57PM +0000, Wang Nan escreveu: >>> If an 'O' is passed to 'make build-test', many 'test -x' and 'test -f' >>> will fail because perf resides in a different directory. Fix this by >>> computing PERF_OUT according to 'O' and test correct output files. >>> For make_kernelsrc and make_kernelsrc_tools, set KBUILD_OUTPUT_DIR >>> instead because the path is different from others ($(O)/perf vs >>> $(O)/tools/perf). >> >> So, before this patch: > > Also, while trying to get this to work, I found these places lacking the > O= prefixing, right? > > > diff --git a/tools/perf/tests/make b/tools/perf/tests/make > index e74c86b00c31..67842900482e 100644 > --- a/tools/perf/tests/make > +++ b/tools/perf/tests/make > @@ -59,7 +59,7 @@ has = $(shell which $1 2>/dev/null) > > # standard single make variable specified > make_clean_all := clean all > -make_python_perf_so := python/perf.so > +make_python_perf_so := $(PERF_O)/python/perf.so > make_debug := DEBUG=1 > make_no_libperl := NO_LIBPERL=1 > make_no_libpython := NO_LIBPYTHON=1 > @@ -82,9 +82,9 @@ make_tags := tags > make_cscope := cscope > make_help := help > make_doc := doc > -make_perf_o := perf.o > -make_util_map_o := util/map.o > -make_util_pmu_bison_o := util/pmu-bison.o > +make_perf_o := $(PERF_O)/perf.o > +make_util_map_o := $(PERF_O)/util/map.o > +make_util_pmu_bison_o := $(PERF_O)/util/pmu-bison.o > make_install := install > make_install_bin := install-bin > make_install_doc := install-doc I have throughly tested this patch set, both with and without O, many times, and see no error related to this part of code, so I think we don't really need this prefix. But maybe there's error I never noticed. Let me check it tomorrow. Thank you.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 3/9] perf build: Test correct path of perf in build-test Wang Nan <wangnan0@huawei.com> - 2016-01-14 14:20 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-14 16:00 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-14 16:00 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test pi3orama <pi3orama@163.com> - 2016-01-14 16:10 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-14 16:50 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-14 17:10 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-14 18:40 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-15 04:00 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-15 04:40 +0100
Re: [PATCH v2 3/9] perf build: Test correct path of perf in build-test "Wangnan (F)" <wangnan0@huawei.com> - 2016-01-15 03:30 +0100
csiph-web