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