Compilinig out of the kernel tree there is a problem with missing yportenv.h which
should be different for single and multi flavour.
This patch adds generic yportenv.h which includes single or multi version depending on
YAFFS_CURRENT define.
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com>
---
Makefile | 1 +
yportenv.h | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
create mode 100644 yportenv.h
diff --git a/Makefile b/Makefile
index db1b5c2..6722182 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@
ifdef YAFFS_CURRENT
YAFFS_O := yaffs2.o
+ EXTRA_CFLAGS += -DYAFFS_CURRENT
else
YAFFS_O := yaffs2multi.o
endif
diff --git a/yportenv.h b/yportenv.h
new file mode 100644
index 0000000..d4a9178
--- /dev/null
+++ b/yportenv.h
@@ -0,0 +1,20 @@
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2011 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
+#ifdef YAFFS_CURRENT
+ #include "yportenv_single.h"
+#else
+ #include "yportenv_multi.h"
+#endif
--
1.7.8