]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/fs/ram/v2_0/cdl/ramfs.cdl
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / fs / ram / v2_0 / cdl / ramfs.cdl
index be6a00e915e24bf88ef1289efc23f97492415283..41ddc47a2f1676986713b11c71d7fbb6c45551fc 100644 (file)
@@ -65,6 +65,17 @@ cdl_package CYGPKG_FS_RAM {
     implements     CYGINT_IO_FILEIO_FS
 
     compile        -library=libextras.a ramfs.c
+        
+    requires       CYGINT_FS_RAM_ALLOC == 1
+
+    cdl_interface  CYGINT_FS_RAM_ALLOC {
+        display       "Functions to allocate RAM"
+        description   "
+            This interface is implemented by functions
+            which allocate RAM to hold the contents of the files"
+    }
+
+
 
     # ----------------------------------------------------------------------
     # Simple allocation mechanism using malloc()
@@ -75,6 +86,7 @@ cdl_package CYGPKG_FS_RAM {
        default_value 1
        active_if      !CYGPKG_FS_RAM_BLOCKS
 
+        implements CYGINT_FS_RAM_ALLOC
        cdl_option     CYGNUM_RAMFS_REALLOC_INCREMENT {
            display       "Size of file data storage increment"
            flavor        data
@@ -95,7 +107,7 @@ cdl_package CYGPKG_FS_RAM {
        default_value  0
        active_if      !CYGPKG_FS_RAM_SIMPLE
 
-       
+        implements CYGINT_FS_RAM_ALLOC 
        cdl_option     CYGNUM_RAMFS_BLOCK_SIZE {
            display       "Size of file data storage block"
            flavor        data
@@ -176,6 +188,18 @@ cdl_package CYGPKG_FS_RAM {
                        blocks that are referenced from a file or directory node."
     }
 
+    cdl_option     CYGPKG_FS_RAM_RET_DIRENT_DTYPE {
+       display       "Support for fileio's struct dirent d_type field"
+       flavor        bool
+       default_value 0
+       active_if     CYGPKG_FILEIO_DIRENT_DTYPE
+       description   "This option controls whether the RAM filesystem supports
+                       setting fileio's struct dirent d_type field.
+                       If this option is enabled, d_type will be set. 
+                       Otherwise, nothing will be done, d_type's value will    
+                       be zero because fileio already sets it."
+    }
+
     # ----------------------------------------------------------------
     # Tests
 
@@ -183,7 +207,7 @@ cdl_package CYGPKG_FS_RAM {
        display "RAM FS tests"
        flavor  data
        no_define
-       calculated { "tests/ramfs1 tests/ramfs2" }
+       calculated { "tests/ramfs1 tests/ramfs2 tests/ramfs3" }
             description   "
                 This option specifies the set of tests for the RAM FS package."
         }