Changeset 7f4ed08 in rtems-testing for sim-scripts


Ignore:
Timestamp:
Jan 20, 2009, 2:26:27 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
da70dec
Parents:
9cb0643
Message:

2009-01-19 Joel Sherrill <joel.sherrill@…>

  • gdb-sim-run.in: Add initial generate device tree and exit capability.
Location:
sim-scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r9cb0643 r7f4ed08  
     12009-01-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * gdb-sim-run.in: Add initial generate device tree and exit capability.
     4
    152009-01-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • sim-scripts/gdb-sim-run.in

    r9cb0643 r7f4ed08  
    2525        -v         -- verbose
    2626        -c         -- enabled coverage (default=no)
     27        -g         -- generate device tree and exit (default=no)
    2728        -i         -- interactive (default=no time limit)
    2829        -s         -- force System V IPC support (default=no)
     
    3031
    3132System V IPC and Coverage are not supported by all BSPs or simulators.
     33
     34When you generate a device tree and exit, remember to specify an executable.
     35Otherwise, the script won't know what to generate it for.
    3236"
    3337
     
    5963interactive="no"
    6064use_sysv_ipc="no"
    61 
    62 while getopts vil:s OPT
     65generate_tree_and_exit="no"
     66
     67while getopts vgil:s OPT
    6368do
    6469 case "$OPT" in
    6570   v) verbose="yes";;
    6671   c) coverage="yes";;
     72   g) generate_tree_and_exit="yes" ;;
    6773   i) interactive="yes";;
    6874   l) limit="$OPTARG";;
     
    196202  if [ ${bspGeneratesDeviceTree} = "yes" ] ; then
    197203    bspGenerateDeviceTree ${baseToRun}
     204    if [ ${generate_tree_and_exit} = "yes" ] ; then
     205      echo "Device tree generated and in ${bspTreeFile}"
     206      exit 0
     207    fi
    198208  fi
    199209
Note: See TracChangeset for help on using the changeset viewer.