提交 8ba7cdea 编写于 作者: J Jiri Olsa 提交者: Arnaldo Carvalho de Melo

perf tests: Rename TMP to TMP_O tests/make variable

Renaming TMP to TMP_O tests/make variable to make a name space for other
temp variables.
Signed-off-by: NJiri Olsa <jolsa@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1374497014-2817-3-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 0659e669
...@@ -102,7 +102,7 @@ test_make_util_map_o_O := true ...@@ -102,7 +102,7 @@ test_make_util_map_o_O := true
test_default = test -x $(PERF)/perf test_default = test -x $(PERF)/perf
test = $(if $(test_$1),$(test_$1),$(test_default)) test = $(if $(test_$1),$(test_$1),$(test_default))
test_default_O = test -x $$TMP/perf test_default_O = test -x $$TMP_O/perf
test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) test_O = $(if $(test_$1),$(test_$1),$(test_default_O))
all: all:
...@@ -127,14 +127,14 @@ $(run): ...@@ -127,14 +127,14 @@ $(run):
$(run_O): $(run_O):
$(call clean) $(call clean)
@TMP=$$(mktemp -d); \ @TMP_O=$$(mktemp -d); \
cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP"; \ cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP_O"; \
echo "- $@: $$cmd" && echo $$cmd > $@ && \ echo "- $@: $$cmd" && echo $$cmd > $@ && \
( eval $$cmd ) >> $@ 2>&1 && \ ( eval $$cmd ) >> $@ 2>&1 && \
echo " test: $(call test_O,$@)"; \ echo " test: $(call test_O,$@)"; \
$(call test_O,$@) && \ $(call test_O,$@) && \
rm -f $@ && \ rm -f $@ && \
rm -rf $$TMP rm -rf $$TMP_O
all: $(run) $(run_O) all: $(run) $(run_O)
@echo OK @echo OK
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册