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:
parent
453dfdfdaf
commit
d8913a48d0
|
@ -177,14 +177,17 @@ function compile_target
|
||||||
echo -n " Compiling image .."
|
echo -n " Compiling image .."
|
||||||
CURR=$( pwd )
|
CURR=$( pwd )
|
||||||
cd $TARGET/${VENDOR}_${MAINBOARD}
|
cd $TARGET/${VENDOR}_${MAINBOARD}
|
||||||
|
stime=`date +%s`
|
||||||
eval $MAKE &> make.log
|
eval $MAKE &> make.log
|
||||||
|
etime=`date +%s`
|
||||||
|
duration=$(( $etime - $stime ))
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "ok" > compile.status
|
echo "ok" > compile.status
|
||||||
echo "ok."
|
echo "ok. (took ${duration}s)"
|
||||||
cd $CURR
|
cd $CURR
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo "FAILED! Log excerpt:"
|
echo "FAILED after ${duration}s! Log excerpt:"
|
||||||
tail -n $CONTEXT make.log
|
tail -n $CONTEXT make.log
|
||||||
cd $CURR
|
cd $CURR
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue