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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [arm/] [sa11x0/] [brutus/] [v2_0/] [cdl/] [hal_arm_sa11x0_brutus.cdl] - Blame information for rev 773

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_arm_sa11x0_brutus.cdl
4
#
5
#      ARM SA1100/Brutus platform 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):      gthomas
44
# Original data:  gthomas
45
# Contributors:
46
# Date:           2000-05-08
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
cdl_package CYGPKG_HAL_ARM_SA11X0_BRUTUS {
52
    display       "ARM SA1100/Brutus evaluation board"
53
    parent        CYGPKG_HAL_ARM_SA11X0
54
    hardware
55
    include_dir   cyg/hal
56
    define_header hal_arm_sa11x0_brutus.h
57
    description   "
58
        This HAL platform package provides generic
59
        support for the Intel StrongARM SA1100 based evalation board,
60
        known as 'brutus'."
61
 
62
    compile       brutus_misc.c
63
 
64
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
65
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
66
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
67
 
68
    implements    CYGHWR_HAL_ARM_SA11X0_UART1
69
    implements    CYGHWR_HAL_ARM_SA11X0_UART3
70
 
71
    define_proc {
72
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
73
        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H  "
74
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
75
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"StrongARM 1100\""
76
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Brutus development system\""
77
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
78
        puts $::cdl_header "#define HAL_ARCH_PROGRAM_NEW_STACK brutus_program_new_stack"
79
    }
80
 
81
    cdl_component CYG_HAL_STARTUP {
82
        display       "Startup type"
83
        flavor        data
84
        default_value {"RAM"}
85
        legal_values  {"RAM" "ROM"}
86
        no_define
87
        define -file system.h CYG_HAL_STARTUP
88
        description   "
89
           When targetting the Brutus eval board it is possible to build
90
           the system for either RAM bootstrap or ROM bootstrap(s). Select
91
           'ram' when building programs to load into RAM using eCos GDB
92
           stubs.  Select 'rom' when building a stand-alone application
93
           which will be put into ROM, or for the special case of
94
           building the eCos GDB stubs themselves."
95
    }
96
 
97
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
98
        display       "Diagnostic serial port baud rate"
99
        flavor        data
100
        legal_values  9600 19200 38400 115200
101
        default_value 38400
102
        description   "
103
            This option selects the baud rate used for the diagnostic port.
104
            Note: this should match the value chosen for the GDB port if the
105
            diagnostic and GDB port are the same."
106
    }
107
 
108
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
109
        display       "GDB serial port baud rate"
110
        flavor        data
111
        legal_values  9600 19200 38400 115200
112
        default_value 38400
113
        description   "
114
            This option selects the baud rate used for the diagnostic port.
115
            Note: this should match the value chosen for the GDB port if the
116
            diagnostic and GDB port are the same."
117
    }
118
 
119
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
120
        display      "Number of communication channels on the board"
121
        flavor       data
122
        calculated   2
123
    }
124
 
125
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
126
        display          "Debug serial port"
127
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
128
        flavor data
129
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
130
        default_value    1
131
        description      "
132
            The brutus board has two serial ports. This option
133
            chooses which port will be used to connect to a host
134
            running GDB."
135
     }
136
 
137
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
138
         display          "Diagnostic serial port"
139
         active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
140
         flavor data
141
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
142
         default_value    1
143
         description      "
144
            The brutus board has two serial ports.  This option
145
            chooses which port will be used for diagnostic output."
146
     }
147
 
148
    cdl_component CYGBLD_GLOBAL_OPTIONS {
149
        display "Global build options"
150
        flavor  none
151
        no_define
152
        description   "
153
            Global build options including control over
154
            compiler flags, linker flags and choice of toolchain."
155
 
156
 
157
        parent  CYGPKG_NONE
158
 
159
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
160
            display "Global command prefix"
161
            flavor  data
162
            no_define
163
            default_value { "arm-elf" }
164
            description "
165
                This option specifies the command prefix used when
166
                invoking the build tools."
167
        }
168
 
169
        cdl_option CYGBLD_GLOBAL_CFLAGS {
170
            display "Global compiler flags"
171
            flavor  data
172
            no_define
173
            default_value { "-mcpu=strongarm1100 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
174
            description   "
175
                This option controls the global compiler flags which are used to
176
                compile all packages by default. Individual packages may define
177
                options which override these global flags."
178
        }
179
 
180
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
181
            display "Global linker flags"
182
            flavor  data
183
            no_define
184
            default_value { "-Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
185
            description   "
186
                This option controls the global linker flags. Individual
187
                packages may define options which override these global flags."
188
        }
189
 
190
        cdl_option CYGBLD_BUILD_GDB_STUBS {
191
            display "Build GDB stub ROM image"
192
            default_value 0
193
            requires { CYG_HAL_STARTUP == "ROM" }
194
            requires CYGSEM_HAL_ROM_MONITOR
195
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
196
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
197
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
198
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
199
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
200
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
201
            no_define
202
            description "
203
                This option enables the building of the GDB stubs for the
204
                board. The common HAL controls takes care of most of the
205
                build process, but the final conversion from ELF image to
206
                binary data is handled by the platform CDL, allowing
207
                relocation of the data if necessary."
208
 
209
            make -priority 320 {
210
                /bin/gdb_module.bin : /bin/gdb_module.img
211
                $(OBJCOPY) -O binary $< $@
212
            }
213
        }
214
    }
