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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [kernel/] [current/] [cdl/] [kernel.cdl] - Blame information for rev 851

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

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      kernel.cdl
4
#
5
#      eCos kernel 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, 2010 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):      bartv
43
# Original data:  nickg
44
# Contributors:
45
# Date:           1999-06-13
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_KERNEL {
52
    display       "eCos kernel"
53
    doc           ref/kernel.html
54
    include_dir   cyg/kernel
55
    description   "
56
        This package contains the core functionality of the eCos
57
        kernel. It relies on functionality provided by various HAL
58
        packages and by the eCos infrastructure. In turn the eCos
59
        kernel provides support for other packages such as the device
60
        drivers and the uITRON compatibility layer."
61
    # FIXME: The compile statement should be split up and integrated as
62
    #        part of the components - so files only get comiled when they
63
    #        will actually be used.
64
    compile       common/clock.cxx     common/timer.cxx  common/kapi.cxx   \
65
                  common/thread.cxx    common/except.cxx                   \
66
                  intr/intr.cxx                                            \
67
                  sched/bitmap.cxx     sched/lottery.cxx sched/mlqueue.cxx \
68
                  sched/sched.cxx                                          \
69
                  sync/bin_sem.cxx     sync/cnt_sem.cxx  sync/flag.cxx     \
70
                  sync/cnt_sem2.cxx    sync/mbox.cxx     sync/mutex.cxx    \
71
                  debug/dbg-thread-demux.c
72
 
73
    # ---------------------------------------------------------------------
74
    # The first component within the kernel is related to interrupt
75
    # handling.
76
    cdl_component CYGPKG_KERNEL_INTERRUPTS {
77
        display       "Kernel interrupt handling"
78
        flavor        none
79
        doc           ref/kernel-interrupts.html
80
        description   "
81
            The majority of configuration options related to interrupt
82
            handling are in the HAL packages, since usually the code has
83
            to be platform-specific. There are a number of options
84
            provided within the kernel related to slightly higher-level
85
            concepts, for example Delayed Service Routines."
86
 
87
        script        interrupts.cdl
88
    }
89
 
90
    # ---------------------------------------------------------------------
91
    # Exceptions. Currently there are only two options. The first
92
    # determines whether or not exceptions are enabled at all. The
93
    # second controls whether they apply globally or on a per-thread
94
    # basis. There should probably be more options, but the boundary
95
    # between the HAL and kernel becomes blurred.
96
    cdl_component CYGPKG_KERNEL_EXCEPTIONS {
97
        display       "Exception handling"
98
        requires      CYGPKG_HAL_EXCEPTIONS
99
        default_value 1
100
        doc           ref/kernel-exceptions.html
101
        description   "
102
            In the context of the eCos kernel exceptions are unexpected
103
            events detected by the hardware, for example an attempt to
104
            execute an illegal instruction. There is no relation with
105
            other forms of exception, for example the catch and throw
106
            facilities of languages like C++. It is possible to disable
107
            all support for exceptions and thus save some memory."
108
 
109
        cdl_option CYGSEM_KERNEL_EXCEPTIONS_DECODE {
110
            display       "Decode exception types in kernel"
111
            default_value 0
112
            description   "
113
                On targets where several different types of exception are
114
                possible, for example executing an illegal instruction and
115
                division by zero, it is possible for the kernel to do some
116
                decoding of the exception type and deliver the different
117
                types of exception to different handlers in the application
118
                code. Alternatively the kernel can simply pass all
119
                exceptions directly to application code, leaving the
120
                decoding to be done by the application"
121
        }
122
 
123
        cdl_option CYGSEM_KERNEL_EXCEPTIONS_GLOBAL {
124
            display       "Use global exception handlers"
125
            default_value 1
126
            description   "
127
                In the context of the eCos kernel exceptions are
128
                unexpected events detected by the hardware, for
129
                example an attempt to execute an illegal
130
                instruction. If the kernel is configured
131
                to support exceptions then two implementations are
132
                possible. The default implementation involves a single set
133
                of exception handlers that are in use for the entire
134
                system. The alternative implementation allows different
135
                exception handlers to be specified for each thread."
136
        }
137
    }
138
 
139
    # ---------------------------------------------------------------------
140
    cdl_component CYGPKG_KERNEL_SCHED {
141
        display       "Kernel schedulers"
142
        flavor        none
143
        doc           ref/kernel-overview.html#KERNEL-OVERVIEW-SCHEDULERS
144
        description   "
145
            The eCos kernel provides a choice of schedulers. In addition
146
            there are a number of configuration options to control the
147
            detailed behaviour of these schedulers."
148
 
149
        script        scheduler.cdl
150
    }
151
 
152
    # ---------------------------------------------------------------------
153
    # SMP support
154
 
155
    cdl_component CYGPKG_KERNEL_SMP_SUPPORT {
156
        display       "SMP support"
157
        flavor        bool
158
        requires      CYGPKG_HAL_SMP_SUPPORT
159
        default_value 0
160
    }
161
 
162
    # ---------------------------------------------------------------------
163
    cdl_component CYGPKG_KERNEL_COUNTERS {
164
        display       "Counters and clocks"
165
        flavor        none
166
        doc           ref/kernel-counters.html
167
        description   "
168
            The counter objects provided by the kernel provide an
169
            abstraction of the clock facility that is generally provided.
170
            Application code can associate alarms with counters, where an
171
            alarm is identified by the number of ticks until it triggers,
172
            the action to be taken on triggering, and whether or not the
173
            alarm should be repeated."
174
 
175
        script        counters.cdl
176
    }
177
 
178
    # ---------------------------------------------------------------------
179
    cdl_component CYGPKG_KERNEL_THREADS {
180
        display       "Thread-related options"
181
        flavor        none
182
        description   "
183
            There are a number of configuration options related to the
184
            implementation of threads, for example whether or not the
185
            eCos kernel supports per-thread data."
186
 
187
        script        thread.cdl
188
    }
189
 
190
    # ---------------------------------------------------------------------
191
    cdl_component CYGPKG_KERNEL_SYNCH {
192
        display       "Synchronization primitives"
193
        flavor        none
194
        description   "
195
            The eCos kernel supports a number of different
196
            synchronization primitives such as mutexes, semaphores,
197
            condition variables, and message boxes. There are
198
            configuration options to control the exact behaviour of some
199
            of these synchronization primitives."
200
 
201
        script        synch.cdl
202
    }
203
 
204
    # ---------------------------------------------------------------------
205
    cdl_component CYGPKG_KERNEL_INSTRUMENT {
206
        display       "Kernel instrumentation"
207
        doc           user-guide/kernel-instrumentation.html
208
        flavor        bool
209
        default_value 0
210
        description   "
211
            The current release of the kernel contains an initial version
212
            of instrumentation support. The various parts of the kernel
213
            will invoke instrumentation routines whenever appropriate
214
            events occur, and these will be stored in a circular buffer
215
            for later reference."
216
 
217
        compile       instrmnt/meminst.cxx
218
        script        instrument.cdl
219
    }
220
 
221
    #===================================================================
222
    # Options related to source-level debugging and diagnostics.
223
    cdl_component CYGPKG_KERNEL_DEBUG {
224
        display       "Source-level debugging support"
225
        flavor        none
226
        description   "
227
            If the source level debugger gdb is to be used for debugging
228
            application code then it may be necessary to configure in support
229
            for this in the kernel."
230
 
231
        # NOTE: does this require any other support ?
232
        cdl_option CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT {
233
            display       "Include GDB multi-threading debug support"
234
            requires      CYGVAR_KERNEL_THREADS_LIST
235
            requires      CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
236
            default_value 1
237
            compile       debug/dbg_gdb.cxx
238
            description "
239
            This option enables some extra kernel code which is needed
240
            to support multi-threaded source level debugging."
241
        }
242
    }
243
 
244
    # ---------------------------------------------------------------------
245
    # Kernel API's. The C++ one is the default. A C API is optional.
246
    # Support for other languages is possible.
247
    cdl_component CYGPKG_KERNEL_API {
248
        display       "Kernel APIs"
249
        flavor        none
250
        description   "
251
            The eCos kernel is implemented in C++, so a C++ interface
252
            to the kernel is always available. There is also an optional
253
            C API. Additional API's may be provided in future versions."
254
 
255
        cdl_option CYGFUN_KERNEL_API_C {
256
            display       "Provide C API"
257
            default_value 1
258
            description   "
259
                The eCos kernel is implemented in C++, but there is an
260
                optional C API for use by application code. This C API can be
261
                disabled if the application code does not invoke the kernel
262
                directly, but instead uses higher level code such as the
263
                uITRON compatibility layer."
264
        }
265
    }
266
 
267
    define_proc {
268
        puts $::cdl_header "/***** proc output start *****/"
269
 
270
        # Clients of pkgconf/kernel.h expects system.h to be included.
271
        puts $::cdl_header "#include "
272
        # FIXME: Some clients may rely on hal.h and infra.h being included.
273
        #        This should go away when any such client has been fixed.
274
        puts $::cdl_header "#include "
275
        puts $::cdl_header "#include "
276
 
277
        # Include HAL/Platform specifics
278
        puts $::cdl_header "#include CYGBLD_HAL_PLATFORM_H"
279
        # Fallback defaults (in case HAL didn't define these)
280
        puts $::cdl_header "#ifndef CYGNUM_HAL_RTC_NUMERATOR"
281
        puts $::cdl_header "# define CYGNUM_HAL_RTC_NUMERATOR     1000000000"
282
        puts $::cdl_header "# define CYGNUM_HAL_RTC_DENOMINATOR   100"
283
        puts $::cdl_header "# define CYGNUM_HAL_RTC_PERIOD        9999"
284
        puts $::cdl_header "#endif"
285
 
286
        puts $::cdl_header "/*****  proc output end  *****/"
287
    }
288
 
289
    cdl_component CYGPKG_KERNEL_OPTIONS {
290
        display "Kernel build options"
291
        flavor  none
292
        description   "
293
            Package specific build options including control over
294
            compiler flags used only in building this package,
295
            and details of which tests are built."
296
 
297
 
298
        cdl_option CYGPKG_KERNEL_CFLAGS_ADD {
299
            display "Additional compiler flags"
300
            flavor  data
301
            no_define
302
            default_value { "" }
303
            description   "
304
                This option modifies the set of compiler flags for
305
                building the eCos kernel. These flags are used in addition
306
                to the set of global flags."
307
        }
308
 
309
        cdl_option CYGPKG_KERNEL_CFLAGS_REMOVE {
310
            display "Suppressed compiler flags"
311
            flavor  data
312
            no_define
313
            default_value { "" }
314
            description   "
315
                This option modifies the set of compiler flags for
316
                building the eCos kernel. These flags are removed from
317
                the set of global flags if present."
318
        }
319
 
320
        cdl_option CYGPKG_KERNEL_TESTS {
321
            display "Kernel tests"
322
            flavor  data
323
            no_define
324
            calculated {
325
                "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2"
326
                . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/timeslice2 tests/tm_basic tests/fptest tests/kalarm0" : "")
327
                . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "")
328
                . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "")
329
                . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "")
330
            }
331
            description   "
332
                This option specifies the set of tests for the eCos kernel."
333
        }
334
    }
335
}
336
 
337
# EOF kernel.cdl

powered by: WebSVN 2.1.0

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