source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in @ 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: 969 bytes
Line 
1#! @KSH@ -p
2#
3#  Shell script to ease invocation of the powerpc simulator
4#
5#  COPYRIGHT (c) 1989-2008.
6#  On-Line Applications Research Corporation (OAR).
7#
8#  The license and distribution terms for this file may be
9#  found in found in the file LICENSE in this distribution or at
10#  http://www.rtems.com/license/LICENSE.
11#
12#  $Id$
13#
14
15TREE_FILE=psim_tree.${LOGNAME}
16
17rtemsTarget=@target_alias@
18
19progname=${0##*/}        # fast basename hack for ksh, bash
20
21USAGE=\
22"usage: $progname [ -opts ] test [ test ... ]
23        -v         -- verbose
24        -h         -- this message
25        -s         -- force System V IPC support on (default=auto)
26        -l limit   -- specify time limit (default is 'no limit')
27        -d         -- generate device tree as 'test'.device and exit
28        -n         -- enable NIC support ***REQUIRES PATCHED PSIM***
29"
30
31#   log an error to stderr
32prerr()
33{
34    echo "$*" >&2
35}
36
37fatal() {
38    [ "$1" ] && prerr $*
39    prerr "$USAGE"
40    exit 1
41}
42
43warn() {
44    [ "$1" ] && prerr $*
45}
Note: See TracBrowser for help on using the repository browser.