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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [xscale/] [prpmc1100/] [current/] [cdl/] [hal_arm_xscale_prpmc1100.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_arm_xscale_prpmc1100.cdl
4
#
5
#      Motorola PrPMC1100 Board HAL package
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, 2003, 2009 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):      msalter
43
# Contributors:   msalter
44
# Date:           2003-03-27
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
cdl_package CYGPKG_HAL_ARM_XSCALE_PRPMC1100 {
50
    display       "Motorola PrPMC1100 Processor PMC"
51
    parent        CYGPKG_HAL_ARM_XSCALE_IXP425
52
    implements    CYGINT_HAL_ARM_BIGENDIAN
53
    requires      CYGHWR_HAL_ARM_BIGENDIAN
54
    hardware
55
    include_dir   cyg/hal
56
    define_header hal_arm_xscale_prpmc1100.h
57
    description   "
58
        This HAL platform package provides support for the
59
        Motorola PrPMC1100 for the Intel XScale IXC1100
60
        Control Plane Processor."
61
 
62
    compile       prpmc1100_misc.c prpmc1100_pci.c
63
 
64
    define_proc {
65
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
66
        puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H  "
67
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
68
        puts $::cdl_header "#define CYGBLD_HAL_PLF_INTS_H "
69
        puts $::cdl_header "#define HAL_PLATFORM_CPU    \"XScale\""
70
        puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Motorola PrPMC1100\""
71
        puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
72
        puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE  290"
73
    }
74
 
75
    cdl_component CYG_HAL_STARTUP {
76
        display       "Startup type"
77
        flavor        data
78
        default_value {"RAM"}
79
        legal_values  {"RAM" "ROM"}
80
        no_define
81
        define -file system.h CYG_HAL_STARTUP
82
        description   "
83
           When targeting the PrPMC1100 board it is possible to configure the
84
           system for either RAM bootstrap or ROM bootstrap(s). Select 'ram'
85
           when building programs to load into RAM using onboard debug software
86
           such as RedBoot or eCos GDB stubs."
87
    }
88
 
89
    cdl_component CYGBLD_GLOBAL_OPTIONS {
90
        display "Global build options"
91
        flavor  none
92
        no_define
93
        description   "
94
            Global build options including control over compiler
95
            flags, linker flags and choice of toolchain."
96
 
97
        parent  CYGPKG_NONE
98
 
99
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
100
            display "Global command prefix"
101
            flavor  data
102
            no_define
103
            default_value { "arm-eabi"}
104
            description "
105
                This option specifies the command prefix used when
106
                invoking the build tools."
107
        }
108
 
109
        cdl_option CYGBLD_GLOBAL_CFLAGS {
110
            display "Global compiler flags"
111
            flavor  data
112
            no_define
113
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS . "-mcpu=xscale -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -mapcs-frame" }
114
            description   "
115
                This option controls the global compiler flags which are used to
116
                compile all packages by default. Individual packages may define
117
                options which override these global flags."
118
        }
119
 
120
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
121
            display "Global linker flags"
122
            flavor  data
123
            no_define
124
            default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
125
            description   "
126
                This option controls the global linker flags. Individual
127
                packages may define options which override these global flags."
128
        }
129
 
130
        cdl_option CYGBLD_BUILD_GDB_STUBS {
131
            display "Build GDB stub ROM image"
132
            default_value 0
133
            requires { CYG_HAL_STARTUP == "ROM" }
134
            requires CYGSEM_HAL_ROM_MONITOR
135
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
136
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
137
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
138
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
139
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
140
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
141
            no_define
142
            description "
143
                This option enables the building of the GDB stubs for the
144
                board. The common HAL controls takes care of most of the
145
                build process, but the final conversion from ELF image to
146
                binary data is handled by the platform CDL, allowing
147
                relocation of the data if necessary."
148
 
149
            make -priority 320 {
150
                /bin/gdb_module.bin : /bin/gdb_module.img
151
                $(OBJCOPY) --remove-section=.fixed_vectors -O binary $< $@
152
            }
153
        }
154
    }
155
 
