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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sparclite/] [sim/] [v2_0/] [cdl/] [hal_sparclite_sim.cdl] - Blame information for rev 454

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

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      hal_sparclite_sim.cdl
4
#
5
#      SPARClite/SIM 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_SPARCLITE_SIM {
53
    display  "SPARClite minimal simulator"
54
    parent        CYGPKG_HAL_SPARCLITE
55
    define_header hal_sparclite_sim.h
56
    include_dir   cyg/hal
57
    description   "
58
           The minimal simulator HAL package is provided for when only a
59
           simple simulation of the processor architecture is desired, as
60
           opposed to detailed simulation of any specific board. To use
61
           this minimal simulator the command `target sim -nfp -sparclite
62
           -dumbio' should be used from inside gdb. It is not possible to
63
           use any of the eCos device drivers when the simulator is running
64
           in this mode"
65
 
66
    compile       hal_priv.c
67
 
68
    define_proc {
69
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
70
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
71
        puts $::cdl_header "#define CYGHWR_HAL_SPARCLITE_HAS_ASR17 /* true for SIM */"
72
    }
73
 
74
    cdl_component CYG_HAL_STARTUP {
75
        display       "Startup type"
76
        flavor        data
77
        legal_values  {"RAM"}
78
        default_value {"RAM"}
79
        no_define
80
        define -file system.h CYG_HAL_STARTUP
81
        description   "
82
           When targetting the SPARClite simulator only the RAM startup type
83
           is usable."
84
    }
85
 
86
    # Real-time clock/counter specifics
87
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
88
        display       "Real-time clock constants."
89
        flavor        none
90
 
91
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
92
            display       "Real-time clock numerator"
93
            flavor        data
94
            calculated    1000000000
95
        }
96
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
97
            display       "Real-time clock denominator"
98
            flavor        data
99
            calculated    100
100
        }
101
        cdl_option CYGNUM_HAL_RTC_PERIOD {
102
            display       "Real-time clock period"
103
            flavor        data
104
            calculated    9999
105
        }
106
    }
107
 
108
    cdl_component CYGBLD_GLOBAL_OPTIONS {
109
        display "Global build options"
110
        flavor  none
111
        description   "
112
            Global build options including control over
113
            compiler flags, linker flags and choice of toolchain."
114
 
115
 
116
        parent  CYGPKG_NONE
117
 
118
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
119
            display "Global command prefix"
120
            flavor  data
121
            no_define
122
            default_value { "sparclite-elf" }
123
            description "
124
                This option specifies the command prefix used when
125
                invoking the build tools."
126
        }
127
 
128
        cdl_option CYGBLD_GLOBAL_CFLAGS {
129
            display "Global compiler flags"
130
            flavor  data
131
            no_define
132
            default_value { "-msoft-float -mcpu=sparclite -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
133
            description   "
134
                This option controls the global compiler flags which
135
                are used to compile all packages by
136
                default. Individual packages may define
137
                options which override these global flags."
138
        }
139
 
140
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
141
            display "Global linker flags"
142
            flavor  data
143
            no_define
144
            default_value { "-msoft-float -mcpu=sparclite -g -nostdlib -Wl,--gc-sections -Wl,-static" }
145
            description   "
146
                This option controls the global linker flags. Individual
147
                packages may define options which override these global flags."
148
        }
149
    }
150
 
151
    cdl_component CYGPKG_HAL_SPARCLITE_SIM_OPTIONS {
152
        display "SPARClite simulator build options"
153
        flavor  none
154
        description   "
155
            Package specific build options including control over
156
            compiler flags used only in building this package,
157
            and details of which tests are built."
158
 
159
 
160
        cdl_option CYGPKG_HAL_SPARCLITE_SIM_CFLAGS_ADD {
161
            display "Additional compiler flags"
162
            flavor  data
163
            no_define
164
            default_value { "" }
165
            description   "
166
                This option modifies the set of compiler flags for
167
                building the SPARClite simulator HAL. These flags are
168
                used in addition to the set of global flags."
169
        }
170
 
171
        cdl_option CYGPKG_HAL_SPARCLITE_SIM_CFLAGS_REMOVE {
172
            display "Suppressed compiler flags"
173
            flavor  data
174
            no_define
175
            default_value { "" }
176
            description   "
177
                This option modifies the set of compiler flags for
178
                building the SPARClite simulator HAL. These flags are
179
                removed from the set of global flags if present."
180
        }
181
    }
182
 
183
    cdl_component CYGHWR_MEMORY_LAYOUT {
184
        display "Memory layout"
185
        flavor data
186
        no_define
187
        calculated { "sparclite_sim_ram" }
188
 
189
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
190
            display "Memory layout linker script fragment"
191
            flavor data
192
            no_define
193
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
194
            calculated { "" }
195
        }
196
 
197
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
198
            display "Memory layout header file"
199
            flavor data
200
            no_define
201
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
202
            calculated { "" }
203
        }
204
    }
205
}

powered by: WebSVN 2.1.0

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