Permalink
Browse files

RTEMS support patch by Sebastian Huber

  • Loading branch information...
sbourdeauducq committed Jul 22, 2011
1 parent 2df51cd commit 113c1217865682ab081ab8a2f7deabdaa9f9869f
Showing with 1,123 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +4 −0 direct/yaffsfs.h
  3. +15 −0 direct/yportenv.h
  4. +850 −0 rtems/rtems_yaffs.c
  5. +118 −0 rtems/rtems_yaffs.h
  6. +89 −0 rtems/rtems_yaffs_os_context.c
  7. +46 −0 rtems/rtems_yaffs_os_glue.c
View
@@ -5,4 +5,4 @@
*.pyc
DEADJOE
*.mod.c
-
+build-*
View
@@ -25,6 +25,10 @@
#include "yaffscfg.h"
#include "yportenv.h"
+#ifdef __rtems__
+#include <sys/types.h>
+typedef __loff_t loff_t;
+#endif
//typedef long off_t;
//typedef long dev_t;
View
@@ -23,6 +23,21 @@ typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned u32;
+#ifdef __rtems__
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <errno.h>
+
+#define CONFIG_YAFFS_DIRECT 1
+#define CONFIG_YAFFS_SHORT_NAMES_IN_RAM 1
+#define CONFIG_YAFFS_YAFFS2 1
+#define CONFIG_YAFFS_PROVIDE_DEFS 1
+#define CONFIG_YAFFSFS_PROVIDE_VALUES 1
+#define NO_Y_INLINE 1
+
+#endif /* __rtems__ */
#ifndef WIN32
#include <sys/stat.h>
Oops, something went wrong.

0 comments on commit 113c121

Please sign in to comment.