1 # ====================================================================
5 # RAM Filesystem configuration data
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12 ## Copyright (C) 2004 eCosCentric Limited
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
45 # Original data: nickg
49 #####DESCRIPTIONEND####
51 # ====================================================================
53 cdl_package CYGPKG_FS_RAM {
54 display "RAM filesystem"
58 requires CYGPKG_IO_FILEIO
60 requires CYGPKG_ISOINFRA
62 requires CYGINT_ISO_ERRNO
63 requires CYGINT_ISO_ERRNO_CODES
65 implements CYGINT_IO_FILEIO_FS
67 compile -library=libextras.a ramfs.c
69 # ----------------------------------------------------------------------
70 # Simple allocation mechanism using malloc()
72 cdl_component CYGPKG_FS_RAM_SIMPLE {
73 display "Simple, malloc() based, implementation"
74 requires { CYGINT_ISO_MALLOC != 0 }
76 active_if !CYGPKG_FS_RAM_BLOCKS
78 cdl_option CYGNUM_RAMFS_REALLOC_INCREMENT {
79 display "Size of file data storage increment"
82 legal_values 64 to 32768
83 description "This option controls the size of the increment to a file data
89 # ----------------------------------------------------------------------
90 # Block based allocation, using either malloc() or a private block
93 cdl_component CYGPKG_FS_RAM_BLOCKS {
94 display "Block-based RAM filesystem allocation"
96 active_if !CYGPKG_FS_RAM_SIMPLE
99 cdl_option CYGNUM_RAMFS_BLOCK_SIZE {
100 display "Size of file data storage block"
103 legal_values 64 to 32768
104 description "This option controls the size of a data storage block."
107 cdl_option CYGNUM_RAMFS_BLOCKS_DIRECT {
108 display "Directly referenced data storage blocks"
112 description "This option controls the number of data storage blocks that
113 are referenced directly from a file or directory node."
116 cdl_option CYGNUM_RAMFS_BLOCKS_INDIRECT1 {
117 display "Single level indirect data storage blocks"
121 description "This option controls the number of single level indirect storage
122 blocks that are referenced from a file or directory node."
125 cdl_option CYGNUM_RAMFS_BLOCKS_INDIRECT2 {
126 display "Two level indirect data storage blocks"
130 description "This option controls the number of two level indirect storage
131 blocks that are referenced from a file or directory node."
134 cdl_component CYGPKG_FS_RAM_BLOCKS_ARRAY {
135 display "Use block array rather than malloc()"
137 description "This option controls whether the blocks are allocated from
138 an array of blocks rather from the heap using malloc()."
140 cdl_option CYGPKG_FS_RAM_BLOCKS_ARRAY_EXTERN {
141 display "Block array is external"
143 description "This option controls whether the block array is
144 defined by the RAMFS package or whether it is provided
145 by an external component. The latter option may be
146 useful when the RAM file system is to be put into a
147 special memory area."
150 cdl_option CYGPKG_FS_RAM_BLOCKS_ARRAY_NAME {
151 display "Name of external block array"
152 active_if CYGPKG_FS_RAM_BLOCKS_ARRAY_EXTERN
154 default_value "cyg_ramfs_block_array"
155 description "This option controls what the symbol name of the external
156 block array will be."
159 cdl_option CYGNUM_FS_RAM_BLOCKS_ARRAY_SIZE {
160 display "Size of blocks array"
163 legal_values 1 to 9999999999
164 description "The number of blocks in the array. The total size of
165 the array will be this value times the block size."
170 cdl_option CYGNUM_RAMFS_DIRENT_SIZE {
171 display "Directory entry size"
174 legal_values 16 to { CYGNUM_RAMFS_BLOCK_SIZE ? CYGNUM_RAMFS_BLOCK_SIZE : 128 }
175 description "This option controls the number of two level indirect storage
176 blocks that are referenced from a file or directory node."
179 # ----------------------------------------------------------------
182 cdl_option CYGPKG_FS_RAM_TESTS {
183 display "RAM FS tests"
186 calculated { "tests/ramfs1 tests/ramfs2" }
188 This option specifies the set of tests for the RAM FS package."