Changeset b68e057e in rtems


Ignore:
Timestamp:
Feb 7, 1998, 7:56:00 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
84b0f7c9
Parents:
e496c1f
Message:

Fixed to correctly operate on target variants like debug and profile.

Files:
3 edited

Legend:

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

    re496c1f rb68e057e  
    3030
    3131# check usage
    32 if [ $# -ne 1 ] ; then
    33   echo usage ${0}: bsp
     32if [ $# -ne 2 ] ; then
     33  echo usage ${0}: bsp object_directory
    3434  exit 1
    3535fi
     
    3737bsp=$1
    3838board=$1
     39ARCH=$2
    3940
    4041cpu=`echo $target | sed -e 's/-.*//'`
    4142
    42 echo $target
    4343case $target in
    4444  sparc-sun-solaris*)
    4545      rtems_cpu=unix
    4646      bsp=solaris2
     47      echo Not supported on unix port.
     48      exit 0
    4749      ;;
    4850  i[3456]86-pc-linux-gnu)
     
    5052      rtems_cpu=unix
    5153      bsp=linux1
     54      echo Not supported on unix port.
     55      exit 0
    5256      ;;
    5357  *-rtems*)
     
    6569esac
    6670
    67 echo
    68 echo Generating sizes for CPU ${cpu} on board ${board}
    69 echo
     71case $ARCH in
     72  *debug*)   VARIANT=debug ;;
     73  *profile*) VARIANT=profile ;;
     74  *)         VARIANT=optimized;;
     75esac
     76
     77echo
     78echo Size Information for the Following Configuration:
     79echo CPU: ${cpu}
     80echo BSP: ${board}
     81echo VARIANT: ${VARIANT}
     82echo
     83
    7084
    7185#
     
    88102
    89103#DIRLIST -- so greps for DIRLIST will find this file
    90 CPUOBJ=c/src/exec/score/cpu/${rtems_cpu}/o-${bsp}
    91 COREOBJ=c/src/exec/score/src/o-${bsp}
    92 RTEMSOBJ=c/src/exec/rtems/src/o-${bsp}
    93 SAPIOBJ=c/src/exec/sapi/src/o-${bsp}
    94 OPTOBJ=${board}/lib
     104CPUOBJ=c/src/exec/score/cpu/${rtems_cpu}/${ARCH}
     105COREOBJ=c/src/exec/score/src/${ARCH}
     106RTEMSOBJ=c/src/exec/rtems/src/${ARCH}
     107SAPIOBJ=c/src/exec/sapi/src/${ARCH}
     108OPTOBJ=c/src/exec/rtems/optman/${ARCH}
    95109
    96110MANLIST=" \
  • c/src/exec/wrapup/rtems/Makefile.in

    re496c1f rb68e057e  
    4242CLOBBER_ADDITIONS +=
    4343
     44EXTENSION_SUFFIX_$(TARGET_ARCH)_V=
     45EXTENSION_SUFFIX_$(TARGET_ARCH)-debug_V=_debug
     46EXTENSION_SUFFIX_$(TARGET_ARCH)-profile_V=_profile
     47
     48EXTENSION_VARIANT=$(EXTENSION_SUFFIX_$(ARCH)_V)
     49
     50
    4451$(LIB): ${OBJS}
    4552        $(make-library)
    46         -cd $(PROJECT_ROOT) ; \
    47             $(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) \
    48                 >$(PROJECT_RELEASE)/lib/sizeinfo.txt
     53        cd $(PROJECT_ROOT) ; \
     54            $(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) $(ARCH) \
     55                >$(PROJECT_RELEASE)/lib/sizeinfo$(EXTENSION_VARIANT).txt
    4956
    5057all:    ${ARCH} $(SRCS) $(LIB)
  • tools/cpu/generic/size_rtems.in

    re496c1f rb68e057e  
    3030
    3131# check usage
    32 if [ $# -ne 1 ] ; then
    33   echo usage ${0}: bsp
     32if [ $# -ne 2 ] ; then
     33  echo usage ${0}: bsp object_directory
    3434  exit 1
    3535fi
     
    3737bsp=$1
    3838board=$1
     39ARCH=$2
    3940
    4041cpu=`echo $target | sed -e 's/-.*//'`
    4142
    42 echo $target
    4343case $target in
    4444  sparc-sun-solaris*)
    4545      rtems_cpu=unix
    4646      bsp=solaris2
     47      echo Not supported on unix port.
     48      exit 0
    4749      ;;
    4850  i[3456]86-pc-linux-gnu)
     
    5052      rtems_cpu=unix
    5153      bsp=linux1
     54      echo Not supported on unix port.
     55      exit 0
    5256      ;;
    5357  *-rtems*)
     
    6569esac
    6670
    67 echo
    68 echo Generating sizes for CPU ${cpu} on board ${board}
    69 echo
     71case $ARCH in
     72  *debug*)   VARIANT=debug ;;
     73  *profile*) VARIANT=profile ;;
     74  *)         VARIANT=optimized;;
     75esac
     76
     77echo
     78echo Size Information for the Following Configuration:
     79echo CPU: ${cpu}
     80echo BSP: ${board}
     81echo VARIANT: ${VARIANT}
     82echo
     83
    7084
    7185#
     
    88102
    89103#DIRLIST -- so greps for DIRLIST will find this file
    90 CPUOBJ=c/src/exec/score/cpu/${rtems_cpu}/o-${bsp}
    91 COREOBJ=c/src/exec/score/src/o-${bsp}
    92 RTEMSOBJ=c/src/exec/rtems/src/o-${bsp}
    93 SAPIOBJ=c/src/exec/sapi/src/o-${bsp}
    94 OPTOBJ=${board}/lib
     104CPUOBJ=c/src/exec/score/cpu/${rtems_cpu}/${ARCH}
     105COREOBJ=c/src/exec/score/src/${ARCH}
     106RTEMSOBJ=c/src/exec/rtems/src/${ARCH}
     107SAPIOBJ=c/src/exec/sapi/src/${ARCH}
     108OPTOBJ=c/src/exec/rtems/optman/${ARCH}
    95109
    96110MANLIST=" \
Note: See TracChangeset for help on using the changeset viewer.