tools/liblockdep: Use realpath for srctree and objtree
authorWang Nan <wangnan0@huawei.com>
Sat, 8 Feb 2014 01:43:40 +0000 (09:43 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 27 Feb 2014 02:22:01 +0000 (21:22 -0500)
commit7b8853419d3344b06cff64b4dc926805698eeba5
treea337763a602759682983238265515d52aeb74c91
parent9e3513b7af9ef3b6225f539181c2d94328bd18f7
tools/liblockdep: Use realpath for srctree and objtree

If BUILD_SRC or CURDIR contains tailing '/', the file names passed to gcc will
contain '//'. It will be contained .o's in debuginfo, then confuse debugedit:

https://bugzilla.redhat.com/show_bug.cgi?id=304121

This patch uses realpath command to makesure potential tailing '/'s are removed.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Geng Hui <hui.geng@huawei.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
tools/lib/lockdep/Makefile