summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-16 23:12:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-16 23:12:55 +0000
commit8785e9067390a95dfb64ab987248145775d0d949 (patch)
treeb2a1861e3e3c3ea7c42962040561a05101bfb692 /c/src
parent2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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 'c/src')
-rw-r--r--c/src/ChangeLog7
-rw-r--r--c/src/aclocal/bsp-bootcard-options.m44
-rw-r--r--c/src/aclocal/bsp-bspcleanup-options.m428
3 files changed, 37 insertions, 2 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index 0e09dcd7cc..79cdd52b4b 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Eliminate using the
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.])
+])