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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [mn10300/] [stdeval1/] [current/] [cdl/] [hal_mn10300_am31_stdeval1.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_mn10300_am31_stdeval1.cdl
4
#
5
#      AM31/stdeval1 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):      jskov
43
# Original data:  nick, bartv
44
# Contributors:
45
# Date:           1999-11-02
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_MN10300_AM31_STDEVAL1 {
52
    display  "stdeval1 evaluation board"
53
    parent        CYGPKG_HAL_MN10300
54
    requires      CYGPKG_HAL_MN10300_AM31
55
    define_header hal_mn10300_am31_stdeval1.h
56
    include_dir   cyg/hal
57
    description   "
58
           The stdeval1 HAL package should be used when targetting the
59
           actual hardware. The same package can also be used when
60
           running on the full MN10300 simulator, since this provides
61
           an accurate simulation of the full hardware including I/O
62
           devices."
63
 
64
    compile       hal_diag.c plf_stub.c plf_misc.c
65
 
66
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
67
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
68
 
69
    define_proc {
70
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
71
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
72
 
73
        puts $::cdl_system_header "#define CYG_HAL_MN10300_MN103002"
74
        puts $::cdl_system_header "#define CYG_HAL_MN10300_AM31_STDEVAL1"
75
    }
76
 
77
    cdl_component CYG_HAL_STARTUP {
78
        display       "Startup type"
79
        flavor        data
80
        legal_values  {"RAM" "ROM"}
81
        default_value {"RAM"}
82
        no_define
83
        define -file system.h CYG_HAL_STARTUP
84
        description   "
85
           When targetting the stdeval1 board it is possible to build
86
           the system for either RAM bootstrap or ROM bootstrap. The
87
           former generally requires that the board is equipped with
88
           ROMs containing the Cygmon ROM monitor or equivalent
89
           software that allows gdb to download the eCos application
90
           on to the board. The latter typically requires that the
91
           eCos application be blown into EPROMs or equivalent
92
           technology."
93
    }
94
 
95
 
96
    # Real-time clock/counter specifics
97
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
98
        display       "Real-time clock constants."
99
        flavor        none
100
 
101
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
102
            display       "Real-time clock numerator"
103
            flavor        data
104
            default_value 1000000000
105
        }
106
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
107
            display       "Real-time clock denominator"
108
            flavor        data
109
            default_value 100
110
        }
111
        cdl_option CYGNUM_HAL_RTC_PERIOD {
112
            display       "Real-time clock period"
113
            flavor        data
114
            default_value 150000
115
        }
116
    }
117
 
118
    cdl_component CYGBLD_GLOBAL_OPTIONS {
119
        display "Global build options"
120
        flavor  none
121
        parent  CYGPKG_NONE
122
        description   "
123
            Global build options including control over
124
            compiler flags, linker flags and choice of toolchain."
125
 
126
 
127
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
128
            display "Global command prefix"
129
            flavor  data
130
            no_define
131
            default_value { "mn10300-elf" }
132
            description "
133
                This option specifies the command prefix used when
134
                invoking the build tools."
135
        }
136
 
137
        cdl_option CYGBLD_GLOBAL_CFLAGS {
138
            display "Global compiler flags"
139
            flavor  data
140
            no_define
141
            default_value { CYGBLD_GLOBAL_WARNFLAGS . " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
142
            description   "
143
                This option controls the global compiler flags which
144
                are used to compile all packages by
145
                default. Individual packages may define
146
                options which override these global flags."
147
        }
148
 
149
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
150
            display "Global linker flags"
151
            flavor  data
152
            no_define
153
            default_value { "-g -nostdlib -Wl,--gc-sections -Wl,-static" }
154
            description   "
155
                This option controls the global linker flags. Individual
156
                packages may define options which override these global flags."
157
        }
158
 
159
        cdl_option CYGBLD_BUILD_GDB_STUBS {
160
            display "Build GDB stub ROM image"
161
            default_value 0
162
            requires { CYG_HAL_STARTUP == "ROM" }
163
            requires CYGSEM_HAL_ROM_MONITOR
164
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
165
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
166
            requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
167
            requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
168
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
169
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
170
            no_define
171
            description "
172
                This option enables the building of the GDB stubs for the
173
                board. The common HAL controls takes care of most of the
174
                build process, but the final conversion from ELF image to
175
                binary data is handled by the platform CDL, allowing
176
                relocation of the data if necessary."
177
 
178
            make -priority 320 {
179
                /bin/gdb_module.bin : /bin/gdb_module.img
180
                $(OBJCOPY) -O binary $< $@
181
            }
182
        }
183
    }
184
 
185
    cdl_component CYGHWR_MEMORY_LAYOUT {
186
        display "Memory layout"
187
        flavor data
188
        no_define
189
        calculated { CYG_HAL_STARTUP == "RAM" ? "mn10300_am31_stdeval1_ram" : \
190
                                                "mn10300_am31_stdeval1_rom" }
191
 
192
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
193
            display "Memory layout linker script fragment"
194
            flavor data
195
            no_define
196
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
197
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
198
                                                    "" }
199
        }
200
 
201
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
202
            display "Memory layout header file"
203
            flavor data
204
            no_define
205
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
206
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
207
                                                    "" }
208
        }
209
    }
210
 
211
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
212
        display       "Work with a ROM monitor"
213
        flavor        booldata
214
        legal_values  { "Generic" "Sload" "CygMon" "GDB_stubs" }
215
        default_value { CYG_HAL_STARTUP == "RAM" ? "CygMon" : 0 }
216
        parent        CYGPKG_HAL_ROM_MONITOR
217
        requires      { CYG_HAL_STARTUP == "RAM" }
218
        description   "
219
            Support can be enabled for four different varieties of ROM monitor.
220
            This support changes various eCos semantics such as the encoding
221
            of diagnostic output, or the overriding of hardware interrupt
222
            vectors.
223
            Firstly there is \"Generic\" support which prevents the HAL
224
            from overriding the hardware vectors that it does not use, to
225
            instead allow an installed ROM monitor to handle them. This is
226
            the most basic support which is likely to be common to most
227
            implementations of ROM monitor.
228
            Next there is \"SLoad\" support which configures eCos to assume it
229
            will be downloaded into RAM via a ROM monitor using S-records.
230
            \"CygMon\" provides support for the Cygnus ROM Monitor.
231
            And finally, \"GDB_stubs\" provides support when GDB stubs are
232
            included in the ROM monitor or boot ROM."
233
    }
234
 
235
    cdl_option CYGSEM_HAL_ROM_MONITOR {
236
        display       "Behave as a ROM monitor"
237
        flavor        bool
238
        default_value 0
239
        parent        CYGPKG_HAL_ROM_MONITOR
240
        requires      { CYG_HAL_STARTUP == "ROM" }
241
        description   "
242
            Enable this option if this program is to be used as a ROM monitor,
243
            i.e. applications will be loaded into RAM on the board, and this
244
            ROM monitor may process exceptions or interrupts generated from the
245
            application. This enables features such as utilizing a separate
246
            interrupt stack when exceptions are generated."
247
    }
248
}

powered by: WebSVN 2.1.0

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