Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: m-labs/misp
base: a16f552
...
head fork: m-labs/misp
compare: 3f1fd02
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
3  Makefile
View
@@ -29,6 +29,7 @@ misp.elf: linker.ld $(OBJECTS) libs
$(compile-dep)
libs:
+ set -e; \
for lib in $(OURLIBS); do \
make -C $(MISPDIR)/lib$$lib; \
done
@@ -39,4 +40,4 @@ clean:
make -C $(MISPDIR)/lib$$lib clean; \
done
-.PHONY: clean libs flash
+.PHONY: clean libs
1  libglue/Makefile
View
@@ -1,6 +1,7 @@
MISPDIR=..
include $(MISPDIR)/common.mak
+CFLAGS+=-I$(YAFFSDIR)/direct -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_DEFINES_TYPES -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
OBJECTS=file.o getenv.o
all: libglue.a
42 libglue/file.c
View
@@ -1,9 +1,51 @@
#include <stdio.h>
+#include <errno.h>
#include <stdarg.h>
#include <console.h>
+#include <yaffs_osglue.h>
+
/* TODO */
+unsigned int yaffs_trace_mask;
+
+void yaffsfs_Lock(void)
+{
+}
+
+void yaffsfs_Unlock(void)
+{
+}
+
+u32 yaffsfs_CurrentTime(void)
+{
+ return 0;
+}
+
+void yaffsfs_SetError(int err)
+{
+ errno = err;
+}
+
+int yaffsfs_GetLastError(void)
+{
+ return errno;
+}
+
+void *yaffsfs_malloc(size_t size)
+{
+ return NULL;
+}
+
+void yaffsfs_free(void *ptr)
+{
+}
+
+void yaffs_bug_fn(const char *file_name, int line_no)
+{
+}
+
+
FILE *stdin;
FILE *stdout;
FILE *stderr;
4 libyaffs2/Makefile
View
@@ -1,11 +1,11 @@
MISPDIR=..
include $(MISPDIR)/common.mak
-CFLAGS+=-include $(YAFFSDIR)/direct/yportenv.h -I$(YAFFSDIR)/direct -I$(YAFFSDIR)
+CFLAGS+=-include $(M2DIR)/software/include/base/errno.h -include $(YAFFSDIR)/direct/yportenv.h -I$(YAFFSDIR)/direct -I$(YAFFSDIR)
CFLAGS+=-DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_DEFINES_TYPES -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
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
-OBJECTS+=yaffs_hweight.o yaffs_qsort.o
+OBJECTS+=yaffs_hweight.o yaffs_qsort.o yaffsfs.o
all: libyaffs2.a

No commit comments for this range

Something went wrong with that request. Please try again.