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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [sa11x0/] [ipaq/] [current/] [cdl/] [hal_arm_sa11x0_ipaq.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_arm_sa11x0_ipaq.cdl
4
#
5
#      ARM SA1110/iPAQ 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:   richard.panton@3glab.com
45
# Date:           2001-02-24
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
cdl_package CYGPKG_HAL_ARM_SA11X0_IPAQ {
51
    display       "ARM SA1110/IPAQ"
52
    parent        CYGPKG_HAL_ARM_SA11X0
53
    hardware
54
    include_dir   cyg/hal
55
    define_header hal_arm_sa11x0_ipaq.h
56
    description   "
57
        This HAL platform package provides generic
58
        support for the Compaq iPaq pocket PC."
59
 
60
    compile       ipaq_misc.c lcd_support.c atmel_support.c
61
 
62
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
63
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
64
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
65
    implements    CYGINT_HAL_PLF_IF_INIT
66
 
67
    implements    CYGHWR_HAL_ARM_SA11X0_UART3
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_system_header "#define CYGBLD_HAL_PLF_INTS_H "
74
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"StrongARM 1110\""
75
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Compaq iPAQ Pocket PC\""
76
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
77
        puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE  22"
78
    }
79
 
80
    cdl_option CYGHWR_HAL_ARM_SA11X0_PROCESSOR_CLOCK_OVERRIDE_DEFAULT {
81
        display       "Processor clock rate"
82
        calculated    206400
83
        flavor        data
84
        description   "The iPAQ 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" "WinCE" "Compaq"}
93
        no_define
94
        define -file system.h CYG_HAL_STARTUP
95
        description   "
96
           When targetting the iPaq 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
        cdl_option CYGBLD_HAL_STARTUP_ROM_INIT_DRAM {
104
            display "Initialize DRAM"
105
            active_if     { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "Compaq") }
106
            default_value { (CYG_HAL_STARTUP == "ROM") }
107
            description "
108
                If the ROM startup code is run from something other than
109
                the reset state, it should not be necessary (and even
110
                possibly detrimental) to initialize the DRAM controller.
111
                Turn this option to force those registers to be set up."
112
        }
113
    }
114
 
115
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
116
        display       "Diagnostic 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_DEBUG_CHANNEL_BAUD {
127
        display       "GDB serial port baud rate"
128
        flavor        data
129
        legal_values  9600 19200 38400 115200
130
        default_value 38400
131
        description   "
132
            This option selects the baud rate used for the diagnostic port.
133
            Note: this should match the value chosen for the GDB port if the
134
            diagnostic and GDB port are the same."
135
    }
136
 
137
    cdl_option CYGSEM_HAL_PARROT_BOOT {
138
        display        "Include Flash signature used by WinCE parrot mode"
139
        flavor         bool
140
        active_if      { CYG_HAL_STARTUP == "ROM" }
141
        default_value  1
142
        description    "
143
          Enabling this option will add an additional header to the
144
          executable image making it suitable for booting directly from
145
          the native (WinCE Parrot) environment.  This mode should be
146
          the default for ROM based programs, such as RedBoot."
147
    }
148
 
149
    cdl_option CYGSEM_IPAQ_LCD_COMM {
150
        display        "Support LCD/touchscreen for comminication channel"
151
        active_if      CYGPKG_REDBOOT
152
        flavor         bool
153
        default_value  1
154
        description    "
155
          Enabling this option will use the LCD and touchscreen for a
156
          communications channel, suitable for RedBoot, etc."
157
    }
158
 
159
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
160
        display      "Number of communication channels on the board"
161
        flavor       data
162
        calculated   1+CYGSEM_IPAQ_LCD_COMM
163
    }
164
 
165
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
166
        display          "Debug serial port"
167
        flavor data
168
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
169
        default_value    0
170
        description      "
171
            The ipaq board has only one serial port. This option
