1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_arm_xscale_mpc50.cdl
|
4 |
|
|
#
|
5 |
|
|
# MPC 5.0 platform 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, 2009 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):
|
43 |
|
|
# Date: 2003-01-06
|
44 |
|
|
#
|
45 |
|
|
#####DESCRIPTIONEND####
|
46 |
|
|
#
|
47 |
|
|
# ====================================================================
|
48 |
|
|
|
49 |
|
|
cdl_package CYGPKG_HAL_ARM_XSCALE_MPC50 {
|
50 |
|
|
display "MPC 5.0"
|
51 |
|
|
parent CYGPKG_HAL_ARM_XSCALE_PXA2X0
|
52 |
|
|
hardware
|
53 |
|
|
include_dir cyg/hal
|
54 |
|
|
define_header hal_arm_xscale_mpc50.h
|
55 |
|
|
description "
|
56 |
|
|
This HAL platform package provides support for the MPC 5.0
|
57 |
|
|
printer controller"
|
58 |
|
|
compile mpc50_misc.c
|
59 |
|
|
|
60 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS
|
61 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
62 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
|
63 |
|
|
implements CYGINT_HAL_ARM_ARCH_XSCALE
|
64 |
|
|
implements CYGINT_HAL_ARM_MEM_REAL_REGION_TOP
|
65 |
|
|
implements CYGHWR_HAL_ARM_PXA2X0_FFUART
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
define_proc {
|
69 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H "
|
70 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H "
|
71 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
72 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_CPU \"XScale\""
|
73 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_BOARD \"MPC 5.0\""
|
74 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\""
|
75 |
|
|
puts $::cdl_header "#define HAL_ARCH_PROGRAM_NEW_STACK mpc50_program_new_stack"
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
cdl_component CYG_HAL_STARTUP {
|
79 |
|
|
display "Startup type"
|
80 |
|
|
flavor data
|
81 |
|
|
default_value {"ROM"}
|
82 |
|
|
legal_values {"RAM" "ROM"}
|
83 |
|
|
no_define
|
84 |
|
|
define -file system.h CYG_HAL_STARTUP
|
85 |
|
|
description ""
|
86 |
|
|
}
|
87 |
|
|
|
88 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
|
89 |
|
|
display "Console channel."
|
90 |
|
|
flavor data
|
91 |
|
|
calculated 0
|
92 |
|
|
}
|
93 |
|
|
|
94 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
|
95 |
|
|
display "Number of communication channels on the board"
|
96 |
|
|
flavor data
|
97 |
|
|
calculated 1
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
|
101 |
|
|
display "Debug serial port"
|
102 |
|
|
flavor data
|
103 |
|
|
calculated 0
|
104 |
|
|
}
|
105 |
|
|
|
106 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
|
107 |
|
|
display "Diagnostic serial port"
|
108 |
|
|
flavor data
|
109 |
|
|
calculated 0
|
110 |
|
|
}
|
111 |
|
|
|
112 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
|
113 |
|
|
display "Diagnostic serial port baud rate"
|
114 |
|
|
flavor data
|
115 |
|
|
legal_values 9600 19200 38400 57600 115200
|
116 |
|
|
default_value 115200
|
117 |
|
|
description "
|
118 |
|
|
This option selects the baud rate used for the diagnostic port."
|
119 |
|
|
}
|
120 |
|
|
|
121 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
|
122 |
|
|
display "GDB serial port baud rate"
|
123 |
|
|
flavor data
|
124 |
|
|
calculated CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD
|
125 |
|
|
description "
|
126 |
|
|
This option selects the baud rate used for the GDB port."
|
127 |
|
|
}
|
128 |
|
|
|
129 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
130 |
|
|
display "Global build options"
|
131 |
|
|
flavor none
|
132 |
|
|
no_define
|
133 |
|
|
description "
|
134 |
|
|
Global build options including control over
|
135 |
|
|
compiler flags, linker flags and choice of toolchain."
|
136 |
|
|
|
137 |
|
|
parent CYGPKG_NONE
|
138 |
|
|
|
139 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
140 |
|
|
display "Global command prefix"
|
141 |
|
|
flavor data
|
142 |
|
|
no_define
|
143 |
|
|
default_value { "arm-eabi"}
|
144 |
|
|
description "
|
145 |
|
|
This option specifies the command prefix used when
|
146 |
|
|
invoking the build tools."
|
147 |
|
|
}
|
148 |
|
|
|
149 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
150 |
|
|
display "Global compiler flags"
|
151 |
|
|
flavor data
|
152 |
|
|
no_define
|
153 |
|
|
default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS . "-mcpu=xscale -g -O2 -fno-rtti -fno-exceptions -mapcs-frame" }
|
154 |
|
|
description "
|
155 |
|
|
This option controls the global compiler flags which are used to
|
156 |
|
|
compile all packages by default. Individual packages may define
|
157 |
|
|
options which override these global flags."
|
158 |
|
|
}
|
159 |
|
|
|
160 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
161 |
|
|
display "Global linker flags"
|
162 |
|
|
flavor data
|
163 |
|
|
no_define
|
164 |
|
|
default_value { CYGBLD_ARCH_LDFLAGS . "-mcpu=xscale -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
|
165 |
|
|
description "
|
166 |
|
|
This option controls the global linker flags. Individual
|
167 |
|
|
packages may define options which override these global flags."
|
168 |
|
|
}
|
169 |
|
|
|
170 |
|
|
cdl_component CYGPKG_HAL_ARM_PXA2X0_MPC50_OPTIONS {
|
171 |
|
|
display "Intel PXA250/MPC50 build options"
|
172 |
|
|
flavor none
|
173 |
|
|
no_define
|
174 |
|
|
description "
|
175 |
|
|
Package specific build options including control over
|
176 |
|
|
compiler flags used only in building this package,
|
177 |
|
|
and details of which tests are built."
|
178 |
|
|
|
179 |
|
|
cdl_option CYGPKG_HAL_ARM_PXA2X0_MPC50_CFLAGS_ADD {
|
180 |
|
|
display "Additional compiler flags"
|
181 |
|
|
flavor data
|
182 |
|
|
no_define
|
183 |
|
|
default_value { "" }
|
184 |
|
|
description ""
|
185 |
|
|
}
|
186 |
|
|
|
187 |
|
|
cdl_option CYGPKG_HAL_ARM_PXA2X0_MPC50_CFLAGS_REMOVE {
|
188 |
|
|
display "Suppressed compiler flags"
|
189 |
|
|
flavor data
|
190 |
|
|
no_define
|
191 |
|
|
default_value { "" }
|
192 |
|
|
description ""
|
193 |
|
|
}
|
194 |
|
|
}
|
195 |
|
|
|
196 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
197 |
|
|
display "Memory layout"
|
198 |
|
|
flavor data
|
199 |
|
|
no_define
|
200 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "arm_pxa2x0_mpc50_ram" : \
|
201 |
|
|
"arm_pxa2x0_mpc50_rom" }
|
202 |
|
|
|
203 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
204 |
|
|
display "Memory layout linker script fragment"
|
205 |
|
|
flavor data
|
206 |
|
|
no_define
|
207 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
208 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
209 |
|
|
"" }
|
210 |
|
|
}
|
211 |
|
|
|
212 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
213 |
|
|
display "Memory layout header file"
|
214 |
|
|
flavor data
|
215 |
|
|
no_define
|
216 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
217 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
218 |
|
|
"" }
|
219 |
|
|
}
|
220 |
|
|
}
|
221 |
|
|
|
222 |
|
|
cdl_option CYGSEM_HAL_ROM_MONITOR {
|
223 |
|
|
display "Behave as a ROM monitor"
|
224 |
|
|
flavor bool
|
225 |
|
|
default_value 0
|
226 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
227 |
|
|
requires { CYG_HAL_STARTUP == "ROM" }
|
228 |
|
|
description ""
|
229 |
|
|
}
|
230 |
|
|
|
231 |
|
|
cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
|
232 |
|
|
display "Work with a ROM monitor"
|
233 |
|
|
flavor booldata
|
234 |
|
|
legal_values { "Generic" "GDB_stubs" }
|
235 |
|
|
default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
|
236 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
237 |
|
|
requires { CYG_HAL_STARTUP == "RAM" }
|
238 |
|
|
description ""
|
239 |
|
|
}
|
240 |
|
|
|
241 |
|
|
cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
|
242 |
|
|
display "Redboot HAL options"
|
243 |
|
|
flavor none
|
244 |
|
|
no_define
|
245 |
|
|
parent CYGPKG_REDBOOT
|
246 |
|
|
active_if CYGPKG_REDBOOT
|
247 |
|
|
description "
|
248 |
|
|
This option lists the target's requirements for a valid Redboot
|
249 |
|
|
configuration."
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
cdl_option CYGBLD_BUILD_REDBOOT_BIN {
|
253 |
|
|
display "Build Redboot ROM binary image"
|
254 |
|
|
active_if CYGBLD_BUILD_REDBOOT
|
255 |
|
|
default_value 1
|
256 |
|
|
no_define
|
257 |
|
|
description "This option enables the conversion of the Redboot ELF
|
258 |
|
|
image to a binary image suitable for ROM programming."
|
259 |
|
|
|
260 |
|
|
compile -library=libextras.a
|
261 |
|
|
|
262 |
|
|
make -priority 325 {
|
263 |
|
|
/bin/redboot.bin : /bin/redboot.elf
|
264 |
|
|
$(OBJCOPY) --strip-debug $< $(@:.bin=.img)
|
265 |
|
|
$(OBJCOPY) -O srec $< $(@:.bin=.srec)
|
266 |
|
|
$(OBJCOPY) -O binary $< $@
|
267 |
|
|
}
|
268 |
|
|
}
|
269 |
|
|
}
|
270 |
|
|
}
|
271 |
|
|
}
|
272 |
|
|
|