mtd/fs/jffs2/ecos/cdl jffs2.cdl,1.10,1.11

David Woodhouse dwmw2 at infradead.org
Wed Nov 26 19:03:27 EST 2003


Update of /home/cvs/mtd/fs/jffs2/ecos/cdl
In directory phoenix.infradead.org:/tmp/cvs-serv17208/cdl

Modified Files:
	jffs2.cdl 
Log Message:
Read-only CDL option for JFFS2. With just enough ifdefs in fs-ecos.c to 
let function-sections and gc-sections throw away all the write code. 
Also no longer remove -Wpointer-arith from CFLAGS, and really disable the 
gcthread code.


Index: jffs2.cdl
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/cdl/jffs2.cdl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- jffs2.cdl	26 Nov 2003 15:55:34 -0000	1.10
+++ jffs2.cdl	27 Nov 2003 00:03:24 -0000	1.11
@@ -72,7 +72,7 @@
     implements     CYGINT_IO_FILEIO_FS      
 
     compile        -library=libextras.a fs-ecos.c
-    compile        build.c scan.c malloc-ecos.c nodelist.c nodemgmt.c readinode.c erase.c dir-ecos.c write.c gc.c read.c compr.c
+    compile        build.c scan.c malloc-ecos.c nodelist.c nodemgmt.c readinode.c dir-ecos.c read.c compr.c
     # This could be overridden by an alternative direct I/O method.
     compile        flashio.c
 
@@ -80,12 +80,23 @@
 	display         "Support garbage-collection background thread"
 	flavor          bool
 	compile         gcthread.c
-#       requires        0
+# Leave this off till it's been implemented. And don't implement it till
+# icache locking has been made thread-safe.
+ 	requires        0
         description     "
             Enable background garbage collection thread, for making 
 	    free space ahead of time."
     }
 
+    cdl_option CYGOPT_FS_JFFS2_WRITE {
+	display         "Include write support for JFFS2"
+	flavor          bool
+	compile		gc.c write.c erase.c
+	default_value   1
+        description     "
+            Enable writing to JFFS2 file systems; not only reading."
+    }
+
     cdl_option CYGOPT_FS_JFFS2_NAND {
 	display         "Support for NAND flash"
 	flavor          bool
@@ -178,28 +189,16 @@
 	display "Additional compiler flags"
 	flavor  data
 	no_define
-	# We add -D__ECOS to trigger eCos-specific code in places.
-	# We add -Werror because I find it useful.
+	# We add '-D__ECOS' to trigger eCos-specific code in places.
+	# We add '-nostdinc -iwithprefix include' to avoid picking up
+	#    native <linux/*.h> include files when building on Linux.
+	# We add '-Werror' because it helps to focus the mind.
 	default_value { "-D__ECOS -nostdinc -iwithprefix include -Werror" }
 	description   "
 	    This option modifies the set of compiler flags for
             building the JFFS2 package.
             These flags are used in addition
             to the set of global flags."
-        }
-
-    cdl_option CYGPKG_FS_JFFS2_CFLAGS_REMOVE {
-	display "Suppressed compiler flags"
-	flavor  data
-	no_define
-	# We remove -Wpointer-arith so that some of the hacky Linux-compat code 
-	# (in file.c) compiled. We can probably remove it when that's replaced
-	# properly.
-	default_value { "-Wpointer-arith" }
-	description   "
-	    This option modifies the set of compiler flags for
-            building the JFFS2 package. These flags are removed from
-            the set of global flags if present."
         }
 
     # ----------------------------------------------------------------




More information about the linux-mtd-cvs mailing list