172
            chooses which port will be used to connect to a host
173
            running GDB."
174
     }
175
 
176
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
177
         display      "Default console channel."
178
         flavor       data
179
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
180
         calculated   0
181
     }
182
 
183
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
184
         display          "Diagnostic serial port"
185
         flavor data
186
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
187
         default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
188
         description      "
189
            The ipaq board has only one serial port.  This option
190
            chooses which port will be used for diagnostic output."
191
     }
192
 
193
    cdl_component CYGBLD_GLOBAL_OPTIONS {
194
        display "Global build options"
195
        flavor  none
196
        no_define
197
        description   "
198
            Global build options including control over
199
            compiler flags, linker flags and choice of toolchain."
200
 
201
 
202
        parent  CYGPKG_NONE
203
 
204
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
205
            display "Global command prefix"
206
            flavor  data
207
            no_define
208
            default_value { "arm-elf"}
209
            description "
210
                This option specifies the command prefix used when
211
                invoking the build tools."
212
        }
213
 
214
        cdl_option CYGBLD_GLOBAL_CFLAGS {
215
            display "Global compiler flags"
216
            flavor  data
217
            no_define
218
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
219
                            "-mcpu=strongarm1100 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
220
            description   "
221
                This option controls the global compiler flags which are used to
222
                compile all packages by default. Individual packages may define
223
                options which override these global flags."
224
        }
225
 
226
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
227
            display "Global linker flags"
228
            flavor  data
229
            no_define
230
            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=strongarm1100 -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
231
            description   "
232
                This option controls the global linker flags. Individual
233
                packages may define options which override these global flags."
234
        }
235
 
236
        cdl_option CYGBLD_BUILD_GDB_STUBS {
237
            display "Build GDB stub ROM image"
238
            default_value 0
239
            requires { CYG_HAL_STARTUP == "ROM" }
240
            requires CYGSEM_HAL_ROM_MONITOR
241
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
242
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
243
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
244
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
245
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
246
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
247
            no_define
248
            description "
249
                This option enables the building of the GDB stubs for the
250
                board. The common HAL controls takes care of most of the
251
                build process, but the final conversion from ELF image to
252
                binary data is handled by the platform CDL, allowing
253
                relocation of the data if necessary."
254
 
255
            make -priority 320 {
256
                /bin/gdb_module.bin : /bin/gdb_module.img
257
                $(OBJCOPY) --remove-section=.fixed_vectors -O binary $< $@
258
            }
259
        }
260
    }
261
 
262
    cdl_component CYGPKG_HAL_ARM_SA11X0_IPAQ_OPTIONS {
263
        display "StrongARM SA1110/IPAQ build options"
264
        flavor  none
265
        no_define
266
        description   "
267
            Package specific build options including control over
268
            compiler flags used only in building this package,
269
            and details of which tests are built."
270
 
271
 
272
        cdl_option CYGPKG_HAL_ARM_SA11X0_IPAQ_CFLAGS_ADD {
273
            display "Additional compiler flags"
274
            flavor  data
275
            no_define
276
            default_value { "" }
277
            description   "
278
                This option modifies the set of compiler flags for
279
                building the StrongARM IPAQ HAL. These flags are used in addition
280
                to the set of global flags."
281
        }
282
 
283
        cdl_option CYGPKG_HAL_ARM_SA11X0_IPAQ_CFLAGS_REMOVE {
284
            display "Suppressed compiler flags"
285
            flavor  data
286
            no_define
287
            default_value { "" }
288
            description   "
289
                This option modifies the set of compiler flags for
290
                building the StrongARM IPAQ HAL. These flags are removed from
291
                the set of global flags if present."
292
        }
293
 
294
        cdl_option CYGPKG_HAL_ARM_SA11X0_IPAQ_TESTS {
295
            display "StrongARM SA1110/IPAQ tests"
296
            flavor  data
297
            no_define
298
#            calculated { "tests/dram-test" }
299
            calculated { "" }
300
            description   "
301
                This option specifies the set of tests for the StrongARM IPAQ HAL."
302
        }
303
    }
