source: rtems-testing/sim-scripts/mkrun @ 85c521d

4.11
Last change on this file since 85c521d was 85c521d, checked in by Joel Sherrill <joel.sherrill@…>, on May 2, 2014 at 2:14:18 PM

rtems-testing: Use eval bash instead of full path

  • Property mode set to 100755
File size: 834 bytes
Line 
1#! /usr/bin/eval bash
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.