source: rtems-testing/sim-scripts/mkrun @ 33a3fc7

4.11
Last change on this file since 33a3fc7 was 33a3fc7, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 13, 2009 at 9:24:46 PM

2009-08-13 Joel Sherrill <joel.sherrill@…>

  • Makefile, gdb-sim-run.in, gdb-sim.in, mkrun, skyeye-support, tsim-support: GDB now works with tsim and skyeye simulator BSPs.
  • Property mode set to 100755
File size: 831 bytes
Line 
1#! /bin/sh
2#
3#  Helper to sed run scripts
4#
5#  $Id$
6
7doGdb=$1
8CPU=$2
9CPU_TARGET=$3
10BSP=$4
11RUN=${BSP}
12GDB=${BSP}-gdb
13
14# Generate RUN script
15cat gdb-sim-run.in | \
16  sed -e "s/@CPU@/${CPU}/" \
17      -e "s/@CPU_TARGET@/${CPU_TARGET}/" \
18      -e "s/@BSP@/${BSP}/" \
19      -e "/^##INSERT BSP SUPPORT HERE/r ${BSP}.in" | \
20  sed -e "/^##INSERT SKYEYE SUPPORT HERE/r skyeye-support" \
21      -e "/^##INSERT TSIM SUPPORT HERE/r tsim-support" >${RUN}
22chmod +x ${RUN}
23
24# Generate GDB script
25if [ ${doGdb} = yes ] ; then
26  cat gdb-sim.in | \
27    sed -e "s/@CPU@/${CPU}/" \
28        -e "s/@CPU_TARGET@/${CPU_TARGET}/" \
29        -e "s/@BSP@/${BSP}/" \
30        -e "/^##INSERT BSP SUPPORT HERE/r ${BSP}.in" | \
31    sed -e "/^##INSERT SKYEYE SUPPORT HERE/r skyeye-support" \
32        -e "/^##INSERT TSIM SUPPORT HERE/r tsim-support" >${GDB}
33  chmod +x ${GDB}
34fi
35
36exit 0
Note: See TracBrowser for help on using the repository browser.