Changeset 20873580 in rtems-testing for sim-scripts


Ignore:
Timestamp:
Jan 20, 2009, 4:22:12 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
3b24611
Parents:
da70dec
Message:

2009-01-20 Joel Sherrill <joel.sherrill@…>

  • Makefile, edb7312.in, gdb-sim-run.in, gdb-sim.in, h8sim.in, jmr3904.in, m32csim.in, m32rsim.in, psim.in, simsh.in, sis.in, skyeye-support: Find run or gdb along PATH. Check for multiple RTEMS versions so there is only one version of the script. Default the simulator name so the BSP specific files do not have to do as much.
Location:
sim-scripts
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    rda70dec r20873580  
     12009-01-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile, edb7312.in, gdb-sim-run.in, gdb-sim.in, h8sim.in,
     4        jmr3904.in, m32csim.in, m32rsim.in, psim.in, simsh.in, sis.in,
     5        skyeye-support: Find run or gdb along PATH. Check for multiple RTEMS
     6        versions so there is only one version of the script. Default the
     7        simulator name so the BSP specific files do not have to do as much.
     8
    192009-01-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • sim-scripts/Makefile

    rda70dec r20873580  
    5252        done
    5353        for i in ${GENERATED_SCRIPTS} ; do \
    54           cp $${i} ${INSTALL_DIR}/$${i}-4.10 ; \
    55           chmod +x ${INSTALL_DIR}/$${i}-4.10 ; \
     54          cp $${i} ${INSTALL_DIR}/$${i} ; \
     55          chmod +x ${INSTALL_DIR}/$${i} ; \
    5656        done
    57         cd ${INSTALL_DIR} ; for i in ${GENERATED_SCRIPTS} ; do \
    58           for v in 4.9 4.8 4.7 4.6 ; do \
    59             rm -f $${i}-$${v} ; ln -s $${i}-4.10 $${i}-$${v} ; \
    60         done ;\
    61         done
    62        
     57
  • sim-scripts/edb7312.in

    rda70dec r20873580  
    77##INSERT SKYEYE SUPPORT HERE
    88
    9 runBSP=skyeye
    109runARGS()
    1110{
     
    3736bspGenerateDeviceTree()
    3837{
    39 cat >${bspTreeFile} <<EOF
     38cat <<EOF
    4039cpu: arm720t
    4140mach: ep7312
  • sim-scripts/gdb-sim-run.in

    rda70dec r20873580  
    9191bspGeneratesDeviceTree="no"
    9292bspSupportsSystemVIPC="no"
     93bspUsesGDBSimulator="yes"
     94
     95for v in 4.10 4.9 4.8 4.7 ""
     96do
     97  type @CPU_TARGET@-rtems${v}-run >/dev/null 2>&1
     98  if [ $? -eq 0 ] ; then
     99    defaultRUN=@CPU_TARGET@-rtems${v}-run
     100    break
     101  fi
     102done
     103
     104runBSP=${defaultRUN}
    93105
    94106rtemsVersion=`echo ${progname} | sed -e 's/@BSP@-//' -e 's/-gdb//'`
    95 RUN=@CPU_TARGET@-rtems${rtemsVersion}-run
    96107
    97108###################################################################
     
    107118  exit 1
    108119fi
     120
     121if [ X${runBSP} = X ] ; then
     122  echo "Unable to find a way to run @CPU_TARGET@/@BSP@"
     123  exit 1
     124fi
     125
     126test ${verbose} = "yes" && echo Using ${runBSP}
    109127
    110128## These are faults any BSP may generate.  They are common to RTEMS.
     
    201219  ## Some BSPs must generate device trees to provide to the simulator
    202220  if [ ${bspGeneratesDeviceTree} = "yes" ] ; then
    203     bspGenerateDeviceTree ${baseToRun}
     221    bspGenerateDeviceTree ${baseToRun} >${bspTreeFile}
    204222    if [ ${generate_tree_and_exit} = "yes" ] ; then
    205223      echo "Device tree generated and in ${bspTreeFile}"
  • sim-scripts/gdb-sim.in

    rda70dec r20873580  
    1414progname=${0##*/}        # fast basename hack for ksh, bash
    1515rtemsVersion=`echo ${progname} | sed -e 's/@BSP@-//' -e 's/gdb-//'`
    16 GDB=@CPU_TARGET@-rtems${rtemsVersion}-gdb
     16
     17for v in 4.10 4.9 4.8 4.7 ""
     18do
     19  type @CPU_TARGET@-rtems${v}-gdb >/dev/null 2>&1
     20  if [ $? -eq 0 ] ; then
     21    GDB=@CPU_TARGET@-rtems${v}-gdb
     22    break
     23  fi
     24  if [ X${GDB} = X ] ; then
     25    echo "Unable to find a GDB for @CPU_TARGET@ along your PATH"
     26    exit 1
     27  fi
     28
     29  test ${verbose} = "yes" && echo Using ${GDB}
     30done
     31
     32if [ X${GDB} = X ] ; then
     33  echo "Unable to find a GDB for @CPU_TARGET@ along your PATH"
     34  exit 1
     35fi
    1736
    1837test_exit()
  • sim-scripts/h8sim.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/jmr3904.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/m32csim.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/m32rsim.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/psim.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
     
    4645  enable_sysv_ipc="yes"
    4746
    48   if [ ${use_sysv_ipc} = "yes" ] ; then
     47  if [ X${use_sysv_ipc} = X"yes" ] ; then
    4948    enable_sysv_ipc="yes"
    5049    value=-1               # for now assume we are slave in this mode
  • sim-scripts/simsh.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/sis.in

    rda70dec r20873580  
    55#
    66
    7 runBSP=${RUN}
    87runARGS()
    98{
  • sim-scripts/skyeye-support

    rda70dec r20873580  
    44#  $Id$
    55#
     6
     7bspUsesGDBSimulator="no"
     8runBSP=skyeye
    69
    710bspExited_ARM()
Note: See TracChangeset for help on using the changeset viewer.