]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/devs/disk/synth/v2_0/cdl/synthdisk.cdl
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / devs / disk / synth / v2_0 / cdl / synthdisk.cdl
1 # ====================================================================
2 #
3 #      synthdisk.cdl
4 #
5 #      Synthetic target disk package.
6 #
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 2003 Savin Zlobec
12 ## Copyright (C) 2004 eCosCentric Limited
13 ##
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.
17 ##
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
21 ## for more details.
22 ##
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.
26 ##
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.
33 ##
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.
36 ##
37 ## -------------------------------------------
38 #####ECOSGPLCOPYRIGHTEND####
39 # ====================================================================
40 ######DESCRIPTIONBEGIN####
41 #
42 # Author(s):      savin
43 # Contributors:
44 # Date:           2003-06-18
45 #
46 #####DESCRIPTIONEND####
47 # ====================================================================
48
49 cdl_package CYGPKG_DEVS_DISK_ECOSYNTH {
50     display     "Synthetic target disk driver"
51     
52     parent      CYGPKG_IO_DISK_DEVICES
53     active_if   CYGPKG_IO_DISK
54     active_if   CYGPKG_HAL_SYNTH
55
56     define_proc {
57         puts $::cdl_system_header "/***** Synthdisk driver proc output start *****/"
58         puts $::cdl_system_header "#define CYGDAT_DEVS_DISK_CFG <pkgconf/devs_disk_ecosynth.h>"
59         puts $::cdl_system_header "/***** Synthdisk driver proc output end  *****/"        
60     }
61
62     cdl_component CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 {
63         display         "Provide disk 0 device"
64         flavor          bool
65         default_value   0
66         description     "Synthetic disk 0 driver."
67         
68         cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_NAME {
69             display       "Device name for ecosynth disk 0 device"
70             flavor        data
71             default_value {"\"/dev/hd0/\""}
72             description   "This is the device name used to access this
73                            device in eCos. Note that the trailing slash
74                            character must be present."
75         }
76
77         cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_FILENAME {
78             display       "Linux file name for ecosynth disk 0 device"
79             flavor        data
80             default_value {"\"disk0.img\""}
81             description   "This is the name of the file in the Linux filesystem that
82                            the driver will use to simulate a real disk. It should have
83                            been formatted with a DOS filesystem image before being used.
84                            The driver may also be pointed at real devices. For example
85                            setting this option to \"/dev/fd\" will cause the driver to access
86                            any real floppy disk inserted in the host's floppy drive."
87         }
88
89         cdl_option CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE {
90             display       "Size in bytes for ecosynth disk 0"
91             flavor        data
92             default_value 10240000
93             legal_values  512 to 99999999
94             requires      { (CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE % 512) == 0 }
95             description   "
96                 This option specifies the size in bytes used
97                 for the ecosynth disk 0 device."
98         }
99
100         cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR {
101             display       "Expect MBR in synth disk 0 image"
102             flavor        bool
103             default_value 0
104             description   "
105                 This option controls the scanning of MBR in synthetic
106                 disk 0 image."
107         }
108         
109         cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_CYLINDERS {
110             display       "Number of cylinders on synth disk 0"
111             flavor        data
112             default_value 0
113             active_if     CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
114             description   "
115                 This option controls the number of cylinders on
116                 synthetic disk 0. It is only needed if
117                 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
118         }
119         
120         cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_HEADS {
121             display       "Number of heads on synth disk 0"
122             flavor        data
123             default_value 0
124             active_if     CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
125             description   "
126                 This option controls the number of heads on
127                 synthetic disk 0. It is only needed if
128                 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
129         }
130        
131         cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_SECTORS {
132             display       "Number of sectors per track on synth disk 0"
133             flavor        data
134             default_value 0
135             active_if     CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
136             description   "
137                 This option controls the number of sectors per track on
138                 synthetic disk 0.It is only needed if
139                 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
140         }
141     }
142
143     cdl_component CYGPKG_DEVS_DISK_ECOSYNTH_OPTIONS {
144         display     "Build options"
145             active_if   { CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 }
146             flavor      none
147             compile     -library=libextras.a synthdisk.c
148             description "
149                 Package-specific build options including control over compiler
150                 flags used only in building this package."
151
152             cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_ADD {
153             display "Additional compiler flags"
154             flavor  data
155             no_define
156             default_value { "" }
157             description   "
158                 This option modifies the set of compiler flags for
159                 building this package. These flags are used in addition
160                 to the set of global flags."
161             }
162         cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_REMOVE {
163             display "Suppressed compiler flags"
164             flavor  data
165             no_define
166             default_value { "" }
167             description   "
168                 This option modifies the set of compiler flags for
169                 building this package. These flags are removed from
170                 the set of global flags if present."
171         }
172     }
173
174     cdl_component CYGPKG_DEVS_DISK_ECOSYNTH_TESTING {
175         display          "Testing configuration"
176         default_value    1
177         
178         cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE {
179             display      "Test device driver"
180             flavor       data
181             default_value {"\"/dev/hd0/1\"" }
182         }
183
184         cdl_option CYGDAT_DEVS_DISK_TEST_MOUNTPOINT {
185             display      "Test filesystem mountpoint"
186             flavor       data
187             default_value {"\"/dosfs\"" }
188         }
189
190         cdl_option CYGDAT_DEVS_DISK_TEST_DIRECTORY {
191             display      "Test directory on test device"
192             flavor       data
193             default_value {"\"/test\"" }
194         }
195
196         
197         cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE2 {
198             display      "Second Test device driver"
199             flavor       data
200             default_value {"\"/dev/hd0/2\"" }
201         }
202
203         cdl_option CYGDAT_DEVS_DISK_TEST_MOUNTPOINT2 {
204             display      "Second Test filesystem mountpoint"
205             flavor       data
206             default_value {"\"/dosfs2\"" }
207         }
208
209         cdl_option CYGDAT_DEVS_DISK_TEST_DIRECTORY2 {
210             display      "Test directory on second test device"
211             flavor       data
212             default_value {"\"/test\"" }
213         }
214
215     }
216
217 }