can add user extend filesystem in confdefs.h?

yao0718 29171383 at qq.com
Tue Jul 5 02:09:53 UTC 2016


can add user extend filesystem macro in confdefs.h?

--- ./rtems/cpukit/sapi/include/confdefs.h	2016-07-03 03:25:07.227917300 +0800
+++ ./am335x_rtems/cpukit/sapi/include/confdefs.h	2016-07-02 23:10:46.522619200 +0800
@@ -575,6 +575,10 @@
           defined(CONFIGURE_FILESYSTEM_ENTRY_JFFS2)
         CONFIGURE_FILESYSTEM_ENTRY_JFFS2,
       #endif
+	  #if defined(CONFIGURE_FILESYSTEM_USER) && \
+          defined(CONFIGURE_FILESYSTEM_ENTRY_USER)
+		CONFIGURE_FILESYSTEM_ENTRY_USER,
+      #endif
       CONFIGURE_FILESYSTEM_NULL
     };
   #endif




now I can add yaffs2 in application define
#define CONFIGURE_FILESYSTEM_USER
#define CONFIGURE_FILESYSTEM_ENTRY_USER {"yaffs2",yaffs_initialize}



and  can add more user define filesystem in application without change confdefs.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160705/a33ba8af/attachment-0001.html>


More information about the devel mailing list