tools/perf/build: Fix non-existent build directory handling
authorIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 15:00:23 +0000 (17:00 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Oct 2013 13:29:05 +0000 (10:29 -0300)
commit3fb66335e13ef7426affe9efa48c08857202c1cb
tree79ac28d0e912e5c81c08363fb0a6093e0761e552
parent4e987712740a3634c19a6fedaf12577b26775dc5
tools/perf/build: Fix non-existent build directory handling

Arnaldo reported that non-existent build directories were not
recognized  properly. The reason is readlink failure causing 'O'
to become empty.

Solve it by passing through the 'O' variable unmodified if
readlink fails.

Reported-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20131009150023.GA10167@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile