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