source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom @ 5a6d25fc

4.104.11
Last change on this file since 5a6d25fc was 5a6d25fc, checked in by Till Straumann <strauman@…>, on Sep 11, 2009 at 10:42:00 PM

2009-09-11 Till Straumann <Till.Straumann@…>

  • psim-top.in, psim-bottom: Added support for options -d (print device tree and exit), -h (usage info) and -n (enable NIC support).
  • psim-gdb-bottom: Added support for options -s (force sysv IPC), -h (usage info) and -n (enable NIC support). Allow user to override GDB variable from environment.
  • psim-shared: cat NIC properties into device file if the user had specified '-n'.
  • runtest-top.in: removed unsupported options -o, -d from usage info.
  • Property mode set to 100755
File size: 768 bytes
Line 
1#
2# process the options
3#
4# defaults for getopt vars
5#
6
7verbose=""
8limit="0"
9use_sysv_ipc="auto"
10device_tree_only=""
11enable_if_sim=""
12
13## TODO: may want command line ability to turn on some psim tracing
14while getopts vhsdnl: OPT
15do
16    case "$OPT" in
17        v) verbose="yes";;
18        h) echo "$USAGE"; exit 0;;
19        l) limit="$OPTARG";;
20        s) use_sysv_ipc="yes";;
21        d) device_tree_only="yes";;
22        n) enable_if_sim="yes";;
23        *) fatal;;
24    esac
25done
26shiftcount=`expr $OPTIND - 1`
27shift $shiftcount
28
29args=$*
30
31if [ $# -eq 0 ] ; then
32  fatal
33fi
34
35if [ X${device_tree_only} = Xyes ] ; then
36        gen_device_tree ${1} > "`basename ${1} .exe`".device
37        exit $?
38fi
39
40if [ X${RUN} = X ] ; then
41  RUN=${rtemsTarget}-run
42fi
43
44gen_device_tree ${1} >${TREE_FILE}
45runone ${1} ${limit}
46rm -f ${TREE_FILE}
47exit $?
48
Note: See TracBrowser for help on using the repository browser.