source: rtems/c/src/aclocal/bsp-bspcleanup-options.m4 @ 3dd381f

5
Last change on this file since 3dd381f was 3dd381f, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 21, 2017 at 11:50:58 AM

bsps: Simplify RTEMS_BSP_CLEANUP_OPTIONS

Remove BSP-specific defaults for RTEMS_BSP_CLEANUP_OPTIONS to simplify
the BSP configuration and documentation. Change defaults to:

BSP_PRESS_KEY_FOR_RESET=0
BSP_RESET_BOARD_AT_EXIT=1
BSP_PRINT_EXCEPTION_CONTEXT=1

  • Property mode set to 100644
File size: 937 bytes
Line 
1dnl
2dnl RTEMS_BSP_CLEANUP_OPTIONS - some autoconf voodoo to provide each BSPs'
3dnl configure script with the standard options supported by the shared
4dnl implementation of bsp_fatal_extension().
5dnl
6dnl To be used in bsp-configure scripts
7dnl
8dnl USAGE:
9dnl    RTEMS_BSP_CLEANUP_OPTIONS
10
11AC_DEFUN([RTEMS_BSP_CLEANUP_OPTIONS],[
12RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[0])
13RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
14[If defined to a non-zero value, print a message and wait until pressed before
15resetting board when application exits.])
16
17RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[1])
18RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
19[If defined to a non-zero value, reset the board when the application exits.])
20
21RTEMS_BSPOPTS_SET([BSP_PRINT_EXCEPTION_CONTEXT],[*],[1])
22RTEMS_BSPOPTS_HELP([BSP_PRINT_EXCEPTION_CONTEXT],
23[If defined to a non-zero value, prints the exception context when an
24unexpected exception occurs.])])
Note: See TracBrowser for help on using the repository browser.