1 |
# Load the generic configuration for this board. This will define any |
# Load the generic configuration for this board. This will define any |
2 |
# routines needed by the tool to communicate with the board. |
# routines needed by the tool to communicate with the board. |
3 |
load_generic_config "mips-idt"; |
load_generic_config "mips-idt" |
4 |
|
|
5 |
# 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 |
6 |
# with what compiler is tested if we're testing gcc. |
# with what compiler is tested if we're testing gcc. |
7 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
8 |
|
|
9 |
# We don't use any multilib options by default. |
# We don't use any multilib options by default. |
10 |
process_multilib_options "" |
process_multilib_options "" |
11 |
|
|
12 |
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"; |
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]" |
13 |
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"; |
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]" |
14 |
|
|
15 |
# Use idt. |
# Use idt. |
16 |
if { [board_info $board obj_format] == "ecoff" } { |
if { [board_info $board obj_format] == "ecoff" } { |
17 |
set_board_info ldscript "-Wl,-Tidtecoff.ld"; |
set_board_info ldscript "-Wl,-Tidtecoff.ld" |
18 |
} else { |
} else { |
19 |
set_board_info ldscript "-Wl,-Tidt.ld"; |
set_board_info ldscript "-Wl,-Tidt.ld" |
20 |
} |
} |
21 |
|
|
22 |
# The idt interface can't return exit statuses, so gcc (ctorture et |
# The idt interface can't return exit statuses, so gcc (ctorture et |
23 |
# al) needs to do what it can to get them. |
# al) needs to do what it can to get them. |
24 |
set_board_info needs_status_wrapper 1; |
set_board_info needs_status_wrapper 1 |
25 |
|
|
26 |
# GDB needs to use "target mips" to talk to the board. |
# GDB needs to use "target mips" to talk to the board. |
27 |
set_board_info gdb_protocol "mips"; |
set_board_info gdb_protocol "mips" |
28 |
|
|
29 |
# And, it can't do arguments, and doesn't have real signals. |
# And, it can't do arguments, and doesn't have real signals. |
30 |
set_board_info noargs 1 |
set_board_info noargs 1 |