Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, 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
View
3  Makefile
@@ -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
View
1  libglue/Makefile
@@ -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
View
42 libglue/file.c
@@ -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;
View
4 libyaffs2/Makefile
@@ -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.