1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# httpd.cdl
|
4 |
|
|
#
|
5 |
|
|
# HTTPD configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 2002 Nick Garnett
|
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 |
|
|
## -------------------------------------------
|
37 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
38 |
|
|
# ====================================================================
|
39 |
|
|
######DESCRIPTIONBEGIN####
|
40 |
|
|
#
|
41 |
|
|
# Author(s): nickg
|
42 |
|
|
# Original data: nickg
|
43 |
|
|
# Contributors:
|
44 |
|
|
# Date: 2002-10-15
|
45 |
|
|
#
|
46 |
|
|
#####DESCRIPTIONEND####
|
47 |
|
|
#
|
48 |
|
|
# ====================================================================
|
49 |
|
|
|
50 |
|
|
cdl_package CYGPKG_HTTPD {
|
51 |
|
|
display "HTTP Daemon"
|
52 |
|
|
parent CYGPKG_NET
|
53 |
|
|
doc ref/net-httpd.html
|
54 |
|
|
include_dir cyg/httpd
|
55 |
|
|
requires CYGPKG_IO
|
56 |
|
|
requires { 0 != CYGINT_ISO_STDLIB_STRCONV }
|
57 |
|
|
requires { 0 != CYGINT_ISO_STDIO_FORMATTED_IO }
|
58 |
|
|
requires { 0 != CYGINT_ISO_STRING_STRFUNCS }
|
59 |
|
|
requires { 0 != CYGINT_ISO_ERRNO }
|
60 |
|
|
requires { 0 != CYGINT_ISO_ERRNO_CODES }
|
61 |
|
|
requires CYGPKG_NET
|
62 |
|
|
description "
|
63 |
|
|
HTTP Daemon. This is an embedded HTTP server for use with
|
64 |
|
|
applications in eCos.This server is specifically aimed at
|
65 |
|
|
the remote control and monitoring requirements of embedded
|
66 |
|
|
applications. For this reason the emphasis is on dynamically
|
67 |
|
|
generated content, simple forms handling and a basic CGI
|
68 |
|
|
interface. It is NOT intended to be a general purpose server for
|
69 |
|
|
delivering arbitrary web content."
|
70 |
|
|
|
71 |
|
|
compile httpd.c
|
72 |
|
|
compile -library=libextras.a init.cxx monitor.c
|
73 |
|
|
|
74 |
|
|
cdl_option CYGNUM_HTTPD_SERVER_PORT {
|
75 |
|
|
display "HTTP port"
|
76 |
|
|
flavor data
|
77 |
|
|
default_value 80
|
78 |
|
|
description "HTTP port to which browsers will connect.
|
79 |
|
|
This defaults to the standard port 80, but may
|
80 |
|
|
be changed to any other port number if required."
|
81 |
|
|
}
|
82 |
|
|
|
83 |
|
|
cdl_option CYGDAT_HTTPD_SERVER_ID {
|
84 |
|
|
display "HTTP server ID"
|
85 |
|
|
flavor data
|
86 |
|
|
default_value { "\"eCos/1.0\"" }
|
87 |
|
|
description "This is the string that will be used as the server
|
88 |
|
|
identifier in the HTTP header."
|
89 |
|
|
}
|
90 |
|
|
|
91 |
|
|
cdl_option CYGNUM_HTTPD_THREAD_COUNT {
|
92 |
|
|
display "HTTPD thread count"
|
93 |
|
|
flavor data
|
94 |
|
|
default_value 1
|
95 |
|
|
description "The HTTP server can be configured to use more than
|
96 |
|
|
one thread to service requests. This is useful if you
|
97 |
|
|
expect to serve complex pages, or if you expect to have
|
98 |
|
|
several simultaneous users. For most purposes, just
|
99 |
|
|
one thread is perfectly adequate."
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
cdl_option CYGNUM_HTTPD_THREAD_PRIORITY {
|
103 |
|
|
display "HTTPD thread priority"
|
104 |
|
|
flavor data
|
105 |
|
|
default_value { CYGNUM_KERNEL_SCHED_PRIORITIES/2 }
|
106 |
|
|
legal_values 0 to CYGNUM_KERNEL_SCHED_PRIORITIES
|
107 |
|
|
description "The HTTP server threads can be run at any priority.
|
108 |
|
|
The exact priority depends on the importance of the
|
109 |
|
|
server relative to the rest of the system. The default
|
110 |
|
|
is to put it in the middle of the priority range to provide
|
111 |
|
|
reasonable response without impacting genuine high
|
112 |
|
|
priority threads."
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
cdl_option CYGNUM_HTTPD_THREAD_STACK_SIZE {
|
116 |
|
|
display "HTTPD thread stack size"
|
117 |
|
|
flavor data
|
118 |
|
|
default_value 2048
|
119 |
|
|
description "This is the amount of stack to be allocated for each
|
120 |
|
|
of the HTTPD threads. This quantity is in addition to the values
|
121 |
|
|
of CYGNUM_HAL_STACK_SIZE_MINIMUM and
|
122 |
|
|
CYGNUM_HTTPD_SERVER_BUFFER_SIZE."
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
cdl_option CYGNUM_HTTPD_SERVER_BUFFER_SIZE {
|
126 |
|
|
display "HTTPD server buffer size"
|
127 |
|
|
flavor data
|
128 |
|
|
default_value 256
|
129 |
|
|
description "This defines the size of the buffer used to receive the first
|
130 |
|
|
line of each HTTP request. If you expect to use particularly
|
131 |
|
|
long URLs or have very complex forms, this should be increased."
|
132 |
|
|
}
|
133 |
|
|
|
134 |
|
|
cdl_option CYGNUM_HTTPD_SERVER_DELAY {
|
135 |
|
|
display "HTTPD server startup delay"
|
136 |
|
|
flavor data
|
137 |
|
|
default_value 0
|
138 |
|
|
description "This defines the number of system clock ticks that the HTTP
|
139 |
|
|
server will wait before initializing itself and spawning any
|
140 |
|
|
extra server threads. This is to give the application a chance
|
141 |
|
|
to initialize properly without any interference from the HTTPD."
|
142 |
|
|
}
|
143 |
|
|
|
144 |
|
|
cdl_component CYGPKG_HTTPD_MONITOR {
|
145 |
|
|
display "Simple Web System Monitor"
|
146 |
|
|
default_value 1
|
147 |
|
|
description "This enables a simple system monitor that displays the
|
148 |
|
|
status of an eCos system using a small number of HTML pages."
|
149 |
|
|
|
150 |
|
|
compile -library=libextras.a monitor.c
|
151 |
|
|
}
|
152 |
|
|
|
153 |
|
|
cdl_component CYGPKG_HTTPD_OPTIONS {
|
154 |
|
|
display "HTTP server build options"
|
155 |
|
|
flavor none
|
156 |
|
|
no_define
|
157 |
|
|
|
158 |
|
|
cdl_option CYGPKG_HTTPD_CFLAGS_ADD {
|
159 |
|
|
display "Additional compiler flags"
|
160 |
|
|
flavor data
|
161 |
|
|
no_define
|
162 |
|
|
default_value { "-D__ECOS" }
|
163 |
|
|
description "
|
164 |
|
|
This option modifies the set of compiler flags for
|
165 |
|
|
building the HTTP server package.
|
166 |
|
|
These flags are used in addition
|
167 |
|
|
to the set of global flags."
|
168 |
|
|
}
|
169 |
|
|
|
170 |
|
|
cdl_option CYGPKG_HTTPD_CFLAGS_REMOVE {
|
171 |
|
|
display "Suppressed compiler flags"
|
172 |
|
|
flavor data
|
173 |
|
|
no_define
|
174 |
|
|
default_value { "" }
|
175 |
|
|
description "
|
176 |
|
|
This option modifies the set of compiler flags for
|
177 |
|
|
building the HTTP server package. These flags are removed from
|
178 |
|
|
the set of global flags if present."
|
179 |
|
|
}
|
180 |
|
|
}
|
181 |
|
|
}
|
182 |
|
|
|
183 |
|
|
# EOF httpd.cdl
|