From: Charles Manning Date: Mon, 11 Oct 2010 22:54:30 +0000 (+1300) Subject: yaffs Modify Makefile to handle multi or single version variants X-Git-Tag: linux-mainline-rc-01~12 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=3f5560bb6f29bb8f92efae420727ca576e159a61 yaffs Modify Makefile to handle multi or single version variants Signed-off-by: Charles Manning --- 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