1 # ====================================================================
5 # Synthetic target ethernet package.
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 2002, 2003 Bart Veer
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 ## Alternative licenses for eCos may be arranged by contacting the
37 ## copyright holder(s).
38 ## -------------------------------------------
39 #####ECOSGPLCOPYRIGHTEND####
40 # ====================================================================
41 ######DESCRIPTIONBEGIN####
44 # Original data: bartv
48 #####DESCRIPTIONEND####
49 # ====================================================================
51 cdl_package CYGPKG_DEVS_ETH_ECOSYNTH {
52 display "Synthetic target ethernet driver"
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
64 parent CYGPKG_IO_ETH_DRIVERS
65 active_if CYGPKG_IO_ETH_DRIVERS
66 active_if CYGPKG_HAL_SYNTH
67 implements CYGINT_IO_ETH_MULTICAST
69 cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 {
70 display "Provide eth0 device"
72 The synthetic target can provide up to four ethernet devices,
73 eth0 to eth3. By default eth0 is enabled when a TCP/IP stack
74 is part of the configuration, disabled otherwise."
75 default_value CYGPKG_NET_STACK
76 implements CYGHWR_NET_DRIVERS
77 implements CYGHWR_NET_DRIVER_ETH0
80 cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH1 {
81 display "Provide eth1 device"
83 The synthetic target can provide up to four ethernet devices,
84 eth0 to eth3. By default eth1 is always disabled, but can
85 be enabled if the eCos application needs more than one ethernet
88 implements CYGHWR_NET_DRIVERS
89 implements CYGHWR_NET_DRIVER_ETH1
92 cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH2 {
93 display "Provide eth2 device"
95 The synthetic target can provide up to four ethernet devices,
96 eth0 to eth3. By default eth2 is always disabled, but can
97 be enabled if the eCos application needs more than two ethernet
100 implements CYGHWR_NET_DRIVERS
103 cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH3 {
104 display "Provide eth3 device"
106 The synthetic target can provide up to four ethernet devices,
107 eth0 to eth3. By default eth3 is always disabled, but can
108 be enabled if the eCos application needs more than three ethernet
111 implements CYGHWR_NET_DRIVERS
114 cdl_component CYGPKG_DEVS_ETH_ECOSYNTH_OPTIONS {
115 display "Build options"
116 active_if { CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH1 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH2 || CYGVAR_DEVS_ETH_ECOSYNTH_ETH3 }
118 compile -library=libextras.a syntheth.c
119 requires CYGINT_ISO_ERRNO_CODES CYGINT_ISO_STRING_MEMFUNCS
121 Package-specific build options including control over compiler
122 flags used only in building this package."
124 cdl_option CYGPKG_DEVS_ETH_ECOSYNTH_CFLAGS_ADD {
125 display "Additional compiler flags"
128 default_value { "-D_KERNEL -D__ECOS" }
130 This option modifies the set of compiler flags for
131 building this package. These flags are used in addition
132 to the set of global flags."
134 cdl_option CYGPKG_DEVS_ETH_ECOSYNTH_CFLAGS_REMOVE {
135 display "Suppressed compiler flags"
140 This option modifies the set of compiler flags for
141 building this package. These flags are removed from
142 the set of global flags if present."