blob: e8cca838993e61bf6a60a7ad8b90c625744b6c82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
# process the options
#
# defaults for getopt vars
#
verbose=""
limit="0"
use_sysv_ipc="auto"
device_tree_only=""
enable_if_sim=""
## TODO: may want command line ability to turn on some psim tracing
while getopts vhsdnl: OPT
do
case "$OPT" in
v) verbose="yes";;
h) echo "$USAGE"; exit 0;;
l) limit="$OPTARG";;
s) use_sysv_ipc="yes";;
d) device_tree_only="yes";;
n) enable_if_sim="yes";;
*) fatal;;
esac
done
shiftcount=`expr $OPTIND - 1`
shift $shiftcount
args=$*
if [ $# -eq 0 ] ; then
fatal
fi
if [ X${device_tree_only} = Xyes ] ; then
gen_device_tree ${1} > "`basename ${1} .exe`".device
exit $?
fi
if [ X${RUN} = X ] ; then
RUN=${rtemsTarget}-run
fi
gen_device_tree ${1} >${TREE_FILE}
runone ${1} ${limit}
rm -f ${TREE_FILE}
exit $?
|