blob: 93987cca536877996ac023dfe8315fd8e24787a7 (
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
|
#
# process the options
#
# defaults for getopt vars
#
verbose=""
limit="0"
## TODO: may want command line ability to turn on some psim tracing
while getopts vl: OPT
do
case "$OPT" in
v)
verbose="yes";;
l)
limit="$OPTARG";;
*)
fatal;;
esac
done
shiftcount=`expr $OPTIND - 1`
shift $shiftcount
args=$*
if [ $# -eq 0 ] ; then
fatal
fi
gen_device_tree ${1} >${TREE_FILE}
runone ${1} ${limit}
rm -f ${TREE_FILE}
exit $?
|