Changeset 5108


Ignore:
Timestamp:
Feb 10, 2010, 7:08:22 PM (5 years ago)
Author:
oxygene
Message:

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@…>
Acked-by: Stefan Reinauer <stepan@…>

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/README

    r5037 r5108  
    3636 * make
    3737 * python
    38  * perl
    3938
    4039Optional:
  • trunk/src/arch/i386/Makefile.inc

    r5105 r5108  
    8484else
    8585$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
    86         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $< -o $@
    87         perl -e 's/\.rodata/.rom.data/g' -pi $@
    88         perl -e 's/\.text/.section .rom.text/g' -pi $@
     86        $(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
     87        mv $@.tmp $@
    8988endif
    9089endif
  • trunk/util/abuild/abuild

    r5106 r5108  
    217217
    218218        CURR=$( pwd )
    219         stime=`perl -e 'print time();'`
     219        stime=`perl -e 'print time();' 2>/dev/null || date +%s`
    220220        build_dir=$TARGET/${VENDOR}_${MAINBOARD}
    221221        eval $MAKE $silent -j $cpus obj=${build_dir} \
     
    226226        mv ..config.tmp ${build_dir}/config.deps
    227227        cd $TARGET/${VENDOR}_${MAINBOARD}
    228         etime=`perl -e 'print time();'`
     228        etime=`perl -e 'print time();' 2>/dev/null || date +%s`
    229229        duration=$(( $etime - $stime ))
    230230        if [ $ret -eq 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.