perf tools: Fix build error on read only source.
authorKusanagi Kouichi <slash@ac.auone-net.jp>
Wed, 18 Aug 2010 16:32:37 +0000 (13:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Aug 2010 16:32:37 +0000 (13:32 -0300)
commitecafda60e88031bcc4271c446f984ee883d69ea8
treeadada92125b2fd0d0d26e9edd04621b61799e467
parent033a273f9836b592dd568abd0f655be469d66704
perf tools: Fix build error on read only source.

Parts of the build process were generating files outside the specified
O= directory, causing the build to fail on systems where the sources are
in a read only file system.

Fix it by using $(OUTPUT) on these locations.

Also check that $(OUTPUT) actually exists, just like the top level
kernel Makefile does. Otherwise the failure message emitted is
completely misleading.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20100817140841.0859362C03A@msa106.auone-net.jp>
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/feature-tests.mak