1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# common.cdl
|
4 |
|
|
#
|
5 |
|
|
# HAL common configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005 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): jskov
|
43 |
|
|
# Original data: nickg,jskov,jlarmour
|
44 |
|
|
# Contributors:
|
45 |
|
|
# Date: 1999-07-02
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_option CYGFUN_HAL_COMMON_KERNEL_SUPPORT {
|
52 |
|
|
display "Provide eCos kernel support"
|
53 |
|
|
requires CYGPKG_KERNEL
|
54 |
|
|
default_value CYGPKG_KERNEL
|
55 |
|
|
description "
|
56 |
|
|
The HAL can be configured to either support the full eCos
|
57 |
|
|
kernel, or to support only very simple applications which do
|
58 |
|
|
not require a full kernel. If kernel support is not required
|
59 |
|
|
then some of the startup, exception, and interrupt handling
|
60 |
|
|
code can be eliminated."
|
61 |
|
|
}
|
62 |
|
|
|
63 |
|
|
# NOTE: The requirement for kernel exception support is bogus in that
|
64 |
|
|
# the user can supply a deliver_exception function herself. In that
|
65 |
|
|
# case, however, it is easy to force the kernel option off while leaving
|
66 |
|
|
# this one on. Having the requirement prevents accidental invalid
|
67 |
|
|
# configurations of the kernel.
|
68 |
|
|
cdl_option CYGPKG_HAL_EXCEPTIONS {
|
69 |
|
|
display "HAL exception support"
|
70 |
|
|
requires CYGPKG_KERNEL_EXCEPTIONS
|
71 |
|
|
default_value CYGPKG_KERNEL_EXCEPTIONS
|
72 |
|
|
description "
|
73 |
|
|
When a processor exception occurs, for example an attempt to
|
74 |
|
|
execute an illegal instruction or to perform a divide by
|
75 |
|
|
zero, this exception may be handled in a number of different
|
76 |
|
|
ways. If the target system has gdb support then typically
|
77 |
|
|
the exception will be handled by gdb code. Otherwise if the
|
78 |
|
|
HAL exception support is enabled then the HAL will invoke a
|
79 |
|
|
routine deliver_exception(). Typically this routine will be
|
80 |
|
|
provided by the eCos kernel, but it is possible for
|
81 |
|
|
application code to provide its own implementation. If the
|
82 |
|
|
HAL exception support is not enabled and a processor
|
83 |
|
|
exception occurs then the behaviour of the system is
|
84 |
|
|
undefined."
|
85 |
|
|
}
|
86 |
|
|
|
87 |
|
|
cdl_option CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG {
|
88 |
|
|
display "Stop calling constructors early"
|
89 |
|
|
requires CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS
|
90 |
|
|
default_value 0
|
91 |
|
|
description "
|
92 |
|
|
This option supports environments where some constructors
|
93 |
|
|
must be run in the context of a thread rather than at
|
94 |
|
|
simple system startup time. A boolean flag named
|
95 |
|
|
cyg_hal_stop_constructors is set to 1 when constructors
|
96 |
|
|
should no longer be invoked. It is up to some other
|
97 |
|
|
package to deal with the rest of the constructors.
|
98 |
|
|
In the current version this is only possible with the
|
99 |
|
|
C library."
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
cdl_interface CYGINT_HAL_SUPPORTS_MMU_TABLES {
|
103 |
|
|
display "HAL uses the MMU and allows for CDL manipulation of it's use"
|
104 |
|
|
}
|
105 |
|
|
|
106 |
|
|
cdl_option CYGSEM_HAL_INSTALL_MMU_TABLES {
|
107 |
|
|
display "Install MMU tables."
|
108 |
|
|
default_value { CYG_HAL_STARTUP != "RAM" }
|
109 |
|
|
active_if CYGINT_HAL_SUPPORTS_MMU_TABLES
|
110 |
|
|
description "This option controls whether this application installs
|
111 |
|
|
its own Memory Management Unit (MMU) tables, or relies on the
|
112 |
|
|
existing environment to run."
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
cdl_option CYGSEM_HAL_STATIC_MMU_TABLES {
|
116 |
|
|
display "Use static MMU tables."
|
117 |
|
|
default_value 0
|
118 |
|
|
requires CYGSEM_HAL_INSTALL_MMU_TABLES
|
119 |
|
|
description "This option defines an environment where any Memory
|
120 |
|
|
Management Unit (MMU) tables are constant. Normally used by ROM
|
121 |
|
|
based environments, this provides a way to save RAM usage which
|
122 |
|
|
would otherwise be required for these tables."
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
cdl_component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN {
|
126 |
|
|
display "Route diagnostic output to debug channel"
|
127 |
|
|
default_value { (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS \
|
128 |
|
|
|| CYG_HAL_STARTUP == "RAM") ? 1 : 0}
|
129 |
|
|
active_if !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE
|
130 |
|
|
active_if { CYGPKG_HAL_ARM || CYGPKG_HAL_POWERPC_MPC8xx \
|
131 |
|
|
|| CYGPKG_HAL_V85X_V850 || CYGSEM_HAL_VIRTUAL_VECTOR_DIAG }
|
132 |
|
|
description "
|
133 |
|
|
If not inheriting the console setup from the ROM monitor,
|
134 |
|
|
it is possible to redirect diagnostic output to the debug
|
135 |
|
|
channel by enabling this option. Depending on the debugger
|
136 |
|
|
used it may also be necessary to select a mangler for the
|
137 |
|
|
output to be displayed by the debugger."
|
138 |
|
|
|
139 |
|
|
cdl_option CYGSEM_HAL_DIAG_MANGLER {
|
140 |
|
|
display "Mangler used on diag output"
|
141 |
|
|
flavor data
|
142 |
|
|
legal_values {"GDB" "None"}
|
143 |
|
|
default_value { "GDB" }
|
144 |
|
|
description "
|
145 |
|
|
It is sometimes necessary to mangle (encode) the
|
146 |
|
|
diag ASCII text output in order for it to show up at the
|
147 |
|
|
other end. In particular, GDB may silently ignore raw
|
148 |
|
|
ASCII text."
|
149 |
|
|
}
|
150 |
|
|
}
|
151 |
|
|
|
152 |
|
|
cdl_component CYGBLD_HAL_LINKER_GROUPED_LIBS {
|
153 |
|
|
display "Grouped libraries for linking"
|
154 |
|
|
flavor data
|
155 |
|
|
default_value CYGBLD_HAL_LINKER_GROUPED_LIBS_DEFAULT
|
156 |
|
|
requires { is_substr(CYGBLD_HAL_LINKER_GROUPED_LIBS, "libtarget.a") }
|
157 |
|
|
description "
|
158 |
|
|
This option provides a list of libraries used to satisfy
|
159 |
|
|
linker dependencies, but necessary for building eCos. It is passed
|
160 |
|
|
to a GROUP() directive in the linker script, which is analogous
|
161 |
|
|
to using the \"-(\" aka \"--start-group\", and \"-)\" aka
|
162 |
|
|
\"--end-group\" options on the linker command line.
|
163 |
|
|
|
164 |
|
|
It provides a similar function to adding \"-llibname\" to the
|
165 |
|
|
linker, but with the added feature that each library in the group
|
166 |
|
|
is scanned in turn for unresolved symbols, and this process is
|
167 |
|
|
repeated until there are no more unresolved symbols. This is important
|
168 |
|
|
for system libraries as there are often mutual dependencies.
|
169 |
|
|
|
170 |
|
|
This option should not be used for adding application specific
|
171 |
|
|
libraries. That should be done in the application's own makefile
|
172 |
|
|
or link line.
|
173 |
|
|
|
174 |
|
|
Users wishing to use the GNU Compiler prior to GCC 3.0 will
|
175 |
|
|
need to remove libsupc++.a from this option.
|
176 |
|
|
|
177 |
|
|
Note that libtarget.a is always required to build eCos."
|
178 |
|
|
|
179 |
|
|
cdl_option CYGBLD_HAL_LINKER_GROUPED_LIBS_DEFAULT {
|
180 |
|
|
display "Default setting"
|
181 |
|
|
flavor data
|
182 |
|
|
default_value { "libtarget.a libgcc.a libsupc++.a" }
|
183 |
|
|
description "
|
184 |
|
|
This option is intended to be used by other eCos packages (including
|
185 |
|
|
HAL packages) to provide a different default value for
|
186 |
|
|
CYGBLD_HAL_LINKER_GROUPED_LIBS.
|
187 |
|
|
|
188 |
|
|
This is separated into its own option to continue to
|
189 |
|
|
allow the user to make customisations to the grouped library
|
190 |
|
|
list."
|
191 |
|
|
}
|
192 |
|
|
}
|
193 |
|
|
|
194 |
|
|
# EOF common.cdl
|