[PATCH 6/8] sapi: Add BSP_INITIAL_EXTENSION to confdefs.h

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 7 16:06:01 UTC 2012


A BSP can supply an initial extension via the new optional
BSP_INITIAL_EXTENSION define.  It will be the last in the initial
extension table.
---
 cpukit/sapi/include/confdefs.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index ce67168..aa2504c 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1605,7 +1605,8 @@ rtems_fs_init_functions_t    rtems_fs_init_helper =
 #endif
 #include <rtems/libcsupport.h>
 
-#if defined(CONFIGURE_INITIAL_EXTENSIONS) || \
+#if defined(BSP_INITIAL_EXTENSION) || \
+    defined(CONFIGURE_INITIAL_EXTENSIONS) || \
     defined(CONFIGURE_STACK_CHECKER_ENABLED) || \
     (defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY))
   static const rtems_extensions_table Configuration_Initial_Extensions[] = {
@@ -1618,6 +1619,9 @@ rtems_fs_init_functions_t    rtems_fs_init_helper =
     #if defined(CONFIGURE_INITIAL_EXTENSIONS)
       CONFIGURE_INITIAL_EXTENSIONS,
     #endif
+    #if defined(BSP_INITIAL_EXTENSION)
+      BSP_INITIAL_EXTENSION
+    #endif
   };
 
   #define CONFIGURE_INITIAL_EXTENSION_TABLE Configuration_Initial_Extensions
-- 
1.7.7




More information about the devel mailing list