summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-10-12 11:54:30 +1300
committerCharles Manning <cdhmanning@gmail.com>2010-10-12 11:54:30 +1300
commit3f5560bb6f29bb8f92efae420727ca576e159a61 (patch)
tree720b84172ab5d32bf5cba54dbafe6f8ee3d05385 /Makefile
parent41573908f821bcb40750e7c069ea8f5178f630e5 (diff)
yaffs Modify Makefile to handle multi or single version variants
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0192d08..a6b5d14 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
-# Main Makefile for out-of-tree yaffs2.ko building
+# 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.
#
@@ -12,11 +15,16 @@
# 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
+else
+ YAFFS_O := yaffs2multi.o
+endif
ifneq ($(KERNELRELEASE),)
EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE
- obj-m := yaffs2.o yaffs2multi.o
+ obj-m := $(YAFFS_O)
yaffs2-objs := yaffs_mtdif.o yaffs_mtdif2.o
yaffs2-objs += yaffs_mtdif1.o yaffs_packedtags1.o