215
 
216
 
217
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
218
         display       "Work with a ROM monitor"
219
         flavor        booldata
220
         legal_values  { "Generic" "GDB_stubs" }
221
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
222
         parent        CYGPKG_HAL_ROM_MONITOR
223
         requires      { CYG_HAL_STARTUP == "RAM" }
224
         description   "
225
             Support can be enabled for different varieties of ROM monitor.
226
             This support changes various eCos semantics such as the encoding
227
             of diagnostic output, or the overriding of hardware interrupt
228
             vectors.
229
             Firstly there is \"Generic\" support which prevents the HAL
230
             from overriding the hardware vectors that it does not use, to
231
             instead allow an installed ROM monitor to handle them. This is
232
             the most basic support which is likely to be common to most
233
             implementations of ROM monitor.
234
             \"GDB_stubs\" provides support when GDB stubs are included in
235
             the ROM monitor or boot ROM."
236
    }
237
 
238
    cdl_component CYGPKG_HAL_ARM_SA11X0_BRUTUS_OPTIONS {
239
        display "StrongARM SA1100/BRUTUS build options"
240
        flavor  none
241
        no_define
242
        description   "
243
            Package specific build options including control over
244
            compiler flags used only in building this package,
245
            and details of which tests are built."
246
 
247
 
248
        cdl_option CYGPKG_HAL_ARM_SA11X0_BRUTUS_CFLAGS_ADD {
249
            display "Additional compiler flags"
250
            flavor  data
251
            no_define
252
            default_value { "" }
253
            description   "
254
                This option modifies the set of compiler flags for
255
                building the StrongARM Brutus HAL. These flags are used in addition
256
                to the set of global flags."
257
        }
258
 
259
        cdl_option CYGPKG_HAL_ARM_SA11X0_BRUTUS_CFLAGS_REMOVE {
260
            display "Suppressed compiler flags"
261
            flavor  data
262
            no_define
263
            default_value { "" }
264
            description   "
265
                This option modifies the set of compiler flags for
266
                building the StrongARM Brutus HAL. These flags are removed from
267
                the set of global flags if present."
268
        }
269
 
270
        cdl_option CYGPKG_HAL_ARM_SA11X0_BRUTUS_TESTS {
271
            display "StrongARM SA1100/Brutus tests"
272
            flavor  data
273
            no_define
274
#            calculated { "tests/dram-test" }
275
            calculated { "" }
276
            description   "
277
                This option specifies the set of tests for the StrongARM Brutus HAL."
278
        }
279
    }
280
 
281
    cdl_component CYGHWR_MEMORY_LAYOUT {
282
        display "Memory layout"
283
        flavor data
284
        no_define
285
        calculated { CYG_HAL_STARTUP == "RAM" ? "arm_sa11x0_brutus_ram" : \
286
                                                "arm_sa11x0_brutus_rom" }
287
 
288
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
289
            display "Memory layout linker script fragment"
290
            flavor data
291
            no_define
292
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
293
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
294
                                                    "" }
295
        }
296
 
297
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
298
            display "Memory layout header file"
299
            flavor data
300
            no_define
301
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
302
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
303
                                                    "" }
304
        }
305
    }
306
 
307
    cdl_option CYGSEM_HAL_ROM_MONITOR {
308
        display       "Behave as a ROM monitor"
309
        flavor        bool
310
        default_value 0
311
        parent        CYGPKG_HAL_ROM_MONITOR
312
        requires      { CYG_HAL_STARTUP == "ROM" }
313
        description   "
314
            Enable this option if this program is to be used as a ROM monitor,
315
            i.e. applications will be loaded into RAM on the board, and this
316
            ROM monitor may process exceptions or interrupts generated from the
317
            application. This enables features such as utilizing a separate
318
            interrupt stack when exceptions are generated."
319
    }
320
 
321
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
322
        display       "Redboot HAL options"
323
        flavor        none
324
        no_define
325
        parent        CYGPKG_REDBOOT
326
        active_if     CYGPKG_REDBOOT
327
        description   "
328
            This option lists the target's requirements for a valid Redboot
329
            configuration."
330
 
331
#            compile -library=libextras.a redboot_cmds.c
332
 
333
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
334
            display       "Build Redboot ROM binary image"
335
            active_if     CYGBLD_BUILD_REDBOOT
336
            default_value 1
337
            no_define
338
            description "This option enables the conversion of the Redboot ELF
339
                         image to a binary image suitable for ROM programming."
340
 
341
            make -priority 325 {
342
                /bin/redboot.bin : /bin/redboot.elf
343
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
344
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
345
                $(OBJCOPY) -O binary $< $@
346
            }
347
        }
348
    }
349
}

powered by: WebSVN 2.1.0

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