summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2005-12-04 20:35:56 +0000
committerStefan Reinauer <stepan@openbios.org>2005-12-04 20:35:56 +0000
commitd8913a48d0bc610ba36bdd453d5d4cfeb3128d27 (patch)
tree3f7d99438fdb61f953a0c0babe54f52f381ba474
parent453dfdfdafbc2d10ec9289699a22e8c4fd8c2ad6 (diff)
add compilation time to abuild.sh
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2132 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rwxr-xr-xutil/abuild/abuild.sh7
1 files changed, 5 insertions, 2 deletions
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