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()
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
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
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
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."
}