From 9b757dccdca1ca4a14fdc8351600652d798dc715 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Fri, 28 Sep 2012 20:14:38 +0800 Subject: lint: Get absolute path in compare_output The classes in $(top)/Makefile uses $(abspath) to get the path. The $(abspath) can not resolve symlink. If the coreboot is located in a symlink directory, the run_printall produces the absolute path while the $PWD just produces the path with symlink. Use `pwd -P` to get the abs path. Change-Id: Icf6b364d030c14a9c78991767b17dafc701baf3c Signed-off-by: Zheng Bao Signed-off-by: Zheng Bao Reviewed-on: http://review.coreboot.org/1551 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/lint/lint-stable-002-build-dir-handling | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/lint') diff --git a/util/lint/lint-stable-002-build-dir-handling b/util/lint/lint-stable-002-build-dir-handling index 93509077b3..ca61a351f0 100755 --- a/util/lint/lint-stable-002-build-dir-handling +++ b/util/lint/lint-stable-002-build-dir-handling @@ -58,7 +58,8 @@ rm -f $TMPCONFIG $MAKE DOTCONFIG=$TMPCONFIG allyesconfig >/dev/null # look up parent directory -PARENTDIR=`dirname $PWD` +CURRENTDIR=`pwd -P` +PARENTDIR=`dirname $CURRENTDIR` compare_output "`run_printall build`" "build/.../static.c build/.../static.c build/.../static.ramstage.o build/.../static.romstage.o" compare_output "`run_printall ../obj`" "$PARENTDIR/obj/.../static.c $PARENTDIR/obj/.../static.c $PARENTDIR/obj/.../static.ramstage.o $PARENTDIR/obj/.../static.romstage.o" -- cgit v1.2.3