On Wed, Jan 13, 2016 at 12:17:16PM +0000, Wang Nan wrote:
SNIP
( eval $$cmd ) >> $@ 2>&1 && \do you miss one extra /perf in here? like it should be
rm -f $@
+KBUILD_OUTPUT_DIR := ../..
+ifneq ($(O),)
+ KBUILD_OUTPUT_DIR := $(O)
+endif
+
make_kernelsrc:
@echo "- make -C <kernelsrc> $(PARALLEL_OPT) tools/perf"
$(call clean); \
(make -C ../.. $(PARALLEL_OPT) tools/perf) > $@ 2>&1 && \
- test -x perf && rm -f $@ || (cat $@ ; false)
+ test -x $(KBUILD_OUTPUT_DIR)/tools/perf && rm -f $@ || (cat $@ ; false)
test -x $(KBUILD_OUTPUT_DIR)/tools/perf/perf