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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sparclite/] [sim/] [current/] [cdl/] [hal_sparclite_sim.cdl] - Blame information for rev 856

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

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

powered by: WebSVN 2.1.0

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