4 |
# Load the generic configuration for this board. This will define a |
# Load the generic configuration for this board. This will define a |
5 |
# set of generic routines used by the tool to communicate with the |
# set of generic routines used by the tool to communicate with the |
6 |
# board. |
# board. |
7 |
load_generic_config "slite"; |
load_generic_config "slite" |
8 |
|
|
9 |
# It needs no multilib flags by default. |
# It needs no multilib flags by default. |
10 |
process_multilib_options "" |
process_multilib_options "" |
11 |
|
|
12 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
13 |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]"; |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]" |
14 |
set_board_info ldflags "-nostdlib [libgloss_link_flags] [newlib_link_flags] -Wl,-Ttext,0x40005000 -N"; |
set_board_info ldflags "-nostdlib [libgloss_link_flags] [newlib_link_flags] -Wl,-Ttext,0x40005000 -N" |
15 |
|
|
16 |
# ex930 linker script. |
# ex930 linker script. |
17 |
set_board_info ldscript "-Tex930.ld"; |
set_board_info ldscript "-Tex930.ld" |
18 |
|
|
19 |
# The address at which the stub needs to be linked. |
# The address at which the stub needs to be linked. |
20 |
set_board_info gdb_stub_offset "0x40000000"; |
set_board_info gdb_stub_offset "0x40000000" |
21 |
|
|
22 |
# The board doesn't return exit statuses and we need to indicate this. |
# The board doesn't return exit statuses and we need to indicate this. |
23 |
# However, the standard GCC wrapper won't work with this target because |
# However, the standard GCC wrapper won't work with this target because |
24 |
# it doesn't return stuff from printf (). |
# it doesn't return stuff from printf (). |
25 |
set_board_info needs_status_wrapper 1; |
set_board_info needs_status_wrapper 1 |
26 |
|
|
27 |
# We use a GDB stub to talk to the board. |
# We use a GDB stub to talk to the board. |
28 |
set_board_info use_gdb_stub 1; |
set_board_info use_gdb_stub 1 |
29 |
# For GDB, we need to use a real stub (not the separate loader scheme |
# For GDB, we need to use a real stub (not the separate loader scheme |
30 |
# we use for Sparclet). |
# we use for Sparclet). |
31 |
set_board_info gdb_stub ""; |
set_board_info gdb_stub "" |
32 |
# And the protocol is "sparclite serial". |
# And the protocol is "sparclite serial". |
33 |
set_board_info gdb_protocol "sparclite serial"; |
set_board_info gdb_protocol "sparclite serial" |
34 |
# No mathlib. |
# No mathlib. |
35 |
set_board_info mathlib ""; |
set_board_info mathlib "" |
36 |
# We can't do I/O in GDB. |
# We can't do I/O in GDB. |
37 |
set_board_info gdb,noinferiorio 1; |
set_board_info gdb,noinferiorio 1 |
38 |
# Or pass arguments. |
# Or pass arguments. |
39 |
set_board_info noargs 1; |
set_board_info noargs 1 |
40 |
# Or do signals. |
# Or do signals. |
41 |
set_board_info gdb,nosignals 1; |
set_board_info gdb,nosignals 1 |