1 |
786 |
skrzyp |
# ====================================================================
|
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, 2004 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
|
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 "
|
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/synthdisk0/\""}
|
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 |
|
|
}
|