1 # ====================================================================
5 # Synthetic target disk package.
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
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 ## -------------------------------------------
38 #####ECOSGPLCOPYRIGHTEND####
39 # ====================================================================
40 ######DESCRIPTIONBEGIN####
46 #####DESCRIPTIONEND####
47 # ====================================================================
49 cdl_package CYGPKG_DEVS_DISK_ECOSYNTH {
50 display "Synthetic target disk driver"
52 parent CYGPKG_IO_DISK_DEVICES
53 active_if CYGPKG_IO_DISK
54 active_if CYGPKG_HAL_SYNTH
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 *****/"
62 cdl_component CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 {
63 display "Provide disk 0 device"
66 description "Synthetic disk 0 driver."
68 cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_NAME {
69 display "Device name for ecosynth disk 0 device"
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."
77 cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_FILENAME {
78 display "Linux file name for ecosynth disk 0 device"
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."
89 cdl_option CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE {
90 display "Size in bytes for ecosynth disk 0"
92 default_value 10240000
93 legal_values 512 to 99999999
94 requires { (CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE % 512) == 0 }
96 This option specifies the size in bytes used
97 for the ecosynth disk 0 device."
100 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR {
101 display "Expect MBR in synth disk 0 image"
105 This option controls the scanning of MBR in synthetic
109 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_CYLINDERS {
110 display "Number of cylinders on synth disk 0"
113 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
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."
120 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_HEADS {
121 display "Number of heads on synth disk 0"
124 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
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."
131 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_SECTORS {
132 display "Number of sectors per track on synth disk 0"
135 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
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."
143 cdl_component CYGPKG_DEVS_DISK_ECOSYNTH_OPTIONS {
144 display "Build options"
145 active_if { CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 }
147 compile -library=libextras.a synthdisk.c
149 Package-specific build options including control over compiler
150 flags used only in building this package."
152 cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_ADD {
153 display "Additional compiler flags"
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."
162 cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_REMOVE {
163 display "Suppressed compiler flags"
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."
174 cdl_component CYGPKG_DEVS_DISK_ECOSYNTH_TESTING {
175 display "Testing configuration"
178 cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE {
179 display "Test device driver"
181 default_value {"\"/dev/hd0/1\"" }
184 cdl_option CYGDAT_DEVS_DISK_TEST_MOUNTPOINT {
185 display "Test filesystem mountpoint"
187 default_value {"\"/dosfs\"" }
190 cdl_option CYGDAT_DEVS_DISK_TEST_DIRECTORY {
191 display "Test directory on test device"
193 default_value {"\"/test\"" }
197 cdl_option CYGDAT_DEVS_DISK_TEST_DEVICE2 {
198 display "Second Test device driver"
200 default_value {"\"/dev/hd0/2\"" }
203 cdl_option CYGDAT_DEVS_DISK_TEST_MOUNTPOINT2 {
204 display "Second Test filesystem mountpoint"
206 default_value {"\"/dosfs2\"" }
209 cdl_option CYGDAT_DEVS_DISK_TEST_DIRECTORY2 {
210 display "Test directory on second test device"
212 default_value {"\"/test\"" }