Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
3  Makefile
@@ -29,6 +29,7 @@ misp.elf: linker.ld $(OBJECTS) libs
29 29
 	$(compile-dep)
30 30
 
31 31
 libs:
  32
+	set -e; \
32 33
 	for lib in $(OURLIBS); do \
33 34
 		make -C $(MISPDIR)/lib$$lib; \
34 35
 	done
@@ -39,4 +40,4 @@ clean:
39 40
 		make -C $(MISPDIR)/lib$$lib clean; \
40 41
 	done
41 42
 
42  
-.PHONY: clean libs flash
  43
+.PHONY: clean libs
1  libglue/Makefile
... ...
@@ -1,6 +1,7 @@
1 1
 MISPDIR=..
2 2
 include $(MISPDIR)/common.mak
3 3
 
  4
+CFLAGS+=-I$(YAFFSDIR)/direct -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_DEFINES_TYPES -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
4 5
 OBJECTS=file.o getenv.o
5 6
 
6 7
 all: libglue.a
42  libglue/file.c
... ...
@@ -1,9 +1,51 @@
1 1
 #include <stdio.h>
  2
+#include <errno.h>
2 3
 #include <stdarg.h>
3 4
 #include <console.h>
4 5
 
  6
+#include <yaffs_osglue.h>
  7
+
5 8
 /* TODO */
6 9
 
  10
+unsigned int yaffs_trace_mask;
  11
+
  12
+void yaffsfs_Lock(void)
  13
+{
  14
+}
  15
+
  16
+void yaffsfs_Unlock(void)
  17
+{
  18
+}
  19
+
  20
+u32 yaffsfs_CurrentTime(void)
  21
+{
  22
+	return 0;
  23
+}
  24
+
  25
+void yaffsfs_SetError(int err)
  26
+{
  27
+	errno = err;
  28
+}
  29
+
  30
+int yaffsfs_GetLastError(void)
  31
+{
  32
+	return errno;
  33
+}
  34
+
  35
+void *yaffsfs_malloc(size_t size)
  36
+{
  37
+	return NULL;
  38
+}
  39
+
  40
+void yaffsfs_free(void *ptr)
  41
+{
  42
+}
  43
+
  44
+void yaffs_bug_fn(const char *file_name, int line_no)
  45
+{
  46
+}
  47
+
  48
+
7 49
 FILE *stdin;
8 50
 FILE *stdout;
9 51
 FILE *stderr;
4  libyaffs2/Makefile
... ...
@@ -1,11 +1,11 @@
1 1
 MISPDIR=..
2 2
 include $(MISPDIR)/common.mak
3 3
 
4  
-CFLAGS+=-include $(YAFFSDIR)/direct/yportenv.h -I$(YAFFSDIR)/direct -I$(YAFFSDIR)
  4
+CFLAGS+=-include $(M2DIR)/software/include/base/errno.h -include $(YAFFSDIR)/direct/yportenv.h -I$(YAFFSDIR)/direct -I$(YAFFSDIR)
5 5
 CFLAGS+=-DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_DEFINES_TYPES -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
6 6
 
7 7
 OBJECTS=yaffs_ecc.o yaffs_guts.o yaffs_packedtags1.o yaffs_tagscompat.o yaffs_packedtags2.o yaffs_nand.o yaffs_checkptrw.o yaffs_nameval.o yaffs_attribs.o yaffs_allocator.o yaffs_bitmap.o yaffs_yaffs1.o yaffs_yaffs2.o yaffs_verify.o yaffs_summary.o
8  
-OBJECTS+=yaffs_hweight.o yaffs_qsort.o
  8
+OBJECTS+=yaffs_hweight.o yaffs_qsort.o yaffsfs.o
9 9
 
10 10
 all: libyaffs2.a
11 11
 

No commit comments for this range

Something went wrong with that request. Please try again.