1 |
# Load the tool-specific configuration for this board, as well as the |
# Load the tool-specific configuration for this board, as well as the |
2 |
# generic configuration. This will define any routines needed by the |
# generic configuration. This will define any routines needed by the |
3 |
# tool to communicate with the board. |
# tool to communicate with the board. |
4 |
load_generic_config "proelf"; |
load_generic_config "proelf" |
5 |
|
|
6 |
# GDB needs to use "target op50n" to talk to the board. |
# GDB needs to use "target op50n" to talk to the board. |
7 |
set_board_info gdb_protocol "op50n"; |
set_board_info gdb_protocol "op50n" |
8 |
|
|
9 |
if ![board_info $board exists output_format] { |
if ![board_info $board exists output_format] { |
10 |
set tempfil [lookfor_file $tool_root_dir binutils/objcopy]; |
set tempfil [lookfor_file $tool_root_dir binutils/objcopy] |
11 |
if { $tempfil != "" } { |
if { $tempfil != "" } { |
12 |
set_board_info objcopy $tempfil |
set_board_info objcopy $tempfil |
13 |
} else { |
} else { |
18 |
|
|
19 |
# The compiler used to build for this board. This has *nothing* to do |
# The compiler used to build for this board. This has *nothing* to do |
20 |
# with what compiler is tested if we're testing gcc. |
# with what compiler is tested if we're testing gcc. |
21 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
22 |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]"; |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]" |
23 |
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"; |
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]" |
24 |
# It's an op50n board. |
# It's an op50n board. |
25 |
set_board_info ldscript "-Wl,-Top50n.ld"; |
set_board_info ldscript "-Wl,-Top50n.ld" |
26 |
# The proelf interface has no way to return status information, so we |
# The proelf interface has no way to return status information, so we |
27 |
# need to indicate this. |
# need to indicate this. |
28 |
set_board_info needs_status_wrapper 1; |
set_board_info needs_status_wrapper 1 |
29 |
|
|
30 |
# No support for signals. |
# No support for signals. |
31 |
set_board_info gdb,nosignals 1; |
set_board_info gdb,nosignals 1 |
32 |
# Nor can we do I/O. |
# Nor can we do I/O. |
33 |
set_board_info gdb,noinferiorio 1; |
set_board_info gdb,noinferiorio 1 |
34 |
|
|
35 |
# The monitor interface is really slow. |
# The monitor interface is really slow. |
36 |
set_board_info gdb,timeout 540; |
set_board_info gdb,timeout 540 |