OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [ppp/] [current/] [cdl/] [ppp.cdl] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ppp.cdl
4
#
5
#      PPP configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 2003, 2004, 2009 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):      nickg
43
# Original data:  nickg
44
# Contributors:
45
# Date:           2002-10-15
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_PPP {
52
    display       "PPP daemon"
53
    parent        CYGPKG_NET
54
    doc           ref/ppp.html
55
    include_dir   cyg/ppp
56
    requires      CYGPKG_IO
57
    requires      CYGPKG_IO_SERIAL
58
 
59
    requires      CYGPKG_IO_SERIAL_DEVICES
60
    requires      CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
61
    requires      CYGPKG_NET
62
    requires      CYGPKG_IO_SERIAL_FLOW_CONTROL
63
    requires      CYGPKG_POSIX_CLOCKS
64
 
65
    description "PPP support for eCos. This package contains the PPP
66
                 daemon functionality, BSD kernel device drivers for
67
                 the network stack, plus other parts of the PPP
68
                 infrastructure."
69
 
70
    compile pppd.c sys-ecos.c ppp_io.c
71
    compile auth.c ccp.c fsm.c magic.c
72
    compile cbcp.c ipcp.c lcp.c
73
 
74
    compile if_ppp.c slcompress.c
75
 
76
    cdl_option CYGNUM_PPP_PPPD_THREAD_PRIORITY {
77
        display "PPP thread priority"
78
        flavor data
79
        default_value { CYGNUM_KERNEL_SCHED_PRIORITIES/2 }
80
        legal_values 0 to CYGNUM_KERNEL_SCHED_PRIORITIES
81
        description "The PPP system contains two threads, One is used for receiving
82
                     data from the link and processing control packets.
83
                     The other is used to transmit data asynchronously to the link
84
                     when it cannot be completed synchronously. The receive thread
85
                     runs at the priority given here, and the transmit thread
86
                     runs at the next lower priority.
87
                     The exact priority needed here depends on the importance of the
88
                     PPP subsystem relative to the rest of the system. The default
89
                     is to put it in the middle of the priority range to provide
90
                     reasonable response without impacting genuine high
91
                     priority threads."
92
    }
93
 
94
    cdl_component CYGPKG_PPP_DEBUG_WARN_ONLY {
95
        display   "PPP protocol debug error only"
96
        default_value 1
97
        description "The runtime debug option enables logging of high
98
                     level debug messages. Too many of these can interfere
99
                     with the PPP device and may result in missed messages.
100
                     This is because these messages are emitted via the diag_printf()
101
                     mechanism, which disables interrupts while it prints.
102
                     By default, therefore, we only report errors and warnings, and not
103
                     all events. Setting this option to zero will enable the logging of
104
                     all events."
105
    }
106
 
107
    cdl_component CYGPKG_PPP_AUTH {
108
        display "PPP authentication defaults"
109
        flavor none
110
        no_define
111
 
112
        cdl_option CYGPKG_PPP_AUTH_DEFAULT_USER {
113
            display "Default user name"
114
            flavor data
115
            default_value {"\"eCos\""}
116
            description "This option gives the default value
117
                         for the user name used to intialize
118
                         the user field in the PPP options."
119
        }
120
 
121
        cdl_option CYGPKG_PPP_AUTH_DEFAULT_PASSWD {
122
            display "Default password"
123
            flavor data
124
            default_value {"\"secret\""}
125
            description "This option gives the default value
126
                         for the password used to intialize
127
                         the passwd field in the PPP options."
128
        }
129
 
130
    }
131
 
132
    cdl_option CYGPKG_PPP_DEFAULT_DIALUP_NUMBER {
133
        display "Default dialup number"
134
        flavor data
135
        default_value { "\"5551234\""}
136
        description "This option provides a default dialup number for use in
137
                     chat scripts. This value is not used anywhere
138
                     in the PPP package, but is provided to complete the information
139
                     needed, alongside the user name and password, for accessing a
140
                     typical dialup server."
141
    }
142
 
143
    cdl_component CYGPKG_PPP_PAP {
144
        display "PAP support"
145
        default_value 1
146
        description "This component enables the inclusion of PAP authentication
147
                     support."
148
        compile upap.c
149
 
150
    }
151
 
152
    cdl_component CYGPKG_PPP_CHAP {
153
        display "CHAP support"
154
        default_value 1
155
        description "This component enables the inclusion of CHAP authentication
156
                     support."
157
 
158
        compile chap.c chap_ms.c
159
 
160
    }
161
 
162
    cdl_component CYGPKG_PPP_COMPRESSION {
163
        display "PPP compression options"
164
        default_value 0
165
        description "This component provides control over
166
                     PPP compression features. WARNING: at
167
                     present there are problems with BSD and ZLIB,
168
                     and the compression code needs to allocate large
169
                     amounts of memory. Hence this is all currently
170
                     disabled."
171
 
172
        cdl_option PPP_BSDCOMP {
173
            display "Enable BSD compression"
174
            default_value 0
175
            compile bsd_comp.c
176
            description "This option enables inclusion of BSD
177
                         compression into the PPP protocol."
178
        }
179
 
180
        cdl_option PPP_DEFLATE {
181
            display "Enable ZLIB compression"
182
            default_value 0
183
            compile ppp_deflate.c zlib.c
184
            description "This option enables inclusion of ZLIB
185
                         compression into the PPP protocol."
186
        }
187
 
188
        cdl_option PPP_INHIBIT_OLD_VJ_COMPRESSION {
189
                        display                 "Inhibit older-style VJ compression"
190
                        flavor                  bool
191
                        default_value   0
192
                        description             "This option prevents the IPCP state machine
193
                                         from negotiating the pre-RFC1332 Van Jacobson
194
                                         compression.  Checking this option could
195
                                         improve IPCP negotiation time at the expense
196
                                         of compatibility."
197
                }
198
    }
199
 
200
    cdl_component CYGPKG_PPP_CHAT {
201
        display "Chat script support"
202
        default_value 1
203
        description "This component enables the inclusion of a
204
                     simple scripting system to bring up PPP connections.
205
                     It implements a subset of the CHAT scripting language."
206
 
207
        compile chat.c
208
 
209
        cdl_option CYGNUM_PPP_CHAT_ABORTS_MAX {
210
            display "Maximum number of ABORT strings"
211
            flavor data
212
            default_value 10
213
            legal_values 5 to 500
214
            description "This option defines the maximum number of ABORT
215
                         strings that the CHAT system will store."
216
        }
217
 
218
        cdl_option CYGNUM_PPP_CHAT_ABORTS_SIZE {
219
            display "Maximum size of each ABORT string"
220
            flavor data
221
            default_value 20
222
            legal_values 10 to 100
223
            description "This option defines the maximum size of each ABORT
224
                         strings that the CHAT system will store."
225
        }
226
 
227
        cdl_option CYGNUM_PPP_CHAT_STRING_LENGTH {
228
            display "Maximum size of CHAT strings"
229
            flavor data
230
            default_value 256
231
            legal_values 32 to 32768
232
            description "This option defines the maximum size of any
233
                         expect or reply strings that the CHAT system
234
                         will be given."
235
        }
236
 
237
    }
238
 
239
    cdl_component CYGPKG_PPP_WORKAROUNDS {
240
        display "PPP workarounds for bugs in other implementations"
241
        flavor  none
242
        no_define
243
 
244
        cdl_option CYGPKT_PPP_WORKAROUNDS_START_FLAG {
245
            display "Add a start flag to every packet"
246
            flavor bool
247
            default_value false
248
            description "This option enables a workaround to add a start
249
                         flag to every packet. The RFC does not require this,
250
                         but some broken PPP implementations seem to need it."
251
        }
252
    }
253
 
254
    cdl_component CYGPKG_PPP_NEGOTIATE_OPTIONS {
255
        display "PPP negotiation options"
256
        flavor none
257
        no_define
258
 
259
        cdl_option CYGOPT_PPP_NS_NEGOTIATE {
260
            display "Name server support"
261
            default_value CYGINT_ISO_DNS
262
            flavor bool
263
            description "
264
                This option allows negotiation of the domain
265
                name server IPCP extensions as defined in
266
                RFC 1877"
267
        }
268
        cdl_option CYGOPT_PPP_DNS_CONFIGURE {
269
        display       "Allow the PPP code to configure the resolver"
270
        default_value 1
271
        description   "
272
            The PPP code can negotiate with the peer what the
273
            recommended DNS server is. This option causes the PPP
274
            code to then configure the DNS resolver with the address
275
            of the discovered server."
276
       }
277
    }
278
 
279
    cdl_component CYGPKG_PPP_OPTIONS {
280
        display "PPP build options"
281
        flavor  none
282
        no_define
283
 
284
        cdl_option CYGPKG_PPP_CFLAGS_ADD {
285
            display "Additional compiler flags"
286
            flavor  data
287
            no_define
288
            default_value { "-D__ECOS" }
289
            description   "
290
                This option modifies the set of compiler flags for
291
                building the PPP package.
292
                These flags are used in addition
293
                to the set of global flags."
294
        }
295
 
296
        cdl_option CYGPKG_PPP_CFLAGS_REMOVE {
297
            display "Suppressed compiler flags"
298
            flavor  data
299
            no_define
300
            default_value { "" }
301
            description   "
302
                This option modifies the set of compiler flags for
303
                building the PPP package. These flags are removed from
304
                the set of global flags if present."
305
        }
306
    }
307
 
308
    cdl_option CYGPKG_PPP_TESTS {
309
        display "PPP tests"
310
        flavor  data
311
        no_define
312
        calculated { "tests/ppp_up "         .
313
                     "tests/ppp_updown "     .
314
                     "tests/chat "           .
315
                     "tests/ppp_auth "       .
316
                     ((CYGPKG_PPP_TESTS_ALL) ?
317
                      "tests/isp "           .
318
                      "tests/tcp_echo "      .
319
                      "tests/nc_test_slave "
320
                     :
321
                      "" )
322
                   }
323
            description   "
324
             This option specifies the set of tests
325
             for the PPP package."
326
        }
327
 
328
    cdl_option CYGPKG_PPP_TESTS_ALL {
329
        display "Include all PPP tests"
330
        default_value 0
331
        description "This option enables the inclusion of extra PPP tests
332
                     that are not normally suitable for automated testing."
333
    }
334
 
335
    cdl_option CYGPKG_PPP_TEST_DEVICE {
336
        display "PPP test device"
337
        flavor data
338
        default_value { "\"/dev/ser0\"" }
339
        description "This is the name of the device used by the PPP tests
340
                     to make the PPP connection."
341
    }
342
 
343
    cdl_component CYGPKG_PPP_TESTS_AUTOMATE {
344
        display "PPP test automation"
345
        default_value 1
346
        description "This component controls the automation of PPP tests using the
347
                     test_server.sh script to control the remote end. Without this
348
                     option, PPP tests are configured to run stand-alone. With this
349
                     option they emit control strings to change the line baud rate
350
                     and announce the test being performed."
351
 
352
        cdl_option CYGDAT_PPP_TEST_BAUD_RATES {
353
            display "PPP test automation baud rates"
354
            flavor data
355
            default_value { "CYGNUM_SERIAL_BAUD_19200," .
356
                            "CYGNUM_SERIAL_BAUD_38400," .
357
                            "CYGNUM_SERIAL_BAUD_57600," .
358
                            "CYGNUM_SERIAL_BAUD_115200"
359
                          }
360
            description "This option gives the set of baud rates for which some
361
                         tests will execute."
362
        }
363
    }
364
        cdl_option CYGBLD_PPP_WINDOWS_TELNET_APP {
365
            display  "Build complete eCos PPP client interfacing to Windows PPP server"
366
            default_value 0
367
            make -priority 320 {
368
                /bin/windows_telnet.elf : $(PREFIX)/lib/target.ld $(PREFIX)/lib/vectors.o $(PREFIX)/lib/libtarget.a $(PREFIX)/lib/libextras.a $(REPOSITORY)/$(PACKAGE)/tests/windows_telnet.c
369
                        @sh -c "mkdir -p $(dir $@)"
370
                        $(CC) -c $(INCLUDE_PATH) $(CFLAGS) -o $(PREFIX)/lib/windows_telnet.o $(REPOSITORY)/$(PACKAGE)/tests/windows_telnet.c
371
                        $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ $(PREFIX)/lib/windows_telnet.o
372
                        $(OBJCOPY) -O binary $@ $(PREFIX)/bin/windows_telnet.bin
373
            }
374
 
375
        }
376
 
377
}
378
 
379
# EOF ppp.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.