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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sparc/] [leon/] [v2_0/] [cdl/] [hal_sparc_leon.cdl] - Blame information for rev 174

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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