+# Main Makefile for out-of-tree yaffs2 .ko building
+#
+# You can make two flavours of the .ko
+# make YAFFS_CURRENT=1 : makes yaffs2.ko using the current version code
+# make : makes yaffs2multi.ko using the multi-version code
+#
+# YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+#
+# Copyright (C) 2002-2010 Aleph One Ltd.
+# for Toby Churchill Ltd and Brightstar Engineering
+#
+# Created by Charles Manning <charles@aleph1.co.uk>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+ifdef YAFFS_CURRENT
+ YAFFS_O := yaffs2.o
+ EXTRA_CFLAGS += -DYAFFS_CURRENT
+else
+ YAFFS_O := yaffs2multi.o
+endif
+