aboutsummaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-02-10 18:08:22 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-02-10 18:08:22 +0000
commit68882a33220e802ef38d562ea1c96fd5fb779e49 (patch)
tree4785ad108e16f6506d3ccffac3800016e33c2a60 /util/abuild
parent1bbad5c66b639a6459962b4e73ceddfae068e9ee (diff)
Remove two perl calls with sed, and adds an alternative
for another two (using GNU date, and with limited impact if both alternatives fail) Those were the remaining perl calls in our build tree, so remove perl from our dependency list in README. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5108 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index c905756edf..1942bf539a 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -216,7 +216,7 @@ function compile_target
test 0$cpus -gt 1 && printf "on %d cpus in parallel .. " $cpus
CURR=$( pwd )
- stime=`perl -e 'print time();'`
+ stime=`perl -e 'print time();' 2>/dev/null || date +%s`
build_dir=$TARGET/${VENDOR}_${MAINBOARD}
eval $MAKE $silent -j $cpus obj=${build_dir} \
&> ${build_dir}/make.log
@@ -225,7 +225,7 @@ function compile_target
mv .xcompile ${build_dir}/xcompile.build
mv ..config.tmp ${build_dir}/config.deps
cd $TARGET/${VENDOR}_${MAINBOARD}
- etime=`perl -e 'print time();'`
+ etime=`perl -e 'print time();' 2>/dev/null || date +%s`
duration=$(( $etime - $stime ))
if [ $ret -eq 0 ]; then
xml " <compile>ok</compile>"