1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# fatfs.cdl
|
4 |
|
|
#
|
5 |
|
|
# FAT Filesystem configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
## for more details.
|
22 |
|
|
##
|
23 |
|
|
## You should have received a copy of the GNU General Public License
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): Savin Zlobec
|
43 |
|
|
# Contributors:
|
44 |
|
|
# Date: 2003-06-25
|
45 |
|
|
#
|
46 |
|
|
#####DESCRIPTIONEND####
|
47 |
|
|
#
|
48 |
|
|
# ====================================================================
|
49 |
|
|
|
50 |
|
|
cdl_package CYGPKG_FS_FAT {
|
51 |
|
|
display "FAT filesystem"
|
52 |
|
|
include_dir cyg/fs
|
53 |
|
|
|
54 |
|
|
parent CYGPKG_IO_FILEIO
|
55 |
|
|
requires CYGPKG_IO_FILEIO
|
56 |
|
|
|
57 |
|
|
requires CYGPKG_ISOINFRA
|
58 |
|
|
requires CYGINT_ISO_ERRNO
|
59 |
|
|
requires CYGINT_ISO_ERRNO_CODES
|
60 |
|
|
requires CYGPKG_MEMALLOC
|
61 |
|
|
requires CYGPKG_BLOCK_LIB
|
62 |
|
|
|
63 |
|
|
implements CYGINT_IO_FILEIO_FS
|
64 |
|
|
|
65 |
|
|
compile -library=libextras.a fatfs.c \
|
66 |
|
|
fatfs_supp.c \
|
67 |
|
|
fatfs_ncache.c
|
68 |
|
|
|
69 |
|
|
cdl_option CYGNUM_FS_FAT_NODE_HASH_TABLE_SIZE {
|
70 |
|
|
display "Node hash table size"
|
71 |
|
|
flavor data
|
72 |
|
|
default_value 32
|
73 |
|
|
legal_values 1 to 9999999999
|
74 |
|
|
description "This option controls the number of slots in the
|
75 |
|
|
hash table used to store file nodes using filenames
|
76 |
|
|
as keys."
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_option CYGNUM_FS_FAT_NODE_POOL_SIZE {
|
80 |
|
|
display "Node pool size"
|
81 |
|
|
flavor data
|
82 |
|
|
default_value { (CYGNUM_FILEIO_NFILE + 2) }
|
83 |
|
|
legal_values 1 to 9999999999
|
84 |
|
|
requires { CYGNUM_FS_FAT_NODE_POOL_SIZE >= (CYGNUM_FILEIO_NFILE+2) }
|
85 |
|
|
description "This option controls the size of the node pool used
|
86 |
|
|
for storing file nodes. This value should be set to
|
87 |
|
|
the maximum required number of simultaneously open
|
88 |
|
|
files plus the desired size of unused node cache."
|
89 |
|
|
}
|
90 |
|
|
|
91 |
|
|
cdl_option CYGNUM_FS_FAT_BLOCK_CACHE_MEMSIZE {
|
92 |
|
|
display "FAT block cache memory size"
|
93 |
|
|
flavor data
|
94 |
|
|
default_value 10240
|
95 |
|
|
legal_values 1 to 9999999999
|
96 |
|
|
description "This option controls the amount of memory used for
|
97 |
|
|
the block cache."
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
cdl_option CYGDBG_FS_FAT_NODE_CACHE_EXTRA_CHECKS {
|
101 |
|
|
display "Node cache extra checks"
|
102 |
|
|
flavor bool
|
103 |
|
|
default_value 1
|
104 |
|
|
active_if CYGPKG_INFRA_DEBUG && CYGDBG_USE_ASSERTS
|
105 |
|
|
description "This option controls the inclusion of extra
|
106 |
|
|
sanity checks in node cache code."
|
107 |
|
|
}
|
108 |
|
|
|
109 |
|
|
cdl_option CYGCFG_FS_FAT_USE_ATTRIBUTES {
|
110 |
|
|
display "Support for FAT FS file attributes"
|
111 |
|
|
flavor bool
|
112 |
|
|
default_value 0
|
113 |
|
|
description "This option controls if the FAT filesystem supports
|
114 |
|
|
or honors the FAT filesystem file attributes."
|
115 |
|
|
}
|
116 |
|
|
|
117 |
|
|
cdl_option CYGPKG_FS_FAT_RET_DIRENT_DTYPE {
|
118 |
|
|
display "Support for fileio's struct dirent d_type field"
|
119 |
|
|
flavor bool
|
120 |
|
|
default_value 0
|
121 |
|
|
active_if CYGPKG_FILEIO_DIRENT_DTYPE
|
122 |
|
|
description "This option controls whether the FAT filesystem
|
123 |
|
|
supports setting fileio's struct dirent d_type field.
|
124 |
|
|
If this option is enabled, d_type will be set."
|
125 |
|
|
}
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
# --------------------------------------------------------------------
|
129 |
|
|
|
130 |
|
|
cdl_component CYGPKG_DEVS_DISK_TESTING {
|
131 |
|
|
display "Testing configuration"
|
132 |
|
|
default_value 1
|
133 |
|
|
|
134 |
|
|
cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE {
|
135 |
|
|
display "Test device driver"
|
136 |
|
|
flavor data
|
137 |
|
|
default_value {"\"/dev/synthdisk0/1\"" }
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE2 {
|
141 |
|
|
display "Second Test device driver"
|
142 |
|
|
flavor data
|
143 |
|
|
default_value {"\"/dev/synthdisk0/2\"" }
|
144 |
|
|
}
|
145 |
|
|
|
146 |
|
|
}
|
147 |
|
|
|
148 |
|
|
cdl_option CYGPKG_FS_FAT_TESTS {
|
149 |
|
|
display "FAT FS tests"
|
150 |
|
|
flavor data
|
151 |
|
|
no_define
|
152 |
|
|
calculated { "tests/fatfs1" }
|
153 |
|
|
description "This option specifies the set of tests for the
|
154 |
|
|
FAT FS package."
|
155 |
|
|
}
|
156 |
|
|
}
|
157 |
|
|
|
158 |
|
|
# ====================================================================
|
159 |
|
|
# End of fatfs.cdl
|