From 8785e9067390a95dfb64ab987248145775d0d949 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 16 Jul 2009 23:12:55 +0000 Subject: 2009-07-16 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. --- c/src/aclocal/bsp-bootcard-options.m4 | 4 ++-- c/src/aclocal/bsp-bspcleanup-options.m4 | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 c/src/aclocal/bsp-bspcleanup-options.m4 (limited to 'c/src/aclocal') diff --git a/c/src/aclocal/bsp-bootcard-options.m4 b/c/src/aclocal/bsp-bootcard-options.m4 index 991806150b..4495bc3093 100644 --- a/c/src/aclocal/bsp-bootcard-options.m4 +++ b/c/src/aclocal/bsp-bootcard-options.m4 @@ -3,14 +3,14 @@ dnl dnl BSP_BOOTCARD_OPTIONS - some autoconf voodoo to provide each BSPs' dnl configure script with the standard options supported by boot_card() -dnl and other required parts of the BSP Framwork. Currently, this is +dnl and other required parts of the BSP Framework. Currently, this is dnl dnl - Can optionally dirty memory at boot time. dnl dnl To be used in bsp-configure scripts -AC_DEFUN([BSP_BOOTCARD_OPTIONS],[ +AC_DEFUN([RTEMS_BSP_BOOTCARD_OPTIONS],[ RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0]) RTEMS_BSPOPTS_HELP([BSP_DIRTY_MEMORY], [If defined, then the BSP Framework will put a non-zero pattern into 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.]) +]) -- cgit v1.2.3