304
 
305
    cdl_component CYGHWR_MEMORY_LAYOUT {
306
        display "Memory layout"
307
        flavor data
308
        no_define
309
        calculated { CYG_HAL_STARTUP == "RAM" ? "arm_sa11x0_ipaq_ram" : \
310
                     CYG_HAL_STARTUP == "Compaq" ? "arm_sa11x0_ipaq_compaq" : \
311
                     CYG_HAL_STARTUP == "WinCE" ? "arm_sa11x0_ipaq_wince" : \
312
                                                "arm_sa11x0_ipaq_rom" }
313
 
314
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
315
            display "Memory layout linker script fragment"
316
            flavor data
317
            no_define
318
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
319
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
320
                         CYG_HAL_STARTUP == "Compaq" ? "" : \
321
                         CYG_HAL_STARTUP == "WinCE" ? "" : \
322
                                                    "" }
323
        }
324
 
325
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
326
            display "Memory layout header file"
327
            flavor data
328
            no_define
329
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
330
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
331
                         CYG_HAL_STARTUP == "Compaq" ? "" : \
332
                         CYG_HAL_STARTUP == "WinCE" ? "" : \
333
                                                    "" }
334
        }
335
    }
336
 
337
    cdl_option CYGSEM_HAL_ROM_MONITOR {
338
        display       "Behave as a ROM monitor"
339
        flavor        bool
340
        default_value 0
341
        parent        CYGPKG_HAL_ROM_MONITOR
342
        requires      { CYG_HAL_STARTUP == "ROM" }
343
        description   "
344
            Enable this option if this program is to be used as a ROM monitor,
345
            i.e. applications will be loaded into RAM on the board, and this
346
            ROM monitor may process exceptions or interrupts generated from the
347
            application. This enables features such as utilizing a separate
348
            interrupt stack when exceptions are generated."
349
    }
350
 
351
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
352
         display       "Work with a ROM monitor"
353
         flavor        booldata
354
         legal_values  { "Generic" "GDB_stubs" }
355
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
356
         parent        CYGPKG_HAL_ROM_MONITOR
357
         requires      { CYG_HAL_STARTUP == "RAM" }
358
         description   "
359
             Support can be enabled for different varieties of ROM monitor.
360
             This support changes various eCos semantics such as the encoding
361
             of diagnostic output, or the overriding of hardware interrupt
362
             vectors.
363
             Firstly there is \"Generic\" support which prevents the HAL
364
             from overriding the hardware vectors that it does not use, to
365
             instead allow an installed ROM monitor to handle them. This is
366
             the most basic support which is likely to be common to most
367
             implementations of ROM monitor.
368
             \"GDB_stubs\" provides support when GDB stubs are included in
369
             the ROM monitor or boot ROM."
370
     }
371
 
372
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
373
        display       "Redboot HAL options"
374
        flavor        none
375
        no_define
376
        parent        CYGPKG_REDBOOT
377
        active_if     CYGPKG_REDBOOT
378
        description   "
379
            This option lists the target's requirements for a valid Redboot
380
            configuration."
381
 
382
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
383
            display       "Build Redboot ROM binary image"
384
            active_if     CYGBLD_BUILD_REDBOOT
385
            default_value 1
386
            no_define
387
            description "This option enables the conversion of the Redboot ELF
388
                         image to a binary image suitable for ROM programming."
389
 
390
            compile -library=libextras.a redboot_cmds.c
391
 
392
            make -priority 325 {
393
                /bin/redboot.bin : /bin/redboot.elf
394
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
395
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
396
                $(OBJCOPY) -O binary $< $@
397
            }
398
        }
399
    }
400
 
401
}

powered by: WebSVN 2.1.0

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