diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2012-09-28 20:14:38 +0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-10-05 22:06:04 +0200 |
commit | 9b757dccdca1ca4a14fdc8351600652d798dc715 (patch) | |
tree | d08211969bdb4c59b6daf7264c7d7522cfdd80ae /util | |
parent | 4bb7a8d68fd55a59ae908bb662a7a488a9ad35c9 (diff) | |
download | coreboot-9b757dccdca1ca4a14fdc8351600652d798dc715.tar.xz |
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 <zheng.bao@amd.com>
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/1551
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/lint/lint-stable-002-build-dir-handling | 3 |
1 files changed, 2 insertions, 1 deletions
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" |