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
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 version.
17 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 ## You should have received a copy of the GNU General Public License along
23 ## with eCos; if not, write to the Free Software Foundation, Inc.,
24 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ## As a special exception, if other files instantiate templates or use macros
27 ## or inline functions from this file, or you compile this file and link it
28 ## with other works to produce a work based on this file, this file does not
29 ## by itself cause the resulting work to be covered by the GNU General Public
30 ## License. However the source code for this file must still be made available
31 ## in accordance with section (3) of the GNU General Public License.
33 ## This exception does not invalidate any other reasons why a work based on
34 ## this file might be covered by the GNU General Public License.
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38 # ====================================================================
39 ######DESCRIPTIONBEGIN####
45 #####DESCRIPTIONEND####
46 # ====================================================================
48 cdl_package CYGPKG_DEVS_DISK_ECOSYNTH {
49 display "Synthetic target disk driver"
51 parent CYGPKG_IO_DISK_DEVICES
52 active_if CYGPKG_IO_DISK
53 active_if CYGPKG_HAL_SYNTH
55 cdl_component CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 {
56 display "Provide disk 0 device"
59 description "Synthetic disk 0 driver."
61 cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_NAME {
62 display "Device name for ecosynth disk 0 device"
64 default_value {"\"/dev/disk0/\""}
65 description "This is the device name used to access this
66 device in eCos. Note that the trailing slash
67 character must be present."
70 cdl_option CYGDAT_IO_DISK_ECOSYNTH_DISK0_FILENAME {
71 display "Linux file name for ecosynth disk 0 device"
73 default_value {"\"disk0.img\""}
74 description "This is the name of the file in the Linux filesystem that
75 the driver will use to simulate a real disk. It should have
76 been formatted with a DOS filesystem image before being used.
77 The driver may also be pointed at real devices. For example
78 setting this option to \"/dev/fd\" will cause the driver to access
79 any real floppy disk inserted in the host's floppy drive."
82 cdl_option CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE {
83 display "Size in bytes for ecosynth disk 0"
85 default_value 10240000
86 legal_values 512 to 99999999
87 requires { (CYGNUM_IO_DISK_ECOSYNTH_DISK0_SIZE % 512) == 0 }
89 This option specifies the size in bytes used
90 for the ecosynth disk 0 device."
93 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR {
94 display "Expect MBR in synth disk 0 image"
98 This option controls the scanning of MBR in synthetic
102 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_CYLINDERS {
103 display "Number of cylinders on synth disk 0"
106 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
108 This option controls the number of cylinders on
109 synthetic disk 0. It is only needed if
110 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
113 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_HEADS {
114 display "Number of heads on synth disk 0"
117 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
119 This option controls the number of heads on
120 synthetic disk 0. It is only needed if
121 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
124 cdl_option CYGIMP_IO_DISK_ECOSYNTH_DISK0_SECTORS {
125 display "Number of sectors per track on synth disk 0"
128 active_if CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR
130 This option controls the number of sectors per track on
131 synthetic disk 0.It is only needed if
132 CYGIMP_IO_DISK_ECOSYNTH_DISK0_MBR is set."
136 cdl_component CYGPKG_DEVS_DISK_ECOSYNTH_OPTIONS {
137 display "Build options"
138 active_if { CYGVAR_DEVS_DISK_ECOSYNTH_DISK0 }
140 compile -library=libextras.a synthdisk.c
142 Package-specific build options including control over compiler
143 flags used only in building this package."
145 cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_ADD {
146 display "Additional compiler flags"
151 This option modifies the set of compiler flags for
152 building this package. These flags are used in addition
153 to the set of global flags."
155 cdl_option CYGPKG_DEVS_DISK_ECOSYNTH_CFLAGS_REMOVE {
156 display "Suppressed compiler flags"
161 This option modifies the set of compiler flags for
162 building this package. These flags are removed from
163 the set of global flags if present."