From d8913a48d0bc610ba36bdd453d5d4cfeb3128d27 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sun, 4 Dec 2005 20:35:56 +0000 Subject: add compilation time to abuild.sh git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2132 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util/abuild') diff --git a/util/abuild/abuild.sh b/util/abuild/abuild.sh index a650a33d6f..14b21ba185 100755 --- a/util/abuild/abuild.sh +++ b/util/abuild/abuild.sh @@ -177,14 +177,17 @@ function compile_target echo -n " Compiling image .." CURR=$( pwd ) cd $TARGET/${VENDOR}_${MAINBOARD} + stime=`date +%s` eval $MAKE &> make.log + etime=`date +%s` + duration=$(( $etime - $stime )) if [ $? -eq 0 ]; then echo "ok" > compile.status - echo "ok." + echo "ok. (took ${duration}s)" cd $CURR return 0 else - echo "FAILED! Log excerpt:" + echo "FAILED after ${duration}s! Log excerpt:" tail -n $CONTEXT make.log cd $CURR return 1 -- cgit v1.2.3