Ignore:
Timestamp:
Jan 23, 1998, 5:06:36 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2936b425
Parents:
bd620fe
Message:

Cleaned up a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/tools/generic/size_rtems.in

    rbd620fe r48971e5e  
    3535fi
    3636
     37bsp=$1
     38board=$1
     39
    3740cpu=`echo $target | sed -e 's/-.*//'`
    38 case $cpu in
    39   hppa1.1) rtems_cpu=hppa1_1 ;;
    40   powerpc) rtems_cpu=ppc ;;
    41   *)       rtems_cpu=$cpu ;;
     41
     42echo $target
     43case $target in
     44  sparc-sun-solaris*)
     45      rtems_cpu=unix
     46      bsp=solaris2
     47      ;;
     48  i[3456]86-pc-linux-gnu)
     49      echo linux
     50      rtems_cpu=unix
     51      bsp=linux1
     52      ;;
     53  *-rtems*)
     54    cpu=`echo $target | sed -e 's/-.*//'`
     55    case $cpu in
     56      hppa1.1) rtems_cpu=hppa1_1 ;;
     57      powerpc) rtems_cpu=ppc ;;
     58      *)       rtems_cpu=$cpu ;;
     59    esac
     60    ;;
     61  *)
     62    echo unknown target $target
     63    exit 1
     64    ;;
    4265esac
    43 bsp=$1
    44 
    45 echo
    46 echo Generating sizes for CPU ${cpu} on board ${bsp}
     66
     67echo
     68echo Generating sizes for CPU ${cpu} on board ${board}
    4769echo
    4870
     
    6082fi
    6183
    62 if [ ! -d ${bsp} ] ; then
    63   echo "${bsp} does not exist ... is the current directory the build directory?"
     84if [ ! -d ${board} ] ; then
     85  echo "${board} does not exist ... is the current directory the build directory?"
    6486  exit 1
    6587fi
     
    7092RTEMSOBJ=c/src/exec/rtems/src/o-${bsp}
    7193SAPIOBJ=c/src/exec/sapi/src/o-${bsp}
    72 OPTOBJ=${bsp}/lib
     94OPTOBJ=${board}/lib
    7395
    7496MANLIST=" \
Note: See TracChangeset for help on using the changeset viewer.