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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [mn10300/] [stdeval1/] [v2_0/] [cdl/] [hal_mn10300_am31_stdeval1.cdl] - Blame information for rev 454

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

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

powered by: WebSVN 2.1.0

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