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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [fr30/] [skmb91302/] [current/] [cdl/] [hal_fr30_skmb91302.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_fr30_skmb91302.cdl
4
#
5
#   Fujitsu Starterkit MB91302 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, 2007 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
 
41
cdl_package CYGPKG_HAL_FR30_MB91301_SKMB91302 {
42
    display         "Fujitsu Starterkit MB91302 board"
43
    parent          CYGPKG_HAL_FR30
44
    requires        CYGPKG_HAL_FR30_MB91301
45
    define_header   hal_fr30_skmb91302.h
46
    include_dir     cyg/hal
47
 
48
    description   "Fujitsu Starterkit MB91302 board platform HAL
49
                package should be used when targeting the actual hardware for
50
                the Fujitsu Starterkit MB91302 board platform."
51
 
52
    compile     platform.S plf_misc.c ser.c
53
    implements      CYGINT_HAL_DEBUG_GDB_STUBS
54
    implements      CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
55
    implements  CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
56
 
57
    define_proc {
58
        puts $::cdl_header "#include "
59
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H "
60
        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H "
61
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
62
    }
63
 
64
    cdl_component CYG_HAL_STARTUP {
65
        display         "Startup type"
66
        flavor          data
67
        legal_values    {"RAM" "ROM" "ROMRAM"}
68
        default_value   {"ROM"}
69
            no_define
70
            define -file system.h CYG_HAL_STARTUP
71
 
72
        description   "Should the system run from RAM, ROM, or copy itself from ROM
73
                       and RAM and then run in RAM?"
74
    }
75
 
76
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
77
        display      "Number of communication channels on the board"
78
        flavor       data
79
        calculated   2
80
        description      "The MB91302 board has 3 serial ports. Only the first
81
                          2 have mounted 9 pin connectors. The 3rd is not
82
                          connected and should therefore not be used."
83
    }
84
 
85
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
86
         display      "Default console channel."
87
         flavor       data
88
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
89
         calculated   0
90
    }
91
 
92
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
93
        display          "Debug serial port"
94
        flavor data
95
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
96
        default_value    0
97
        description      "This option chooses which port will be used to connect
98
            to a host running GDB."
99
    }
100
 
101
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
102
         display          "Diagnostic serial port"
103
         flavor data
104
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
105
         default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
106
         description      "
107
            This option chooses which port will be used for diagnostic output."
108
    }
109
 
110
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
111
        display       "Diagnostic serial port baud rate"
112
        flavor        data
113
        legal_values  9600 19200 38400 57600 115200
114
        default_value 57600
115
        description   "
116
            This option selects the baud rate used for the diagnostic port.
117
            Note: this should match the value chosen for the GDB port if the
118
            diagnostic and GDB port are the same."
119
    }
120
 
121
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
122
        display       "GDB serial port baud rate"
123
        flavor        data
124
        legal_values  9600 19200 38400 57600 115200
125
        default_value 57600
126
        description   "
127
            This option selects the baud rate used for the diagnostic port.
128
            Note: this should match the value chosen for the GDB port if the
129
            diagnostic and GDB port are the same."
130
    }
131
 
132
    cdl_component CYGBLD_GLOBAL_OPTIONS {
133
        display "Global build options"
134
        flavor  none
135
        parent  CYGPKG_NONE
136
 
137
        description   "Global build options including control over compiler
138
                       flags, linker flags and choice of toolchain."
139
 
140
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
141
            display "Global command prefix"
142
            flavor  data
143
            no_define
144
            default_value { "fr30-unknown-elf" }
145
            description       "This option specifies  the command prefix  used
146
                               when invoking the build tools."
147
 
148
        }
149
 
150
        cdl_option CYGBLD_GLOBAL_CFLAGS {
151
            display "Global compiler flags"
152
            flavor  data
153
            no_define
154
            default_value { CYGBLD_GLOBAL_WARNFLAGS . " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fomit-frame-pointer -fno-use-cxa-atexit" }
155
            description       "This option controls the global compiler  flags
156
                               which are used to compile all packages by default.
157
                               Individual  packages  may  define  options   which
158
                               override these global flags."
159
 
160
        }
