X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=Makefile;h=a6b5d14d04ecc4ea198b0f2b469ca865f3935b10;hp=0192d08b89322fd8aecd25a4aede20b3f9e41a14;hb=3f5560bb6f29bb8f92efae420727ca576e159a61;hpb=1996f7866c793b99020d2d204d522291609e9fbb 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