Ignore:
Timestamp:
Sep 11, 2009, 10:42:00 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, master
Children:
a1e516f
Parents:
507d382
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom

    r507d382 r5a6d25fc  
     1progname=${0##*/} # fast basename hack for ksh, bash
    12
    2 ## TODO: may want command line ability to turn on some psim tracing
     3USAGE=\
     4"usage: $progname [ -opts ] [prog]
     5        -s  -- force System V IPC support on (default=auto)
     6        -n  -- enable NIC support ***REQUIRES PATCHED GDB/PSIM***
     7        -h  -- this message
     8"
    39
    410# Recognize special argument to force System V IPC support on
    511use_sysv_ipc="auto"
     12enable_if_sim=""
     13
     14## TODO: may want command line ability to turn on some psim tracing
     15while getopts snh OPT
     16do
     17        case "$OPT" in
     18        s) use_sysv_ipc="yes";;
     19        n) enable_if_sim="yes";;
     20        h) echo "$USAGE"; exit 0;;
     21        *) echo "unknown option"; echo "$USAGE"; exit 0;;
     22        esac
     23done
     24shiftcount=`expr $OPTIND - 1`
     25shift $shiftcount
     26
     27args=$*
     28
    629if [ X${1} = "X-psim_sysv" ] ; then
    730  use_sysv_ipc="yes"
     
    2144}
    2245
    23 GDB=${rtemsTarget}-gdb
     46if [ X${GDB} = X ] ; then
     47        GDB=${rtemsTarget}-gdb
     48fi
    2449
    2550gen_device_tree ${1} >${TREE_FILE}
Note: See TracChangeset for help on using the changeset viewer.