source: rtems-testing/sim-scripts/mkrun @ 6dc7bcc

4.11
Last change on this file since 6dc7bcc was ef065c7, checked in by Joel Sherrill <joel.sherrill@…>, on May 15, 2012 at 9:07:33 PM

rtems-testing - Remove CVS Ids (manual edits)

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