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>
This commit is contained in:
parent
4bb7a8d68f
commit
9b757dccdc
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue