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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [arm/] [sa11x0/] [ipaq/] [v2_0/] [cdl/] [hal_arm_sa11x0_ipaq.cdl] - Blame information for rev 379

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
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 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:   richard.panton@3glab.com
46
# Date:           2001-02-24
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
cdl_package CYGPKG_HAL_ARM_SA11X0_IPAQ {
52
    display       "ARM SA1110/IPAQ"
53
    parent        CYGPKG_HAL_ARM_SA11X0
54
    hardware
55
    include_dir   cyg/hal
56
    define_header hal_arm_sa11x0_ipaq.h
57
    description   "
58
        This HAL platform package provides generic
59
        support for the Compaq iPaq pocket PC."
60
 
61
    compile       ipaq_misc.c lcd_support.c atmel_support.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
    implements    CYGINT_HAL_PLF_IF_INIT
67
 
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_system_header "#define CYGBLD_HAL_PLF_INTS_H "
75
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"StrongARM 1110\""
76
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Compaq iPAQ Pocket PC\""
77
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
78
        puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE  22"
79
    }
80
 
81
    cdl_option CYGHWR_HAL_ARM_SA11X0_PROCESSOR_CLOCK_OVERRIDE_DEFAULT {
82
        display       "Processor clock rate"
83
        calculated    206400
84
        flavor        data
85
        description   "The iPAQ is optimal at this speed.  Caution - selecting
86
           higher speeds may be unreliable."
87
    }
88
 
89
    cdl_component CYG_HAL_STARTUP {
90
        display       "Startup type"
91
        flavor        data
92
        default_value {"RAM"}
93
        legal_values  {"RAM" "ROM" "WinCE" "Compaq"}
94
        no_define
95
        define -file system.h CYG_HAL_STARTUP
96
        description   "
97
           When targetting the iPaq board it is possible to build
98
           the system for either RAM bootstrap or ROM bootstrap(s). Select
99
           'ram' when building programs to load into RAM using eCos GDB
100
           stubs.  Select 'rom' when building a stand-alone application
101
           which will be put into ROM, or for the special case of
102
           building the eCos GDB stubs themselves."
103
 
104
        cdl_option CYGBLD_HAL_STARTUP_ROM_INIT_DRAM {
105
            display "Initialize DRAM"
106
            active_if     { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "Compaq") }
107
            default_value { (CYG_HAL_STARTUP == "ROM") }
108
            description "
109
                If the ROM startup code is run from something other than
110
                the reset state, it should not be necessary (and even
111
                possibly detrimental) to initialize the DRAM controller.
112
                Turn this option to force those registers to be set up."
113
        }
114
    }
115
 
116
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
117
        display       "Diagnostic serial port baud rate"
118
        flavor        data
119
        legal_values  9600 19200 38400 115200
120
        default_value 38400
121
        description   "
122
            This option selects the baud rate used for the diagnostic port.
123
            Note: this should match the value chosen for the GDB port if the
124
            diagnostic and GDB port are the same."
125
    }
126
 
127
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
128
        display       "GDB serial port baud rate"
129
        flavor        data
130
        legal_values  9600 19200 38400 115200
131
        default_value 38400
132
        description   "
133
            This option selects the baud rate used for the diagnostic port.
134
            Note: this should match the value chosen for the GDB port if the
135
            diagnostic and GDB port are the same."
136
    }
137
 
138
    cdl_option CYGSEM_HAL_PARROT_BOOT {
139
        display        "Include Flash signature used by WinCE parrot mode"
140
        flavor         bool
141
        active_if      { CYG_HAL_STARTUP == "ROM" }
142
        default_value  1
143
        description    "
144
          Enabling this option will add an additional header to the
145
          executable image making it suitable for booting directly from
146
          the native (WinCE Parrot) environment.  This mode should be
147
          the default for ROM based programs, such as RedBoot."
148
    }
149
 
150
    cdl_option CYGSEM_IPAQ_LCD_COMM {
151
        display        "Support LCD/touchscreen for comminication channel"
152
        active_if      CYGPKG_REDBOOT
153
        flavor         bool
154
        default_value  1
155
        description    "
156
          Enabling this option will use the LCD and touchscreen for a
157
          communications channel, suitable for RedBoot, etc."
158
    }
159
 
160
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
161
        display      "Number of communication channels on the board"
162
        flavor       data
163
        calculated   1+CYGSEM_IPAQ_LCD_COMM
164
    }
165
 
166
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
167
        display          "Debug serial port"
168
        flavor data
169
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
170
        default_value    0
171
        description      "
172
            The ipaq board has only one serial port. This option
173
            chooses which port will be used to connect to a host
174
            running GDB."
175
     }
176
 
177
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
178
         display      "Default console channel."
179
         flavor       data
180
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
181
         calculated   0
182
     }
183
 
184
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
185
         display          "Diagnostic serial port"
186
         flavor data
187
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
188
         default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
189
         description      "
190
            The ipaq board has only one serial port.  This option
191
            chooses which port will be used for diagnostic output."
192
     }
193
 
194
    cdl_component CYGBLD_GLOBAL_OPTIONS {
195
        display "Global build options"
196
        flavor  none
197
        no_define
198
        description   "
199
            Global build options including control over
200
            compiler flags, linker flags and choice of toolchain."
201
 
202
 
203
        parent  CYGPKG_NONE
204
 
205
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
206
            display "Global command prefix"
207
            flavor  data
208
            no_define
209
            default_value { "arm-elf" }
210
            description "
211
                This option specifies the command prefix used when
212
                invoking the build tools."
213
        }
214
 
215
        cdl_option CYGBLD_GLOBAL_CFLAGS {
216
            display "Global compiler flags"
217
            flavor  data
218
            no_define
219
            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" }
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 { "-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.