1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_mips_sim.cdl
|
4 |
|
|
#
|
5 |
|
|
# MIPS SIM 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: bartv
|
44 |
|
|
# Contributors:
|
45 |
|
|
# Date: 1999-11-02
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_HAL_MIPS_SIM {
|
52 |
|
|
display "Minimal simulator"
|
53 |
|
|
parent CYGPKG_HAL_MIPS
|
54 |
|
|
define_header hal_mips_sim.h
|
55 |
|
|
include_dir cyg/hal
|
56 |
|
|
description "
|
57 |
|
|
The minimal simulator HAL package is provided for when only
|
58 |
|
|
a simple simulation of the processor architecture is
|
59 |
|
|
desired, as opposed to detailed simulation of any specific
|
60 |
|
|
board. To use this minimal simulator the command
|
61 |
|
|
`target sim --board=jmr3904pal' should be used from inside
|
62 |
|
|
gdb. It is not possible to use any of the eCos device
|
63 |
|
|
drivers when the simulator is running in this mode"
|
64 |
|
|
|
65 |
|
|
compile hal_diag.c platform.S plf_misc.c
|
66 |
|
|
|
67 |
|
|
implements CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED
|
68 |
|
|
|
69 |
|
|
cdl_option CYGBLD_HAL_TARGET_H {
|
70 |
|
|
display "architecture header file"
|
71 |
|
|
flavor data
|
72 |
|
|
no_define
|
73 |
|
|
define -file system.h CYGBLD_HAL_TARGET_H
|
74 |
|
|
calculated { CYGPKG_HAL_MIPS_TX39 ? "" :
|
75 |
|
|
""}
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
define_proc {
|
79 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
80 |
|
|
}
|
81 |
|
|
|
82 |
|
|
cdl_component CYG_HAL_STARTUP {
|
83 |
|
|
display "Startup type"
|
84 |
|
|
flavor data
|
85 |
|
|
legal_values {"RAM"}
|
86 |
|
|
default_value {"RAM"}
|
87 |
|
|
no_define
|
88 |
|
|
define -file system.h CYG_HAL_STARTUP
|
89 |
|
|
description "
|
90 |
|
|
Only supports RAM startup."
|
91 |
|
|
}
|
92 |
|
|
|
93 |
|
|
# Real-time clock/counter specifics
|
94 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
95 |
|
|
display "Real-time clock constants."
|
96 |
|
|
flavor none
|
97 |
|
|
|
98 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
99 |
|
|
display "Real-time clock numerator"
|
100 |
|
|
flavor data
|
101 |
|
|
default_value 1000000000
|
102 |
|
|
}
|
103 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
104 |
|
|
display "Real-time clock denominator"
|
105 |
|
|
flavor data
|
106 |
|
|
default_value 100
|
107 |
|
|
}
|
108 |
|
|
# Isn't a nice way to handle freq requirement!
|
109 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
110 |
|
|
display "Real-time clock period"
|
111 |
|
|
flavor data
|
112 |
|
|
default_value 999
|
113 |
|
|
}
|
114 |
|
|
}
|
115 |
|
|
|
116 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
117 |
|
|
display "Global build options"
|
118 |
|
|
flavor none
|
119 |
|
|
parent CYGPKG_NONE
|
120 |
|
|
description "
|
121 |
|
|
Global build options including control over
|
122 |
|
|
compiler flags, linker flags and choice of toolchain."
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
126 |
|
|
display "Global command prefix"
|
127 |
|
|
flavor data
|
128 |
|
|
no_define
|
129 |
|
|
default_value { CYGPKG_HAL_MIPS_TX39 ? "mips-tx39-elf" : \
|
130 |
|
|
"mips64vr4300-elf" }
|
131 |
|
|
description "
|
132 |
|
|
This option specifies the command prefix used when
|
133 |
|
|
invoking the build tools."
|
134 |
|
|
}
|
135 |
|
|
|
136 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
137 |
|
|
display "Global compiler flags"
|
138 |
|
|
flavor data
|
139 |
|
|
no_define
|
140 |
|
|
default_value { CYGBLD_GLOBAL_WARNFLAGS .
|
141 |
|
|
(CYGPKG_HAL_MIPS_TX39 ? "" : "-mgp32 -EB") .
|
142 |
|
|
" -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions "
|
143 |
|
|
}
|
144 |
|
|
description "
|
145 |
|
|
This option controls the global compiler flags which
|
146 |
|
|
are used to compile all packages by
|
147 |
|
|
default. Individual packages may define
|
148 |
|
|
options which override these global flags."
|
149 |
|
|
}
|
150 |
|
|
|
151 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
152 |
|
|
display "Global linker flags"
|
153 |
|
|
flavor data
|
154 |
|
|
no_define
|
155 |
|
|
default_value { (CYGPKG_HAL_MIPS_TX39 ? "" : "-mgp32 -EB") . " -g -nostdlib -Wl,--gc-sections -Wl,-static" }
|
156 |
|
|
description "
|
157 |
|
|
This option controls the global linker flags. Individual
|
158 |
|
|
packages may define options which override these global flags."
|
159 |
|
|
}
|
160 |
|
|
}
|
161 |
|
|
|
162 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
163 |
|
|
display "Memory layout"
|
164 |
|
|
flavor data
|
165 |
|
|
no_define
|
166 |
|
|
calculated { CYGPKG_HAL_MIPS_TX39 ? "mips_tx39_sim_ram" :
|
167 |
|
|
"mips_vr4300_sim_ram" }
|
168 |
|
|
|
169 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
170 |
|
|
display "Memory layout linker script fragment"
|
171 |
|
|
flavor data
|
172 |
|
|
no_define
|
173 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
174 |
|
|
calculated { CYGPKG_HAL_MIPS_TX39 ? "" :
|
175 |
|
|
"" }
|
176 |
|
|
}
|
177 |
|
|
|
178 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
179 |
|
|
display "Memory layout header file"
|
180 |
|
|
flavor data
|
181 |
|
|
no_define
|
182 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
183 |
|
|
calculated { CYGPKG_HAL_MIPS_TX39 ? "" :
|
184 |
|
|
"" }
|
185 |
|
|
}
|
186 |
|
|
}
|
187 |
|
|
}
|