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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [xscale/] [grg/] [current/] [cdl/] [hal_arm_xscale_grg.cdl] - Blame information for rev 868

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

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

powered by: WebSVN 2.1.0

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