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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [mn10300/] [asb/] [v2_0/] [cdl/] [hal_mn10300_am33_asb.cdl] - Blame information for rev 637

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_mn10300_am33_asb.cdl
4
#
5
#      AM33-2/ASB 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):      dmoseley
44
# Original data:  nick, bartv
45
# Contributors:
46
# Date:           2000-08-11
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_HAL_MN10300_AM33_ASB {
53
    display  "Panasonic ASB2303 Evaluation Board"
54
    parent        CYGPKG_HAL_MN10300
55
    requires      CYGPKG_HAL_MN10300_AM33
56
    requires      { CYGHWR_HAL_MN10300_AM33_REVISION == 2 }
57
    define_header hal_mn10300_am33_asb.h
58
    include_dir   cyg/hal
59
    description   "
60
           The ASB HAL package should be used when targetting the
61
           actual hardware for the Panasonic ASB2303 Evaluation Board
62
           with the MN103E010 microcontroller."
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
    implements    CYGINT_HAL_MN10300_MEM_REAL_REGION_TOP
69
 
70
    requires CYGSEM_HAL_UNCACHED_FLASH_ACCESS == 1;
71
 
72
    define_proc {
73
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
74
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
75
        puts $::cdl_system_header "#define HAL_PLATFORM_BOARD    \"Panasonic ASB2303\""
76
        puts $::cdl_system_header "#define HAL_PLATFORM_EXTRA    \"\""
77
        puts $::cdl_system_header "#define HAL_PLATFORM_CPU      \"MN103E010 AM33/2.0\""
78
        puts $::cdl_system_header "#define HAL_PLATFORM_SERIAL1_FIRST"
79
    }
80
 
81
    cdl_component CYG_HAL_STARTUP {
82
        display       "Startup type"
83
        flavor        data
84
        legal_values  {"RAM" "ROM"}
85
        default_value {"ROM"}
86
        no_define
87
        define -file system.h CYG_HAL_STARTUP
88
        description   "
89
            Currently only ROM startup type is supported."
90
    }
91
 
92
    cdl_component CYG_HAL_ROM_SLOT {
93
        display       "ROM slot in which residing"
94
        flavor        data
95
        legal_values  {"BootPROM" "SysFlash"}
96
        default_value {"BootPROM"}
97
        no_define
98
        define -file system.h CYG_HAL_ROM_SLOT
99
        description   "
100
            This specifies which ROM slot the program resides in (and is booted
101
            from."
102
    }
103
 
104
    cdl_option CYG_HAL_FULL_RAM {
105
        display       "Use all of RAM for RAM startup"
106
        flavor        bool
107
        default_value 0
108
        description   "
109
            This specifies whether or not RAM startup configurations use all of
110
            RAM. This should be true when using the MEI debugger to load the RAM
111
            startup program when no monitor is installed on the board."
112
    }
113
 
114
    cdl_option CYGHWR_HAL_MN10300_PROCESSOR_OSC_DEFAULT {
115
        display       "Processor clock rate"
116
        calculated    33333333
117
        flavor        data
118
    }
119
 
120
    cdl_option CYGHWR_HAL_MN10300_PLATFORM_VSR_TABLE_BASE {
121
        display       "ASB2303 VSR table base address"
122
        flavor        data
123
        default_value 0x8C000000
124
        description   "
125
            Base address of the VSR table on ASB2303 board."
126
    }
127
 
128
    cdl_component CYGBLD_GLOBAL_OPTIONS {
129
        display "Global build options"
130
        flavor  none
131
        parent  CYGPKG_NONE
132
        description   "
133
            Global build options including control over
134
            compiler flags, linker flags and choice of toolchain."
135
 
136
 
137
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
138
            display "Global command prefix"
139
            flavor  data
140
            no_define
141
            default_value { "mn10300-elf" }
142
            description "
143
                This option specifies the command prefix used when
144
                invoking the build tools."
145
        }
146
 
147
        cdl_option CYGBLD_GLOBAL_CFLAGS {
148
            display "Global compiler flags"
149
            flavor  data
150
            no_define
151
            default_value { "-mam33-2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -Wp,-Wno-paste -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
152
            description   "
153
                This option controls the global compiler flags which
154
                are used to compile all packages by
155
                default. Individual packages may define
156
                options which override these global flags."
157
        }
158
 
159
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
160
            display "Global linker flags"
161
            flavor  data
162
            no_define
163
            default_value { "-mam33-2 -g -nostdlib -Wl,--gc-sections -Wl,-static" }
164
            description   "
165
                This option controls the global linker flags. Individual
166
                packages may define options which override these global flags."
167
        }
168
 
169
        cdl_option CYGBLD_BUILD_GDB_STUBS {
170
            display "Build GDB stub ROM image"
171
            default_value 0
172
            requires { CYG_HAL_STARTUP == "ROM" }
173
            requires CYGSEM_HAL_ROM_MONITOR
174
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
175
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
176
            requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
177
            requires ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
178
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
179
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
180
            no_define
181
            description "
182
                This option enables the building of the GDB stubs for the
183
                board. The common HAL controls takes care of most of the
184
                build process, but the final conversion from ELF image to
185
                binary data is handled by the platform CDL, allowing
186
                relocation of the data if necessary."
187
 
188
            make -priority 320 {
189
                /bin/gdb_module.bin : /bin/gdb_module.img
190
                $(OBJCOPY) -O binary $< $@
191
            }
192
        }
193
    }
194
 
195
    cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
196
        display       "Number of breakpoints supported by the HAL."
197
        flavor        data
198
        default_value 25
199
        description   "
200
            This option determines the number of breakpoints supported by the HAL."
201
    }
