Remove two perl calls with sed, and adds an alternative
authorPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 10 Feb 2010 18:08:22 +0000 (18:08 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 10 Feb 2010 18:08:22 +0000 (18:08 +0000)
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

README
src/arch/i386/Makefile.inc
util/abuild/abuild

diff --git a/README b/README
index 81a3f14444107b8e3c8856b9cee63f230d722da4..d7865b7b503319fa297ca3e099280534d09188fa 100644 (file)
--- a/README
+++ b/README
@@ -35,7 +35,6 @@ Build Requirements
  * gcc / g++
  * make
  * python
- * perl
 
 Optional:
 
index db5171920cb77ac94486676dcca790aa86f95873..f36f2db8cad1032a356e8c9bb3241e00909912fe 100644 (file)
@@ -83,9 +83,8 @@ $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/
 
 else
 $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
-       $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $< -o $@
-       perl -e 's/\.rodata/.rom.data/g' -pi $@
-       perl -e 's/\.text/.section .rom.text/g' -pi $@
+       $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $< -o - | sed -e 's/\.rodata/.rom.data/g' -e 's/\.text/.section .rom.text/g' > $@.tmp
+       mv $@.tmp $@
 endif
 endif
 
index c905756edfc759cc1236315194c292d47773d3aa..1942bf539a86723b86f65ec64ac5fdfa360ee293 100755 (executable)
@@ -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>"