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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [mips/] [vrc4373/] [v2_0/] [cdl/] [hal_mips_vr4300_vrc4373.cdl] - Blame information for rev 565

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_mips_vr4300_vrc4373.cdl
4
#
5
#      VR4300/VRC4373 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 Red Hat, 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 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
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      nickg
44
# Contributors:
45
# Date:           1999-11-02
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_MIPS_VR4300_VRC4373 {
52
    display  "VRC4373 evaluation board"
53
    parent        CYGPKG_HAL_MIPS
54
    requires      CYGPKG_HAL_MIPS_VR4300
55
    requires      CYGPKG_HAL_MIPS_VR4300_VRC437X
56
    define_header hal_mips_vr4300_vrc4373.h
57
    include_dir   cyg/hal
58
    description   "
59
           The VRC4373 HAL package should be used when targetting the
60
           actual hardware."
61
 
62
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
63
 
64
    define_proc {
65
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
66
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
67
        puts $::cdl_header "#include "
68
    }
69
 
70
    cdl_component CYG_HAL_STARTUP {
71
        display       "Startup type"
72
        flavor        data
73
        legal_values  {"RAM" "ROM" "ROMRAM"}
74
        default_value {"RAM"}
75
        no_define
76
        define -file system.h CYG_HAL_STARTUP
77
        description   "
78
           When targetting the VRC4373 board it is possible to build
79
           the system for either RAM bootstrap or ROM bootstrap."
80
    }
81
 
82
    cdl_option CYGPKG_HAL_MIPS_MSBFIRST {
83
        display    "CPU big-endian"
84
        calculated { 1 }
85
    }
86
 
87
    # Real-time clock/counter specifics
88
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
89
        display       "Real-time clock constants."
90
        flavor        none
91
 
92
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
93
            display       "Real-time clock numerator"
94
            flavor        data
95
            calculated    1000000000
96
        }
97
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
98
            display       "Real-time clock denominator"
99
            flavor        data
100
            calculated    100
101
        }
102
        # Isn't a nice way to handle freq requirement!
103
        cdl_option CYGNUM_HAL_RTC_PERIOD {
104
            display       "Real-time clock period"
105
            flavor        data
106
            calculated    665000
107
        }
108
    }
109
 
110
    cdl_component CYGBLD_GLOBAL_OPTIONS {
111
        display "Global build options"
112
        flavor  none
113
        parent  CYGPKG_NONE
114
        description   "
115
            Global build options including control over
116
            compiler flags, linker flags and choice of toolchain."
117
 
118
 
119
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
120
            display "Global command prefix"
121
            flavor  data
122
            no_define
123
            default_value { "mips64vr4300-elf" }
124
            description "
125
                This option specifies the command prefix used when
126
                invoking the build tools."
127
        }
128
 
129
        cdl_option CYGBLD_GLOBAL_CFLAGS {
130
            display "Global compiler flags"
131
            flavor  data
132
            no_define
133
            default_value { "-mgp32 -EB -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
134
            description   "
135
                This option controls the global compiler flags which
136
                are used to compile all packages by
137
                default. Individual packages may define
138
                options which override these global flags."
139
        }
140
 
141
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
142
            display "Global linker flags"
143
            flavor  data
144
            no_define
145
            default_value { "-mgp32 -EB -g -nostdlib -Wl,--gc-sections -Wl,-static" }
146
            description   "
147
                This option controls the global linker flags. Individual
148
                packages may define options which override these global flags."
149
        }
150
 
151
        cdl_option CYGBLD_BUILD_GDB_STUBS {
152
            display "Build GDB stub ROM image"
153
            default_value 0
154
            requires { CYG_HAL_STARTUP == "ROMRAM" }
155
            requires CYGSEM_HAL_ROM_MONITOR
156
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
157
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
158
            requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
159
            requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
160
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
161
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
162
            no_define
163
            description "
164
                This option enables the building of the GDB stubs for the
165
                board. The common HAL controls takes care of most of the
166
                build process, but the final conversion from ELF image to
167
                binary data is handled by the platform CDL, allowing
168
                relocation of the data if necessary."
169
 
170
            make -priority 320 {
171
                /bin/gdb_module.bin : /bin/gdb_module.img
172
                $(OBJCOPY) -O binary $< $@
173
            }
174
        }
175
    }
176
 