202
 
203
    cdl_option CYGSEM_HAL_AM33_PLF_USES_SERIAL0 {
204
        display       "ASB2303 uses AM33 SERIAL0"
205
        flavor        bool
206
        default_value 1
207
        description   "
208
            Enable this option if AM33 SERIAL0 is to be used as a virtual vector
209
            communications channel."
210
    }
211
 
212
    cdl_option CYGSEM_HAL_AM33_PLF_USES_SERIAL1 {
213
        display       "ASB2303 uses AM33 SERIAL1"
214
        flavor        bool
215
        default_value 1
216
        description   "
217
            Enable this option if AM33 SERIAL1 is to be used as a virtual vector
218
            communications channel."
219
    }
220
 
221
    cdl_component CYGHWR_MEMORY_LAYOUT {
222
        display "Memory layout"
223
        flavor data
224
        no_define
225
        calculated { CYG_HAL_STARTUP  == "RAM"      ? \
226
                         CYG_HAL_FULL_RAM ? "mn10300_am33_asb_fullram" : \
227
                                            "mn10300_am33_asb_ram" : \
228
                     CYG_HAL_ROM_SLOT == "BootPROM" ? "mn10300_am33_asb_rom" : \
229
                                                      "mn10300_am33_asb_flash" }
230
 
231
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
232
            display "Memory layout linker script fragment"
233
            flavor data
234
            no_define
235
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
236
            calculated { CYG_HAL_STARTUP == "RAM"       ? \
237
                             CYG_HAL_FULL_RAM ? "" :  \
238
                                                "" : \
239
                         CYG_HAL_ROM_SLOT == "BootPROM" ? "" : \
240
                                                          "" }
241
        }
242
 
243
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
244
            display "Memory layout header file"
245
            flavor data
246
            no_define
247
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
248
            calculated { CYG_HAL_STARTUP == "RAM"       ? \
249
                             CYG_HAL_FULL_RAM ? "" : \
250
                                                "" : \
251
                         CYG_HAL_ROM_SLOT == "BootPROM" ? "" : \
252
                                                          "" }
253
        }
254
    }
255
 
256
    cdl_option CYGSEM_HAL_ROM_MONITOR {
257
        display       "Behave as a ROM monitor"
258
        flavor        bool
259
        default_value 0
260
        parent        CYGPKG_HAL_ROM_MONITOR
261
        requires      { CYG_HAL_STARTUP == "ROM" }
262
        description   "
263
            Enable this option if this program is to be used as a ROM monitor,
264
            i.e. applications will be loaded into RAM on the board, and this
265
            ROM monitor may process exceptions or interrupts generated from the
266
            application. This enables features such as utilizing a separate
267
            interrupt stack when exceptions are generated."
268
    }
269
 
270
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
271
        display       "Work with a ROM monitor"
272
        flavor        booldata
273
        legal_values  { "Generic" "GDB_stubs" }
274
        default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
275
        parent        CYGPKG_HAL_ROM_MONITOR
276
        requires      { CYG_HAL_STARTUP == "RAM" }
277
        description   "
278
            Support can be enabled for three different varieties of ROM monitor.
279
            This support changes various eCos semantics such as the encoding
280
            of diagnostic output, or the overriding of hardware interrupt
281
            vectors.
282
            Firstly there is \"Generic\" support which prevents the HAL
283
            from overriding the hardware vectors that it does not use, to
284
            instead allow an installed ROM monitor to handle them. This is
285
            the most basic support which is likely to be common to most
286
            implementations of ROM monitor.
287
             \"GDB_stubs\" provides support when GDB stubs are included in
288
             the ROM monitor or boot ROM."
289
    }
290
 
291
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
292
        display       "Redboot HAL options"
293
        flavor        none
294
        no_define
295
        parent        CYGPKG_REDBOOT
296
        active_if     CYGPKG_REDBOOT
297
        description   "
298
            This option lists the target's requirements for a valid Redboot
299
            configuration."
300
 
301
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
302
            display       "Build Redboot ROM binary image"
303
            active_if     CYGBLD_BUILD_REDBOOT
304
            default_value 1
305
            no_define
306
            description "This option enables the conversion of the Redboot ELF
307
                         image to a binary image suitable for ROM programming."
308
 
309
            make -priority 325 {
310
                /bin/redboot.bin : /bin/redboot.elf
311
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
312
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
313
                $(OBJCOPY) -O binary $< $@
314
            }
315
        }
316
    }
317
}

powered by: WebSVN 2.1.0

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