diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/tools/psim-bottom')
-rwxr-xr-x | c/src/lib/libbsp/powerpc/psim/tools/psim-bottom | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom b/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom index cd7ede0009..e8cca83899 100755 --- a/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom +++ b/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom @@ -7,15 +7,20 @@ 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 vsl: OPT +while getopts vhsdnl: OPT do case "$OPT" in v) verbose="yes";; - l) limit="$OPTARG";; - s) use_sysv_ipc="yes";; - *) fatal;; + 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` @@ -27,6 +32,11 @@ 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 |