diff options
author | Stefan Reinauer <stepan@openbios.org> | 2004-10-21 21:41:57 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2004-10-21 21:41:57 +0000 |
commit | 23c3d9321f4fdead52080e9a1a261807d0a3cbc8 (patch) | |
tree | 12f873ca3e8f3d1ca96cdb29f3a5c1c38d53eb15 /util/abuild/abuild.sh | |
parent | 584e078231f6c6b59abeb8588c5967972c133a6c (diff) |
show error logfile
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1702 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/abuild/abuild.sh')
-rw-r--r-- | util/abuild/abuild.sh | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/util/abuild/abuild.sh b/util/abuild/abuild.sh index 276153a899..237b41e1f6 100644 --- a/util/abuild/abuild.sh +++ b/util/abuild/abuild.sh @@ -12,12 +12,21 @@ # +# /path/to/freebios2/ LBROOT=$( cd ../..; pwd ) + +# Where shall we place all the build trees? TARGET=$( pwd )/linuxbios-builds -PAYLOAD=/usr/share/openbios/openbios.elf -PYTHON=python +# path to payload. Should be more generic +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" +PYTHON=python 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/ \ @@ -115,7 +124,8 @@ function create_builddir if [ $? -eq 0 ]; then echo "ok" else - echo "FAILED!" + echo "FAILED! Log excerpt:" + tail -n $CONTEXT $build_dir/config.log return 1 fi } @@ -141,7 +151,8 @@ function compile_target echo "ok." cd $CURR else - echo "FAILED!" + echo "FAILED! Log excerpt:" + tail -n $CONTEXT make.log cd $CURR return 1 fi |