Add missing default value for some Kconfig's entries.
[yaffs2.git] / Makefile
index b9477b073a400a4598ee361f229d43a5895c25b2..5a7829270e225be4432c5acd97072253debcf7a3 100644 (file)
--- a/Makefile
+++ b/Makefile
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.
 #
-# $Id: Makefile,v 1.1 2004-12-17 23:14:51 charles Exp $
+# $Id: Makefile,v 1.4 2005-07-31 09:26:35 marty Exp $
 #
 
 ## Change or override  KERNELDIR to your kernel
 ## comment out USE_xxxx if you don't want these features.
 
-KERNELDIR = /usr/src/kernel-headers-2.4.27
+KERNELDIR = /usr/src/kernels/2.6.11-1.1369_FC4-i686
 
 ## Change if you are using a cross-compiler
 MAKETOOLS = 
@@ -30,29 +30,30 @@ LD=$(MAKETOOLS)ld
 # Comment out the stuff you don't want.
 #
 
-# CONFIG_YAFFS_RAM_ENABLED.
-# This adds the yaffsram file system support. Nice for testing on x86, but uses 2MB of RAM.
-# Don't enable for NAND-based targets.
+# CONFIG_YAFFS_YAFFS1
+# This adds the yaffs file system support for working with a
+# a 512 byte / page NAND mtd.
 
-USE_RAM_FOR_TEST = -DCONFIG_YAFFS_RAM_ENABLED
+USE_MTD = -DCONFIG_YAFFS_YAFFS1
 
+# CONFIG_YAFFS_YAFFS2
+# This adds the yaffs2 file system support for working with a 
+# 2048 or larger byte / page NAND mtd.
 
-# CONFIG_YAFFS_MTD_ENABLED.
-# This adds the yaffs file system support for working with a NAND mtd.
+USE_MTD_2 = -DCONFIG_YAFFS_YAFFS2
 
-USE_MTD = -DCONFIG_YAFFS_MTD_ENABLED
 
-# CONFIG_YAFFS2_RAM_ENABLED.
-# This adds the yaffs2ram file system support. Nice for testing on x86, but uses 2MB of RAM.
+# CONFIG_YAFFS_RAM_ENABLED.
+# This adds the yaffsram file system support. Nice for testing on x86, but uses 2MB of RAM.
 # Don't enable for NAND-based targets.
 
-USE_RAM_FOR_TEST_2 = -DCONFIG_YAFFS2_RAM_ENABLED
-
+# USE_RAM_FOR_TEST = -DCONFIG_YAFFS_RAM_ENABLED
 
-# CONFIG_YAFFS2_MTD_ENABLED.
-# This adds the yaffs2 file system support for working with a NAND mtd.
+# CONFIG_YAFFS2_RAM_ENABLED.
+# This adds the yaffs2ram file system support. Nice for testing on x86, but uses 2MB of RAM.
+# Don't enable for NAND-based targets.
 
-USE_MTD_2 = -DCONFIG_YAFFS2_MTD_ENABLED
+# USE_RAM_FOR_TEST_2 = -DCONFIG_YAFFS2_RAM_ENABLED
 
 # CONFIG_YAFFS_USE_OLD_MTD
 # Enable this to use the old MTD stuff that did not have yaffs support.
@@ -108,17 +109,20 @@ ENABLE_SHORT_NAMES_IN_RAM = -DCONFIG_SHORT_NAMES_IN_RAM
 
 # End of configuration options.
 
-YAFFS_CONFIGS = $(USE_RAM_FOR_TEST) $(USE_MTD) $(USE_RAM_FOR_TEST_2) $(USE_MTD_2)\
+WIERD_COMPILE_CONFIGS = -DNR_IRQS=1 -DNR_IRQ_VECTORS=1
+
+YAFFS_CONFIGS = $(WIERD_COMPILE_CONFIGS) \
+                $(USE_RAM_FOR_TEST) $(USE_MTD) $(USE_RAM_FOR_TEST_2) $(USE_MTD_2)\
                 $(USE_HEADER_FILE_SIZE) $(IGNORE_CHUNK_ERASED) $(IGNORE_WRITE_VERIFY) \
                 $(ENABLE_SHORT_NAMES_IN_RAM) $(USE_NANDECC) $(USE_OLD_MTD) $(USE_WRONGECC)
 
 
-YAFFS2_CONFIGS = $(YAFFS_CONFIGS) -DCONFIG_YAFFS_YAFFS2
+YAFFS2_CONFIGS = $(YAFFS_CONFIGS)
 
 CFLAGS = -D__KERNEL__ -DMODULE $(YAFFS2_CONFIGS)  -I$(KERNELDIR)/include -O2 -g -Wall
 
 
-OBJS = yaffs_fs.o yaffs_guts.o yaffs_ramem.o yaffs_mtdif.o yaffs_ecc.o yaffs_tagscompat.o yaffs_ramem2k.o yaffs_packedtags2.o yaffs_mtdif2.o
+OBJS = yaffs_fs.o yaffs_guts.o yaffs_ramem.o yaffs_mtdif.o yaffs_ecc.o yaffs_tagscompat.o yaffs_ramem2k.o yaffs_packedtags2.o yaffs_mtdif2.o yaffs_tagsvalidity.o
 
 
 all: yaffs.o