156
    cdl_component CYGPKG_HAL_ARM_XSCALE_PRPMC1100_OPTIONS {
157
        display "Motorola PrPMC1100 build options"
158
        flavor  none
159
        no_define
160
        description   "
161
            Package specific build options including control over
162
            compiler flags used only in building this package,
163
            and details of which tests are built."
164
 
165
        cdl_option CYGPKG_HAL_ARM_XSCALE_PRPMC1100_CFLAGS_ADD {
166
            display "Additional compiler flags"
167
            flavor  data
168
            no_define
169
            default_value { "" }
170
            description   "
171
                This option modifies the set of compiler flags for
172
                building the XScale PRPMC1100 HAL. These flags are used in addition
173
                to the set of global flags."
174
        }
175
 
176
        cdl_option CYGPKG_HAL_ARM_XSCALE_PRPMC1100_CFLAGS_REMOVE {
177
            display "Suppressed compiler flags"
178
            flavor  data
179
            no_define
180
            default_value { "" }
181
            description   "
182
                This option modifies the set of compiler flags for
183
                building the XScale PRPMC1100 HAL. These flags are removed from
184
                the set of global flags if present."
185
        }
186
 
187
        cdl_option CYGNUM_HAL_BREAKPOINT_LIST_SIZE {
188
            display       "Number of breakpoints supported by the HAL."
189
            flavor        data
190
            default_value 32
191
            description   "
192
                This option determines the number of breakpoints supported by the HAL."
193
        }
194
    }
195
 
196
    cdl_option CYGSEM_HAL_IXP425_PLF_USES_UART1 {
197
        display       "PRPMC1100 uses IXP425 high-speed UART"
198
        flavor        bool
199
        default_value 1
200
        description   "
201
            Enable this option if the IXP425 high-speed UART is used
202
            as a virtual vector communications channel."
203
    }
204
 
205
    cdl_option CYGSEM_HAL_IXP425_PLF_USES_UART2 {
206
        display       "PRPMC1100 uses IXP425 console UART"
207
        flavor        bool
208
        default_value 1
209
        description   "
210
            Enable this option if the IXP425 console UART is to be used
211
            as a virtual vector communications channel."
212
    }
213
 
214
    cdl_component CYGHWR_MEMORY_LAYOUT {
215
        display "Memory layout"
216
        flavor data
217
        no_define
218
        calculated { CYG_HAL_STARTUP == "RAM" ? "arm_xscale_prpmc1100_ram" : \
219
                                                "arm_xscale_prpmc1100_rom" }
220
 
221
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
222
            display "Memory layout linker script fragment"
223
            flavor data
224
            no_define
225
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
226
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
227
                                                    "" }
228
        }
229
 
230
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
231
            display "Memory layout header file"
232
            flavor data
233
            no_define
234
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
235
            calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
236
                                                    "" }
237
        }
238
    }
239
 
240
    cdl_option CYGSEM_HAL_ROM_MONITOR {
241
        display       "Behave as a ROM monitor"
242
        flavor        bool
243
        default_value 0
244
        parent        CYGPKG_HAL_ROM_MONITOR
245
        requires      { CYG_HAL_STARTUP == "ROM" }
246
        description   "
247
            Enable this option if this program is to be used as a ROM monitor,
248
            i.e. applications will be loaded into RAM on the board, and this
249
            ROM monitor may process exceptions or interrupts generated from the
250
            application. This enables features such as utilizing a separate
251
            interrupt stack when exceptions are generated."
252
    }
253
 
254
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
255
         display       "Work with a ROM monitor"
256
         flavor        booldata
257
         legal_values  { "Generic" "GDB_stubs" }
258
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
259
         parent        CYGPKG_HAL_ROM_MONITOR
260
         requires      { CYG_HAL_STARTUP == "RAM" }
261
         description   "
262
             Support can be enabled for different varieties of ROM monitor.
263
             This support changes various eCos semantics such as the encoding
264
             of diagnostic output, or the overriding of hardware interrupt
265
             vectors.
266
             Firstly there is \"Generic\" support which prevents the HAL
267
             from overriding the hardware vectors that it does not use, to
268
             instead allow an installed ROM monitor to handle them. This is
269
             the most basic support which is likely to be common to most
270
             implementations of ROM monitor.
271
             \"GDB_stubs\" provides support when GDB stubs are included in
272
             the ROM monitor or boot ROM."
273
     }
274
 
275
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
276
        display       "Redboot HAL options"
277
        flavor        none
278
        no_define
279
        parent        CYGPKG_REDBOOT
280
        active_if     CYGPKG_REDBOOT
281
        description   "
282
            This option lists the target's requirements for a valid Redboot
283
            configuration."
284
 
285
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
286
            display       "Build Redboot ROM binary image"
287
            active_if     CYGBLD_BUILD_REDBOOT
288
            default_value 1
289
            no_define
290
            description "This option enables the conversion of the Redboot ELF
291
                         image to a binary image suitable for ROM programming."
292
 
293
            make -priority 325 {
294
                /bin/redboot.bin : /bin/redboot.elf
295
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
296
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
297
                $(OBJCOPY) -O binary $< $@
298
            }
299
        }
300
    }
301
}

powered by: WebSVN 2.1.0

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