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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [calmrisc32/] [ceb/] [current/] [cdl/] [hal_calm32_ceb.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_calm32_ceb.cdl
4
#
5
#      CalmRISC32 Core Eval Board HAL package 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 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):      msalter
43
# Original data:  bartv
44
# Contributors:
45
# Date:           2001-02-12
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_CALM32_CEB {
52
    display  "CalmRISC32 core evaluation board"
53
    parent        CYGPKG_HAL_CALM32
54
    include_dir   cyg/hal
55
    description   "
56
           The Core eval board HAL package should be used when targetting the
57
           actual hardware."
58
 
59
    compile       hal_diag.c platform.S plf_misc.c ser.c
60
 
61
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
62
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
63
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
64
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_GUARANTEED
65
 
66
    cdl_option CYGBLD_HAL_TARGET_H {
67
        display       "Variant header"
68
        flavor        data
69
        no_define
70
        calculated { "" }
71
        define -file system.h CYGBLD_HAL_TARGET_H
72
        description   "Variant header."
73
 
74
        define_proc {
75
            puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
76
            puts $::cdl_system_header ""
77
            puts $::cdl_system_header "/* Make sure we get the CORE type definitions for HAL_PLATFORM_CPU */"
78
            puts $::cdl_system_header "#include CYGBLD_HAL_TARGET_H"
79
            puts $::cdl_system_header "#define HAL_PLATFORM_BOARD    \"Core Eval Board\""
80
            puts $::cdl_system_header "#define HAL_PLATFORM_EXTRA    \"\""
81
            puts $::cdl_system_header ""
82
        }
83
 
84
    }
85
 
86
    cdl_component CYG_HAL_STARTUP {
87
        display       "Startup type"
88
        flavor        data
89
        legal_values  {"RAM" "ROM"}
90
        default_value {"ROM"}
91
        no_define
92
        define -file system.h CYG_HAL_STARTUP
93
        description   "
94
            Currently only ROM startup type is supported."
95
    }
96
 
97
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
98
        display       "Diagnostic serial port baud rate"
99
        flavor        data
100
        legal_values  57600
101
        default_value 57600
102
        description   "
103
            This option selects the baud rate used for the diagnostic port.
104
            Note: this should match the value chosen for the GDB port if the
105
            diagnostic and GDB port are the same."
106
    }
107
 
108
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
109
        display       "GDB serial port baud rate"
110
        flavor        data
111
        legal_values  57600
112
        default_value 57600
113
        description   "
114
            This option controls the baud rate used for the GDB connection."
115
    }
116
 
117
    cdl_option CYGBLD_BUILD_GDB_STUBS {
118
        display "Build GDB stub ROM image"
119
        default_value 0
120
        parent CYGBLD_GLOBAL_OPTIONS
121
        requires { CYG_HAL_STARTUP == "ROM" }
122
        requires CYGSEM_HAL_ROM_MONITOR
123
        requires CYGBLD_BUILD_COMMON_GDB_STUBS
124
        requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
125
        requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
126
        requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
127
        requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
128
        requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
129
        no_define
130
        description "
131
                This option enables the building of the GDB stubs for the
132
                board. The common HAL controls takes care of most of the
133
                build process, but the final conversion from ELF image to
134
                binary data is handled by the platform CDL, allowing
135
                relocation of the data if necessary."
136
 
137
        make -priority 320 {
138
            /bin/gdb_module.bin : /bin/gdb_module.img
139
            $(OBJCOPY) -O binary $< $@
140
        }
141
    }
142
 
143
 
144
    cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
145
        display       "Number of breakpoints supported by the HAL."
146
        flavor        data
147
        default_value 25
148
        description   "
149
            This option determines the number of breakpoints supported by the HAL."
150
    }
151
 
152
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
153
        display      "Number of communication channels on the board"
154
        flavor       data
155
        calculated   1
156
    }
157
 
158
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
159
        display          "Debug serial port"
160
        flavor data
161
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
162
        default_value    0
163
        description      "
164
           The Atlas board has only one serial port. This option
165
           chooses which port will be used to connect to a host
166
           running GDB."
167
    }
168
 
169
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
170
        display          "Diagnostic serial port"
171
        flavor data
172
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
173
        default_value    0
174
        description      "
175
           The Atlas board has only one serial port.  This option
176
           chooses which port will be used for diagnostic output."
177
     }
178
 
179
    cdl_component CYGHWR_MEMORY_LAYOUT {
180
        display "Memory layout"
181
        flavor data
182
        no_define
183
        calculated { CYG_HAL_STARTUP == "RAM" ? "calm32_ceb_ram" : \
184
                                                "calm32_ceb_rom" }
185
 
186
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
187
            display "Memory layout linker script fragment"
188
            flavor data
189
            no_define
190
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
191
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
192
                                                    "" }
193
        }
194
 
195
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
196
            display "Memory layout header file"
197
            flavor data
198
            no_define
199
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
200
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
201
                                                    "" }
202
        }
203
    }
204
 
205
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
206
        display       "Work with a ROM monitor"
207
        flavor        booldata
208
        legal_values  { "Generic" "GDB_stubs" }
209
        default_value { CYG_HAL_STARTUP == "RAM" ? "Generic" : 0 }
210
        parent        CYGPKG_HAL_ROM_MONITOR
211
        requires      { CYG_HAL_STARTUP == "RAM" }
212
        description   "
213
            Support can be enabled for three different varieties of ROM monitor.
214
            This support changes various eCos semantics such as the encoding
215
            of diagnostic output, or the overriding of hardware interrupt
216
            vectors.
217
            Firstly there is \"Generic\" support which prevents the HAL
218
            from overriding the hardware vectors that it does not use, to
219
            instead allow an installed ROM monitor to handle them. This is
220
            the most basic support which is likely to be common to most
221
            implementations of ROM monitor.
222
            \"CygMon\" provides support for the Cygnus ROM Monitor.
223
            And finally, \"GDB_stubs\" provides support when GDB stubs are
224
            included in the ROM monitor or boot ROM."
225
    }
226
 
227
    cdl_option CYGSEM_HAL_ROM_MONITOR {
228
        display       "Behave as a ROM monitor"
229
        flavor        bool
230
        default_value 1
231
        parent        CYGPKG_HAL_ROM_MONITOR
232
        requires      { CYG_HAL_STARTUP == "ROM" }
233
        description   "
234
            Enable this option if this program is to be used as a ROM monitor,
235
            i.e. applications will be loaded into RAM on the board, and this
236
            ROM monitor may process exceptions or interrupts generated from the
237
            application. This enables features such as utilizing a separate
238
            interrupt stack when exceptions are generated."
239
    }
240
 
241
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
242
        display       "Redboot HAL options"
243
        flavor        none
244
        no_define
245
        parent        CYGPKG_REDBOOT
246
        active_if     CYGPKG_REDBOOT
247
        description   "
248
            This option lists the target's requirements for a valid Redboot
249
            configuration."
250
 
251
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
252
            display       "Build Redboot ROM binary image"
253
            active_if     CYGBLD_BUILD_REDBOOT
254
            default_value 1
255
            no_define
256
            description "This option enables the conversion of the Redboot ELF
257
                         image to a binary image suitable for ROM programming."
258
 
259
            compile -library=libextras.a
260
 
261
            make -priority 325 {
262
                /bin/redboot.srec : /bin/redboot.elf
263
                $(OBJCOPY) --strip-all $< $(@:.srec=.img)
264
                $(OBJCOPY) -O srec $< $@
265
            }
266
        }
267
    }
268
 
269
}

powered by: WebSVN 2.1.0

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