add compilation time to abuild.sh

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2132 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2005-12-04 20:35:56 +00:00
parent 453dfdfdaf
commit d8913a48d0
1 changed files with 5 additions and 2 deletions

View File

@ -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