source: rtems/c/src/aclocal/bsp-bspcleanup-options.m4 @ 4778c6e0

4.115
Last change on this file since 4778c6e0 was 8785e906, checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/09 at 23:12:55

2009-07-16 Joel Sherrill <joel.sherrill@…>

  • aclocal/bsp-bootcard-options.m4: Rename BSP_BOOTCARD_OPTIONS to RTEMS_BSP_BOOTCARD_OPTIONS. Add RTEMS_BSP_CLEANUP_OPTIONS so all BSPs now use the same macros.
  • aclocal/bsp-bspcleanup-options.m4: New file.
  • Property mode set to 100644
File size: 914 bytes
Line 
1dnl $Id$
2dnl
3
4dnl BSP_CLEANUP_OPTIONS - some autoconf voodoo to provide each BSPs'
5dnl configure script with the standard options supported by the shared
6dnl implementation of bsp_cleanup().
7dnl
8dnl   - Can optionally dirty memory at boot time.
9dnl
10
11dnl To be used in bsp-configure scripts
12
13dnl USAGE:
14dnl    RTEMS_BSP_CLEANUP_OPTIONS([0|1], [0|1])
15dnl WHERE:
16dnl    argument 1 indicates the default value for BSP_PRESS_KEY_FOR_RESET
17dnl    argument 2 indicates the default value for BSP_RESET_BOARD_AT_EXIT
18
19AC_DEFUN([RTEMS_BSP_CLEANUP_OPTIONS],[
20RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[$1])
21RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
22[If defined, print a message and wait until pressed before resetting
23 board when application exits.])
24
25RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[$2])
26RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
27[If defined, reset the board when the application exits.])
28])
Note: See TracBrowser for help on using the repository browser.