source: rtems-testing/sim-scripts/mkrun @ b89f143

4.11
Last change on this file since b89f143 was 3e4b04d, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2009 at 7:21:26 PM

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

  • .cvsignore, Makefile, erc32.in, gdb-sim-run.in, mkrun: Add TSIM support for ERC32, LEON2, and LEON3 BSPs. Include using all three for coverage.
  • leon2.in, leon3.in, tsim-support: New files.
  • Property mode set to 100755
File size: 707 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" >${GDB}
31  chmod +x ${GDB}
32fi
33
34exit 0
Note: See TracBrowser for help on using the repository browser.