177
    cdl_component CYGHWR_MEMORY_LAYOUT {
178
        display "Memory layout"
179
        flavor data
180
        no_define
181
        calculated { CYG_HAL_STARTUP == "RAM" ? "mips_vr4300_vrc4373_ram" : \
182
                     CYG_HAL_STARTUP == "ROM" ? "mips_vr4300_vrc4373_rom" : \
183
                                                "mips_vr4300_vrc4373_romram" }
184
 
185
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
186
            display "Memory layout linker script fragment"
187
            flavor data
188
            no_define
189
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
190
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
191
                         CYG_HAL_STARTUP == "ROM" ? "" : \
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
                         CYG_HAL_STARTUP == "ROM" ? "" : \
202
                                                    "" }
203
        }
204
    }
205
 
206
   cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
207
        display       "Work with a ROM monitor"
208
        flavor        booldata
209
        legal_values  { "Generic" "GDB_stubs" "PMON" }
210
        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
211
        parent        CYGPKG_HAL_ROM_MONITOR
212
        requires      { CYG_HAL_STARTUP == "RAM" }
213
        description   "
214
            Support can be enabled for three different varieties of ROM monitor.
215
            This support changes various eCos semantics such as the encoding
216
            of diagnostic output, or the overriding of hardware interrupt
217
            vectors.
218
            Firstly there is \"Generic\" support which prevents the HAL
219
            from overriding the hardware vectors that it does not use, to
220
            instead allow an installed ROM monitor to handle them. This is
221
            the most basic support which is likely to be common to most
222
            implementations of ROM monitor.
223
            \"GDB_stubs\" provides support when GDB stubs are included in
224
            the ROM monitor or boot ROM.
225
            And finally, \"PMON\" allows the program to co-operate with
226
            the PMON ROM monitor when fitted to the board."
227
    }
228
 
229
    cdl_option CYGSEM_HAL_ROM_MONITOR {
230
        display       "Behave as a ROM monitor"
231
        flavor        bool
232
        default_value 0
233
        parent        CYGPKG_HAL_ROM_MONITOR
234
        requires      { CYG_HAL_STARTUP == "ROMRAM" || CYG_HAL_STARTUP == "ROM" }
235
        description   "
236
            Enable this option if this program is to be used as a ROM monitor,
237
            i.e. applications will be loaded into RAM on the board, and this
238
            ROM monitor may process exceptions or interrupts generated from the
239
            application. This enables features such as utilizing a separate
240
            interrupt stack when exceptions are generated."
241
    }
242
 
243
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
244
        display       "Diagnostic serial port baud rate"
245
        flavor        data
246
        legal_values  9600 19200 38400 57600 115200
247
        default_value 38400
248
        description   "
249
            This option selects the baud rate used for the diagnostic port.
250
            Note: this should match the value chosen for the GDB port if the
251
            diagnostic and GDB port are the same."
252
    }
253
 
254
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
255
        display       "GDB serial port baud rate"
256
        flavor        data
257
        legal_values  9600 19200 38400 57600 115200
258
        default_value 38400
259
        description   "
260
            This option controls the baud rate used for the GDB connection."
261
    }
262
 
263
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
264
        display      "Number of communication channels on the board"
265
        flavor       data
266
        calculated   2
267
    }
268
 
269
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
270
        display          "Debug serial port"
271
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
272
        flavor data
273
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
274
        default_value    0
275
        description      "
276
           The VRC4373 board has only one serial port. This option
277
           chooses which port will be used to connect to a host
278
           running GDB."
279
    }
280
 
281
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
282
        display          "Diagnostic serial port"
283
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
284
        flavor data
285
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
286
        default_value    0
287
        description      "
288
           The VRC4373 board has only one serial port.  This option
289
           chooses which port will be used for diagnostic output."
290
     }
291
 
292
     cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
293
        display       "Redboot HAL options"
294
        flavor        none
295
        no_define
296
        parent        CYGPKG_REDBOOT
297
        active_if     CYGPKG_REDBOOT
298
        description   "
299
            This option lists the target's requirements for a valid Redboot
300
            configuration."
301
 
302
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
303
            display       "Build Redboot ROM binary image"
304
            active_if     CYGBLD_BUILD_REDBOOT
305
            default_value 1
306
            no_define
307
            description "This option enables the conversion of the Redboot ELF
308
                         image to a binary image suitable for ROM programming."
309
 
310
            compile -library=libextras.a
311
 
312
            make -priority 325 {
313
                /bin/redboot.srec : /bin/redboot.elf
314
                $(OBJCOPY) --strip-all $< $(@:.srec=.img)
315
                $(OBJCOPY) -O binary $< $(@:.srec=.bin)
316
                $(OBJCOPY) -O srec $< $@
317
            }
318
        }
319
    }
320
}

powered by: WebSVN 2.1.0

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