diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-16 23:12:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-16 23:12:55 +0000 |
commit | 8785e9067390a95dfb64ab987248145775d0d949 (patch) | |
tree | b2a1861e3e3c3ea7c42962040561a05101bfb692 /c/src/aclocal/bsp-bspcleanup-options.m4 | |
parent | 2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8785e9067390a95dfb64ab987248145775d0d949.tar.bz2 |
2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | c/src/aclocal/bsp-bspcleanup-options.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/aclocal/bsp-bspcleanup-options.m4 b/c/src/aclocal/bsp-bspcleanup-options.m4 new file mode 100644 index 0000000000..c880c21adc --- /dev/null +++ b/c/src/aclocal/bsp-bspcleanup-options.m4 @@ -0,0 +1,28 @@ +dnl $Id$ +dnl + +dnl BSP_CLEANUP_OPTIONS - some autoconf voodoo to provide each BSPs' +dnl configure script with the standard options supported by the shared +dnl implementation of bsp_cleanup(). +dnl +dnl - Can optionally dirty memory at boot time. +dnl + +dnl To be used in bsp-configure scripts + +dnl USAGE: +dnl RTEMS_BSP_CLEANUP_OPTIONS([0|1], [0|1]) +dnl WHERE: +dnl argument 1 indicates the default value for BSP_PRESS_KEY_FOR_RESET +dnl argument 2 indicates the default value for BSP_RESET_BOARD_AT_EXIT + +AC_DEFUN([RTEMS_BSP_CLEANUP_OPTIONS],[ +RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[$1]) +RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET], +[If defined, print a message and wait until pressed before resetting + board when application exits.]) + +RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[$2]) +RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT], +[If defined, reset the board when the application exits.]) +]) |