1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# syntheth.cdl
|
4 |
|
|
#
|
5 |
|
|
# Synthetic target ethernet package.
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 2002, 2003 Bart Veer
|
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 version.
|
16 |
|
|
##
|
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
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
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.
|
25 |
|
|
##
|
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.
|
32 |
|
|
##
|
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.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting the
|
37 |
|
|
## copyright holder(s).
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): bartv
|
44 |
|
|
# Original data: bartv
|
45 |
|
|
# Contributors:
|
46 |
|
|
# Date: 2002-08-07
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_DEVS_ETH_ECOSYNTH {
|
52 |
|
|
display "Synthetic target ethernet driver"
|
53 |
|
|
description "
|
54 |
|
|
The ethernet driver for the eCos synthetic target allows applications
|
55 |
|
|
and other packages such as a TCP/IP stack to perform ethernet I/O.
|
56 |
|
|
This can involve either an unused ethernet device, or an emulated
|
57 |
|
|
ethernet device as provided by the Linux kernel's tunnel/tap
|
58 |
|
|
support. The eCos code interacts with a suitable Linux application
|
59 |
|
|
through the I/O auxiliary. Up to four ethernet devices are
|
60 |
|
|
supported, and the host-side target definition file controls how
|
61 |
|
|
each device will perform its I/O."
|
62 |
|
|
doc ref/devs-eth-synth-ecosynth.html
|
63 |
|
|
|
64 |
|
|
parent CYGPKG_IO_ETH_DRIVERS
|
65 |
|
|
active_if CYGPKG_IO_ETH_DRIVERS
|
66 |
|
|
active_if CYGPKG_HAL_SYNTH
|
67 |
|
|
|
68 |
|
|
cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 {
|
69 |
|
|
display "Provide eth0 device"
|
70 |
|
|
description "
|
71 |
|
|
The synthetic target can provide up to four ethernet devices,
|
72 |
|
|
eth0 to eth3. By default eth0 is enabled when a TCP/IP stack
|
73 |
|
|
is part of the configuration, disabled otherwise."
|
74 |
|
|
default_value CYGPKG_NET_STACK
|
75 |
|
|
implements CYGHWR_NET_DRIVERS
|
76 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH1 {
|
80 |
|
|
display "Provide eth1 device"
|
81 |
|
|
description "
|
82 |
|
|
The synthetic target can provide up to four ethernet devices,
|
83 |
|
|
eth0 to eth3. By default eth1 is always disabled, but can
|
84 |
|
|
be enabled if the eCos application needs more than one ethernet
|
85 |
|
|
device."
|
86 |
|
|
default_value 0
|
87 |
|
|
implements CYGHWR_NET_DRIVERS
|
88 |
|
|
implements CYGHWR_NET_DRIVER_ETH1
|
89 |
|
|
}
|
90 |
|
|
|
91 |
|
|
cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH2 {
|
92 |
|
|
display "Provide eth2 device"
|
93 |
|
|
description "
|
94 |
|
|
The synthetic target can provide up to four ethernet devices,
|
95 |
|
|
eth0 to eth3. By default eth2 is always disabled, but can
|
96 |
|
|
be enabled if the eCos application needs more than two ethernet
|
97 |
|
|
devices."
|
98 |
|
|
default_value 0
|
99 |
|
|
implements CYGHWR_NET_DRIVERS
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH3 {
|
103 |
|
|
display "Provide eth3 device"
|
104 |
|
|
description "
|
105 |
|
|
The synthetic target can provide up to four ethernet devices,
|
106 |
|
|
eth0 to eth3. By default eth3 is always disabled, but can
|
107 |
|
|
be enabled if the eCos application needs more than three ethernet
|
108 |
|
|
devices."
|
109 |
|
|
default_value 0
|
110 |
|
|
implements CYGHWR_NET_DRIVERS
|
111 |
|
|
}
|
112 |
|
|
|
113 |
|
|
cdl_component CYGPKG_DEVS_ETH_ECOSYNTH_OPTIONS {
|
114 |
|
|
display "Build options"
|
115 |
|
|
active_if { CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH1 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH2 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH3 }
|
116 |
|
|
flavor none
|
117 |
|
|
compile -library=libextras.a syntheth.c
|
118 |
|
|
requires CYGINT_ISO_ERRNO_CODES CYGINT_ISO_STRING_MEMFUNCS
|
119 |
|
|
description "
|
120 |
|
|
Package-specific build options including control over compiler
|
121 |
|
|
flags used only in building this package."
|
122 |
|
|
|
123 |
|
|
cdl_option CYGPKG_DEVS_ETH_ECOSYNTH_CFLAGS_ADD {
|
124 |
|
|
display "Additional compiler flags"
|
125 |
|
|
flavor data
|
126 |
|
|
no_define
|
127 |
|
|
default_value { "-D_KERNEL -D__ECOS" }
|
128 |
|
|
description "
|
129 |
|
|
This option modifies the set of compiler flags for
|
130 |
|
|
building this package. These flags are used in addition
|
131 |
|
|
to the set of global flags."
|
132 |
|
|
}
|
133 |
|
|
cdl_option CYGPKG_DEVS_ETH_ECOSYNTH_CFLAGS_REMOVE {
|
134 |
|
|
display "Suppressed compiler flags"
|
135 |
|
|
flavor data
|
136 |
|
|
no_define
|
137 |
|
|
default_value { "" }
|
138 |
|
|
description "
|
139 |
|
|
This option modifies the set of compiler flags for
|
140 |
|
|
building this package. These flags are removed from
|
141 |
|
|
the set of global flags if present."
|
142 |
|
|
}
|
143 |
|
|
}
|
144 |
|
|
}
|
145 |
|
|
|
146 |
|
|
# EOF syntheth.cdl
|