4.104.115
Last change
on this file since a1e516f was
5a6d25fc,
checked in by Till Straumann <strauman@…>, on 09/11/09 at 22:42:00
|
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 | |
---|
7 | verbose="" |
---|
8 | limit="0" |
---|
9 | use_sysv_ipc="auto" |
---|
10 | device_tree_only="" |
---|
11 | enable_if_sim="" |
---|
12 | |
---|
13 | ## TODO: may want command line ability to turn on some psim tracing |
---|
14 | while getopts vhsdnl: OPT |
---|
15 | do |
---|
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 |
---|
25 | done |
---|
26 | shiftcount=`expr $OPTIND - 1` |
---|
27 | shift $shiftcount |
---|
28 | |
---|
29 | args=$* |
---|
30 | |
---|
31 | if [ $# -eq 0 ] ; then |
---|
32 | fatal |
---|
33 | fi |
---|
34 | |
---|
35 | if [ X${device_tree_only} = Xyes ] ; then |
---|
36 | gen_device_tree ${1} > "`basename ${1} .exe`".device |
---|
37 | exit $? |
---|
38 | fi |
---|
39 | |
---|
40 | if [ X${RUN} = X ] ; then |
---|
41 | RUN=${rtemsTarget}-run |
---|
42 | fi |
---|
43 | |
---|
44 | gen_device_tree ${1} >${TREE_FILE} |
---|
45 | runone ${1} ${limit} |
---|
46 | rm -f ${TREE_FILE} |
---|
47 | exit $? |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.