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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sparc/] [erc32/] [current/] [cdl/] [hal_sparc_erc32.cdl] - Blame information for rev 843

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

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_sparc_erc32.cdl
4
#
5
#      SPARC ERC32 target 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):      jskov
43
# Original data:  hmt
44
# Contributors:
45
# Date:           2000-02-10
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_SPARC_ERC32 {
52
    display  "ERC32 processor"
53
    parent        CYGPKG_HAL_SPARC
54
    define_header hal_sparc_erc32.h
55
    include_dir   cyg/hal
56
    description   "
57
           The ERC32 HAL package is provided for both simulator (TSIM)
58
           and real hardware use"
59
 
60
    compile       hal_priv.c
61
 
62
    define_proc {
63
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
64
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
65
        puts $::cdl_header "#define CYGHWR_HAL_SPARC_MULTIPLE_VECTOR_TRAPPING /* true for ERC32 */"
66
        puts $::cdl_header "#define HAL_IDLE_THREAD_ACTION hal_idle_thread_action /* true for ERC32 */"
67
    }
68
 
69
    cdl_component CYG_HAL_STARTUP {
70
        display       "Startup type"
71
        flavor        data
72
        legal_values  {"RAM"}
73
        default_value {"RAM"}
74
        no_define
75
        define -file system.h CYG_HAL_STARTUP
76
        description   "
77
           When targetting the ERC32 processor only the RAM startup type
78
           is usable."
79
    }
80
 
81
    # Real-time clock/counter specifics
82
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
83
        display       "Real-time clock constants."
84
        flavor        none
85
 
86
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
87
            display       "Real-time clock numerator"
88
            flavor        data
89
            default_value 1000000000
90
        }
91
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
92
            display       "Real-time clock denominator"
93
            flavor        data
94
            default_value 100
95
        }
96
        cdl_option CYGNUM_HAL_RTC_PERIOD {
97
            display       "Real-time clock period"
98
            flavor        data
99
            default_value 9999
100
        }
101
    }
102
 
103
    cdl_component CYGBLD_GLOBAL_OPTIONS {
104
        display "Global build options"
105
        flavor  none
106
        description   "
107
            Global build options including control over
108
            compiler flags, linker flags and choice of toolchain."
109
 
110
 
111
        parent  CYGPKG_NONE
112
 
113
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
114
            display "Global command prefix"
115
            flavor  data
116
            no_define
117
            default_value { "sparc-rtems" }
118
            description "
119
                This option specifies the command prefix used when
120
                invoking the build tools."
121
        }
122
 
123
        cdl_option CYGBLD_GLOBAL_CFLAGS {
124
            display "Global compiler flags"
125
            flavor  data
126
            no_define
127
            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
128
            description   "
129
                This option controls the global compiler flags which
130
                are used to compile all packages by
131
                default. Individual packages may define
132
                options which override these global flags."
133
        }
134
 
135
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
136
            display "Global linker flags"
137
            flavor  data
138
            no_define
139
            default_value { "-msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static" }
140
            description   "
141
                This option controls the global linker flags. Individual
142
                packages may define options which override these global flags."
143
        }
144
    }
145
 
146
    cdl_component CYGPKG_HAL_SPARC_ERC32_OPTIONS {
147
        display "ERC32 processor build options"
148
        flavor  none
149
        description   "
150
            Package specific build options including control over
151
            compiler flags used only in building this package,
152
            and details of which tests are built."
153
 
154
 
155
        cdl_option CYGPKG_HAL_SPARC_ERC32_CFLAGS_ADD {
156
            display "Additional compiler flags"
157
            flavor  data
158
            no_define
159
            default_value { "" }
160
            description   "
161
                This option modifies the set of compiler flags for
162
                building the ERC32 processor HAL. These flags are
163
                used in addition to the set of global flags."
164
        }
165
 
166
        cdl_option CYGPKG_HAL_SPARC_ERC32_CFLAGS_REMOVE {
167
            display "Suppressed compiler flags"
168
            flavor  data
169
            no_define
170
            default_value { "" }
171
            description   "
172
                This option modifies the set of compiler flags for
173
                building the ERC32 processor HAL. These flags are
174
                removed from the set of global flags if present."
175
        }
176
    }
177
 
178
    cdl_component CYGHWR_MEMORY_LAYOUT {
179
        display "Memory layout"
180
        flavor data
181
        no_define
182
        calculated { "sparc_erc32_ram" }
183
 
184
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
185
            display "Memory layout linker script fragment"
186
            flavor data
187
            no_define
188
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
189
            calculated { "" }
190
        }
191
 
192
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
193
            display "Memory layout header file"
194
            flavor data
195
            no_define
196
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
197
            calculated { "" }
198
        }
199
    }
200
}

powered by: WebSVN 2.1.0

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