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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [sa11x0/] [flexanet/] [current/] [cdl/] [hal_arm_sa11x0_flexanet.cdl] - Blame information for rev 811

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

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

powered by: WebSVN 2.1.0

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