show error logfile

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1702 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2004-10-21 21:41:57 +00:00
parent 584e078231
commit 23c3d9321f
1 changed files with 15 additions and 4 deletions

View File

@ -12,12 +12,21 @@
# #
# /path/to/freebios2/
LBROOT=$( cd ../..; pwd ) LBROOT=$( cd ../..; pwd )
# Where shall we place all the build trees?
TARGET=$( pwd )/linuxbios-builds TARGET=$( pwd )/linuxbios-builds
PAYLOAD=/usr/share/openbios/openbios.elf # path to payload. Should be more generic
PYTHON=python PAYLOAD=$HOME/tg3--ide_disk.zelf
# Lines of error context to be printed in FAILURE case
CONTEXT=5
# One might want to adjust these in case of cross compiling
MAKE="make" MAKE="make"
PYTHON=python
ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ -e s/x86_64/amd64/ \ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/x86_64/amd64/ \
@ -115,7 +124,8 @@ function create_builddir
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "ok" echo "ok"
else else
echo "FAILED!" echo "FAILED! Log excerpt:"
tail -n $CONTEXT $build_dir/config.log
return 1 return 1
fi fi
} }
@ -141,7 +151,8 @@ function compile_target
echo "ok." echo "ok."
cd $CURR cd $CURR
else else
echo "FAILED!" echo "FAILED! Log excerpt:"
tail -n $CONTEXT make.log
cd $CURR cd $CURR
return 1 return 1
fi fi