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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [sa11x0/] [cerf/] [current/] [cdl/] [hal_arm_sa11x0_cerf.cdl] - Blame information for rev 856

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

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

powered by: WebSVN 2.1.0

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