161
 
162
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
163
            display "Global linker flags"
164
            flavor  data
165
            no_define
166
            default_value { " -g -nostdlib -Wl,--gc-sections -Wl,-static" }
167
            description       "This option controls  the global linker  flags.
168
                               Individual  packages  may  define  options   which
169
                               override these global flags."
170
 
171
        }
172
 
173
        cdl_option CYGBLD_BUILD_GDB_STUBS {
174
            display "Build GDB stub ROM image"
175
            default_value 0
176
            requires { CYG_HAL_STARTUP == "ROM" }
177
            requires CYGSEM_HAL_ROM_MONITOR
178
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
179
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
180
            requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
181
            requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
182
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
183
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
184
            no_define
185
            description       "This option enables the  building  of  the  GDB
186
                               stubs for the  board.   The  common  HAL  controls
187
                               takes care of most of  the build process, but  the
188
                               final conversion from ELF image to binary data  is
189
                               handled by the  platform CDL, allowing  relocation
190
                               of the data if necessary."
191
 
192
            make -priority 320 {
193
                /bin/gdb_module.srec : /bin/gdb_module.img
194
                $(OBJCOPY) -O srec $< $@
195
            }
196
        }
197
    }
198
 
199
    cdl_component CYGHWR_MEMORY_LAYOUT {
200
        display "Memory layout"
201
        flavor data
202
        no_define
203
        calculated { CYG_HAL_STARTUP == "RAM" ? "mlt_fr30_skmb91302_ram" : \
204
                                                "mlt_fr30_skmb91302_rom" }
205
 
206
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
207
            display "Memory layout linker script fragment"
208
            flavor data
209
            no_define
210
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
211
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
212
                                                    "" }
213
        }
214
 
215
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
216
            display "Memory layout header file"
217
            flavor data
218
            no_define
219
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
220
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
221
                                                    "" }
222
        }
223
    }
224
 
225
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
226
    display       "Work with a ROM monitor"
227
        flavor        bool
228
        default_value { CYG_HAL_STARTUP == "RAM" ? 1 : 0 }
229
        parent        CYGPKG_HAL_ROM_MONITOR
230
        requires      { CYG_HAL_STARTUP == "RAM" }
231
        description   "
232
            Allow coexistence with ROM monitor (CygMon or GDB stubs) by
233
            only initializing interrupt vectors on startup, thus leaving
234
            exception handling to the ROM monitor."
235
    }
236
 
237
    cdl_option CYGSEM_HAL_ROM_MONITOR {
238
        display       "Behave as a ROM monitor"
239
        flavor        bool
240
        default_value 0
241
        parent        CYGPKG_HAL_ROM_MONITOR
242
        requires      { CYG_HAL_STARTUP == "ROM" }
243
 
244
        description    "Enable this option if this program is to be used as
245
                        a ROM monitor, i.e.  applications will be loaded  into
246
                        RAM on the  board, and  this ROM  monitor may  process
247
                        exceptions   or   interrupts   generated   from    the
248
                        application.  This enables features such as  utilizing
249
                        a  separate  interrupt   stack  when  exceptions   are
250
                        generated."
251
 
252
    }
253
 
254
        cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
255
        display       "Redboot HAL options"
256
        flavor        none
257
        no_define
258
        parent        CYGPKG_REDBOOT
259
        active_if     CYGPKG_REDBOOT
260
        description   "
261
            This option lists the target's requirements for a valid Redboot
262
            configuration."
263
 
264
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
265
            display       "Build Redboot ROM binary image"
266
            active_if     CYGBLD_BUILD_REDBOOT
267
            default_value 1
268
            no_define
269
            description "This option enables the conversion of the Redboot ELF
270
                         image to a binary image suitable for ROM programming."
271
 
272
            make -priority 325 {
273
                /bin/redboot.srec : /bin/redboot.elf
274
                $(OBJCOPY) --strip-all $< $(@:.srec=.img)
275
                $(OBJCOPY) -O srec $< $@
276
            }
277
        }
278
    }
279
 
280
}

powered by: WebSVN 2.1.0

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