1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_arm_arm9_excalibur.cdl
|
4 |
|
|
#
|
5 |
|
|
# Altera ARM9/EXCALIBUR 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): jskov
|
44 |
|
|
# Contributors: jskov, gthomas
|
45 |
|
|
# Date: 2001-08-06
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
cdl_package CYGPKG_HAL_ARM_ARM9_EXCALIBUR {
|
51 |
|
|
display "Altera ARM9/Excalibur board"
|
52 |
|
|
parent CYGPKG_HAL_ARM_ARM9
|
53 |
|
|
requires CYGPKG_HAL_ARM_ARM9_ARM922T
|
54 |
|
|
hardware
|
55 |
|
|
include_dir cyg/hal
|
56 |
|
|
define_header hal_arm_arm9_excalibur.h
|
57 |
|
|
description "
|
58 |
|
|
This HAL platform package provides generic
|
59 |
|
|
support for the Altera ARM9 based board, known as 'excalibur'."
|
60 |
|
|
|
61 |
|
|
compile excalibur_misc.c hal_diag.c
|
62 |
|
|
|
63 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS
|
64 |
|
|
implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
|
65 |
|
|
implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
|
66 |
|
|
|
67 |
|
|
define_proc {
|
68 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H "
|
69 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H "
|
70 |
|
|
puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
|
71 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_CPU \"ARM9\""
|
72 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_BOARD \"EXCALIBUR system\""
|
73 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\""
|
74 |
|
|
puts $::cdl_header "#define HAL_ARCH_PROGRAM_NEW_STACK excalibur_program_new_stack"
|
75 |
|
|
|
76 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE 62"
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
cdl_component CYG_HAL_STARTUP {
|
80 |
|
|
display "Startup type"
|
81 |
|
|
flavor data
|
82 |
|
|
default_value {"RAM"}
|
83 |
|
|
legal_values {"RAM" "ROM" "ROMRAM" "REDBOOT" }
|
84 |
|
|
no_define
|
85 |
|
|
define -file system.h CYG_HAL_STARTUP
|
86 |
|
|
description "
|
87 |
|
|
When targetting the Excalibur eval board it is possible to build
|
88 |
|
|
the system for either RAM bootstrap or ROM bootstrap(s). Select
|
89 |
|
|
'ram' when building programs to load into RAM using eCos GDB
|
90 |
|
|
stubs. Select 'rom' when building a stand-alone application
|
91 |
|
|
which will be put into ROM, or for the special case of
|
92 |
|
|
building the eCos GDB stubs themselves. Select 'redboot' when
|
93 |
|
|
building RedBoot to place RedBoot at top of memory, leaving
|
94 |
|
|
the bottom of memory (from 0x8000) to applications."
|
95 |
|
|
}
|
96 |
|
|
|
97 |
|
|
# Both PLLs are in bypass mode on startup.
|
98 |
|
|
# FIXME: Add proper configury
|
99 |
|
|
cdl_option CYGNUM_HAL_ARM_EXCALIBUR_CPU_CLOCK {
|
100 |
|
|
display "CPU bus speed"
|
101 |
|
|
flavor data
|
102 |
|
|
calculated { 150000000 }
|
103 |
|
|
description "
|
104 |
|
|
This is the actual CPU operating frequency (AHB1)."
|
105 |
|
|
}
|
106 |
|
|
|
107 |
|
|
cdl_option CYGNUM_HAL_ARM_EXCALIBUR_PERIPHERAL_CLOCK {
|
108 |
|
|
display "Peripheral bus speed"
|
109 |
|
|
flavor data
|
110 |
|
|
calculated { CYGNUM_HAL_ARM_EXCALIBUR_CPU_CLOCK / 2 }
|
111 |
|
|
description "
|
112 |
|
|
This is the peripheral bus operating frequency (AHB2)."
|
113 |
|
|
}
|
114 |
|
|
|
115 |
|
|
cdl_option CYGNUM_HAL_ARM_EXCALIBUR_SDRAM_CLOCK {
|
116 |
|
|
display "SDRAM clock"
|
117 |
|
|
flavor data
|
118 |
|
|
calculated { 75000000 }
|
119 |
|
|
description "
|
120 |
|
|
This is the SDRAM bus operating frequency (SD_CLK)."
|
121 |
|
|
}
|
122 |
|
|
|
123 |
|
|
cdl_option CYGNUM_HAL_ARM_EXCALIBUR_TIMER_PRESCALE {
|
124 |
|
|
display "Timer prescale"
|
125 |
|
|
flavor data
|
126 |
|
|
legal_values 0 to 255
|
127 |
|
|
default_value 16
|
128 |
|
|
description "
|
129 |
|
|
This is the prescale value used on the clock used to drive
|
130 |
|
|
the kernel counter. Note that some parts of the code may fail
|
131 |
|
|
if this is changed due to over/underflows of expressions."
|
132 |
|
|
}
|
133 |
|
|
|
134 |
|
|
# Real-time clock/counter specifics
|
135 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
136 |
|
|
display "Real-time clock constants"
|
137 |
|
|
flavor none
|
138 |
|
|
no_define
|
139 |
|
|
|
140 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
141 |
|
|
display "Real-time clock numerator"
|
142 |
|
|
flavor data
|
143 |
|
|
calculated 1000000000
|
144 |
|
|
}
|
145 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
146 |
|
|
display "Real-time clock denominator"
|
147 |
|
|
flavor data
|
148 |
|
|
calculated 100
|
149 |
|
|
}
|
150 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
151 |
|
|
display "Real-time clock period"
|
152 |
|
|
flavor data
|
153 |
|
|
calculated (CYGNUM_HAL_ARM_EXCALIBUR_PERIPHERAL_CLOCK/(CYGNUM_HAL_ARM_EXCALIBUR_TIMER_PRESCALE*CYGNUM_HAL_RTC_DENOMINATOR))-1
|
154 |
|
|
}
|
155 |
|
|
}
|
156 |
|
|
|
157 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
|
158 |
|
|
display "Diagnostic serial port baud rate"
|
159 |
|
|
flavor data
|
160 |
|
|
legal_values 9600 19200 38400 57600 115200
|
161 |
|
|
default_value 57600
|
162 |
|
|
description "
|
163 |
|
|
This option selects the baud rate used for the diagnostic port.
|
164 |
|
|
Note: this should match the value chosen for the GDB port if the
|
165 |
|
|
diagnostic and GDB port are the same."
|
166 |
|
|
}
|
167 |
|
|
|
168 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
|
169 |
|
|
display "GDB serial port baud rate"
|
170 |
|
|
flavor data
|
171 |
|
|
legal_values 9600 19200 38400 57600 115200
|
172 |
|
|
default_value 57600
|
173 |
|
|
description "
|
174 |
|
|
This option selects the baud rate used for the diagnostic port.
|
175 |
|
|
Note: this should match the value chosen for the GDB port if the
|
176 |
|
|
diagnostic and GDB port are the same."
|
177 |
|
|
}
|
178 |
|
|
|
179 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
|
180 |
|
|
display "Number of communication channels on the board"
|
181 |
|
|
flavor data
|
182 |
|
|
calculated 1
|
183 |
|
|
}
|
184 |
|
|
|
185 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
|
186 |
|
|
display "Debug serial port"
|
187 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
|
188 |
|
|
flavor data
|
189 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
190 |
|
|
default_value 0
|
191 |
|
|
description "
|
192 |
|
|
The excalibur board has two serial ports. This option
|
193 |
|
|
chooses which port will be used to connect to a host
|
194 |
|
|
running GDB."
|
195 |
|
|
}
|
196 |
|
|
|
197 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
|
198 |
|
|
display "Default console channel."
|
199 |
|
|
flavor data
|
200 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
201 |
|
|
calculated 0
|
202 |
|
|
}
|
203 |
|
|
|
204 |
|
|
cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
|
205 |
|
|
display "Diagnostic serial port"
|
206 |
|
|
active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
|
207 |
|
|
flavor data
|
208 |
|
|
legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
|
209 |
|
|
default_value CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
|
210 |
|
|
description "
|
211 |
|
|
The excalibur board has two serial ports. This option
|
212 |
|
|
chooses which port will be used for diagnostic output."
|
213 |
|
|
}
|
214 |
|
|
|
215 |
|
|
cdl_component CYGBLD_GLOBAL_OPTIONS {
|
216 |
|
|
display "Global build options"
|
217 |
|
|
flavor none
|
218 |
|
|
no_define
|
219 |
|
|
description "
|
220 |
|
|
Global build options including control over
|
221 |
|
|
compiler flags, linker flags and choice of toolchain."
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
parent CYGPKG_NONE
|
225 |
|
|
|
226 |
|
|
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
|
227 |
|
|
display "Global command prefix"
|
228 |
|
|
flavor data
|
229 |
|
|
no_define
|
230 |
|
|
default_value { "arm-elf" }
|
231 |
|
|
description "
|
232 |
|
|
This option specifies the command prefix used when
|
233 |
|
|
invoking the build tools."
|
234 |
|
|
}
|
235 |
|
|
|
236 |
|
|
cdl_option CYGBLD_GLOBAL_CFLAGS {
|
237 |
|
|
display "Global compiler flags"
|
238 |
|
|
flavor data
|
239 |
|
|
no_define
|
240 |
|
|
default_value { "-mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
|
241 |
|
|
description "
|
242 |
|
|
This option controls the global compiler flags which are used to
|
243 |
|
|
compile all packages by default. Individual packages may define
|
244 |
|
|
options which override these global flags."
|
245 |
|
|
}
|
246 |
|
|
|
247 |
|
|
cdl_option CYGBLD_GLOBAL_LDFLAGS {
|
248 |
|
|
display "Global linker flags"
|
249 |
|
|
flavor data
|
250 |
|
|
no_define
|
251 |
|
|
default_value { "--no-target-default-spec -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib" }
|
252 |
|
|
description "
|
253 |
|
|
This option controls the global linker flags. Individual
|
254 |
|
|
packages may define options which override these global flags."
|
255 |
|
|
}
|
256 |
|
|
|
257 |
|
|
cdl_option CYGBLD_BUILD_GDB_STUBS {
|
258 |
|
|
display "Build GDB stub ROM image"
|
259 |
|
|
default_value 0
|
260 |
|
|
requires { CYG_HAL_STARTUP == "ROM" }
|
261 |
|
|
requires CYGSEM_HAL_ROM_MONITOR
|
262 |
|
|
requires CYGBLD_BUILD_COMMON_GDB_STUBS
|
263 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
|
264 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
|
265 |
|
|
requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
|
266 |
|
|
requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
|
267 |
|
|
requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
|
268 |
|
|
no_define
|
269 |
|
|
description "
|
270 |
|
|
This option enables the building of the GDB stubs for the
|
271 |
|
|
board. The common HAL controls takes care of most of the
|
272 |
|
|
build process, but the final conversion from ELF image to
|
273 |
|
|
binary data is handled by the platform CDL, allowing
|
274 |
|
|
relocation of the data if necessary."
|
275 |
|
|
|
276 |
|
|
make -priority 320 {
|
277 |
|
|
/bin/gdb_module.srec : /bin/gdb_module.img
|
278 |
|
|
$(OBJCOPY) --remove-section=.fixed_vectors $< gdb_module.tmp
|
279 |
|
|
}
|
280 |
|
|
}
|
281 |
|
|
}
|
282 |
|
|
|
283 |
|
|
cdl_component CYGPKG_HAL_ARM_ARM9_EXCALIBUR_OPTIONS {
|
284 |
|
|
display "ARM9/EXCALIBUR build options"
|
285 |
|
|
flavor none
|
286 |
|
|
no_define
|
287 |
|
|
description "
|
288 |
|
|
Package specific build options including control over
|
289 |
|
|
compiler flags used only in building this package,
|
290 |
|
|
and details of which tests are built."
|
291 |
|
|
|
292 |
|
|
|
293 |
|
|
cdl_option CYGPKG_HAL_ARM_ARM9_EXCALIBUR_CFLAGS_ADD {
|
294 |
|
|
display "Additional compiler flags"
|
295 |
|
|
flavor data
|
296 |
|
|
no_define
|
297 |
|
|
default_value { "" }
|
298 |
|
|
description "
|
299 |
|
|
This option modifies the set of compiler flags for
|
300 |
|
|
building the ARM9 EXCALIBUR HAL. These flags are used in addition
|
301 |
|
|
to the set of global flags."
|
302 |
|
|
}
|
303 |
|
|
|
304 |
|
|
cdl_option CYGPKG_HAL_ARM_ARM9_EXCALIBUR_CFLAGS_REMOVE {
|
305 |
|
|
display "Suppressed compiler flags"
|
306 |
|
|
flavor data
|
307 |
|
|
no_define
|
308 |
|
|
default_value { "" }
|
309 |
|
|
description "
|
310 |
|
|
This option modifies the set of compiler flags for
|
311 |
|
|
building the ARM9 EXCALIBUR HAL. These flags are removed from
|
312 |
|
|
the set of global flags if present."
|
313 |
|
|
}
|
314 |
|
|
|
315 |
|
|
cdl_option CYGPKG_HAL_ARM_ARM9_EXCALIBUR_TESTS {
|
316 |
|
|
display "ARM9/EXCALIBUR tests"
|
317 |
|
|
flavor data
|
318 |
|
|
no_define
|
319 |
|
|
calculated { "" }
|
320 |
|
|
description "
|
321 |
|
|
This option specifies the set of tests for the ARM9 Excalibur HAL."
|
322 |
|
|
}
|
323 |
|
|
}
|
324 |
|
|
|
325 |
|
|
cdl_component CYGHWR_MEMORY_LAYOUT {
|
326 |
|
|
display "Memory layout"
|
327 |
|
|
flavor data
|
328 |
|
|
no_define
|
329 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "arm_arm9_excalibur_ram" : \
|
330 |
|
|
CYG_HAL_STARTUP == "ROM" ? "arm_arm9_excalibur_rom" : \
|
331 |
|
|
CYG_HAL_STARTUP == "ROMRAM" ? "arm_arm9_excalibur_romram" : \
|
332 |
|
|
"arm_arm9_excalibur_redboot" }
|
333 |
|
|
|
334 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
|
335 |
|
|
display "Memory layout linker script fragment"
|
336 |
|
|
flavor data
|
337 |
|
|
no_define
|
338 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
|
339 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
340 |
|
|
CYG_HAL_STARTUP == "ROM" ? "" : \
|
341 |
|
|
CYG_HAL_STARTUP == "ROMRAM" ? "" : \
|
342 |
|
|
"" }
|
343 |
|
|
}
|
344 |
|
|
|
345 |
|
|
cdl_option CYGHWR_MEMORY_LAYOUT_H {
|
346 |
|
|
display "Memory layout header file"
|
347 |
|
|
flavor data
|
348 |
|
|
no_define
|
349 |
|
|
define -file system.h CYGHWR_MEMORY_LAYOUT_H
|
350 |
|
|
calculated { CYG_HAL_STARTUP == "RAM" ? "" : \
|
351 |
|
|
CYG_HAL_STARTUP == "ROM" ? "" : \
|
352 |
|
|
CYG_HAL_STARTUP == "ROMRAM" ? "" : \
|
353 |
|
|
"" }
|
354 |
|
|
}
|
355 |
|
|
}
|
356 |
|
|
|
357 |
|
|
cdl_option CYGSEM_HAL_ROM_MONITOR {
|
358 |
|
|
display "Behave as a ROM monitor"
|
359 |
|
|
flavor bool
|
360 |
|
|
default_value 0
|
361 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
362 |
|
|
requires { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" || CYG_HAL_STARTUP == "REDBOOT" }
|
363 |
|
|
description "
|
364 |
|
|
Enable this option if this program is to be used as a ROM monitor,
|
365 |
|
|
i.e. applications will be loaded into RAM on the board, and this
|
366 |
|
|
ROM monitor may process exceptions or interrupts generated from the
|
367 |
|
|
application. This enables features such as utilizing a separate
|
368 |
|
|
interrupt stack when exceptions are generated."
|
369 |
|
|
}
|
370 |
|
|
|
371 |
|
|
cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
|
372 |
|
|
display "Work with a ROM monitor"
|
373 |
|
|
flavor booldata
|
374 |
|
|
legal_values { "GDB_stubs" }
|
375 |
|
|
default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
|
376 |
|
|
parent CYGPKG_HAL_ROM_MONITOR
|
377 |
|
|
requires { CYG_HAL_STARTUP == "RAM" }
|
378 |
|
|
description "
|
379 |
|
|
Support can be enabled for different varieties of ROM monitor.
|
380 |
|
|
This support changes various eCos semantics such as the encoding
|
381 |
|
|
of diagnostic output, or the overriding of hardware interrupt
|
382 |
|
|
vectors.
|
383 |
|
|
\"GDB_stubs\" provides support when GDB stubs are included in
|
384 |
|
|
the ROM monitor or boot ROM."
|
385 |
|
|
}
|
386 |
|
|
|
387 |
|
|
cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
|
388 |
|
|
display "Redboot HAL options"
|
389 |
|
|
flavor none
|
390 |
|
|
no_define
|
391 |
|
|
parent CYGPKG_REDBOOT
|
392 |
|
|
active_if CYGPKG_REDBOOT
|
393 |
|
|
description "
|
394 |
|
|
This option lists the target's requirements for a valid Redboot
|
395 |
|
|
configuration."
|
396 |
|
|
|
397 |
|
|
# The backup image is not needed, since ROMRAM/REDBOOT is the normal
|
398 |
|
|
# RedBoot startup type.
|
399 |
|
|
requires {!CYGPKG_REDBOOT_FLASH || CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP == 0}
|
400 |
|
|
|
401 |
|
|
# RedBoot details
|
402 |
|
|
requires { CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT == 0x00008000 }
|
403 |
|
|
define_proc {
|
404 |
|
|
puts $::cdl_header "#define CYGHWR_REDBOOT_ARM_TRAMPOLINE_ADDRESS 0x00001f00"
|
405 |
|
|
}
|
406 |
|
|
|
407 |
|
|
cdl_option CYGBLD_BUILD_REDBOOT_BIN {
|
408 |
|
|
display "Build Redboot ROM binary image"
|
409 |
|
|
active_if CYGBLD_BUILD_REDBOOT
|
410 |
|
|
default_value 1
|
411 |
|
|
no_define
|
412 |
|
|
description "This option enables the conversion of the Redboot ELF
|
413 |
|
|
image to the various relocated SREC images needed
|
414 |
|
|
for flash updating."
|
415 |
|
|
|
416 |
|
|
make -priority 325 {
|
417 |
|
|
/bin/redboot.bin : /bin/redboot.elf
|
418 |
|
|
$(OBJCOPY) --strip-debug $< $(@:.bin=.img)
|
419 |
|
|
$(OBJCOPY) -O srec $< $(@:.bin=.srec)
|
420 |
|
|
$(OBJCOPY) --change-address 0xc0000000 -O ihex $< $(@:.bin=.hex)
|
421 |
|
|
$(OBJCOPY) -O binary $< $@
|
422 |
|
|
}
|
423 |
|
|
}
|
424 |
|
|
}
|
425 |
|
|
|
426 |
|
|
}
|