3 |
|
|
4 |
# Load the generic configuration for this board. This will define any |
# Load the generic configuration for this board. This will define any |
5 |
# routines needed by the tool to communicate with the board. |
# routines needed by the tool to communicate with the board. |
6 |
load_generic_config "vxworks"; |
load_generic_config "vxworks" |
7 |
|
|
8 |
# No multilib flags by default. |
# No multilib flags by default. |
9 |
process_multilib_options ""; |
process_multilib_options "" |
10 |
|
|
11 |
# The compiler used to build for this board. Note that this has nothing to do |
# The compiler used to build for this board. Note that this has nothing to do |
12 |
# with what compiler is tested when testing gcc. |
# with what compiler is tested when testing gcc. |
13 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
14 |
|
|
15 |
# These are probably wrong, but at least it is configurable now. |
# These are probably wrong, but at least it is configurable now. |
16 |
if { [board_info $board cpu] == "I960CA" } { |
if { [board_info $board cpu] == "I960CA" } { |
17 |
set_board_info cflags "-mca"; |
set_board_info cflags "-mca" |
18 |
} else { |
} else { |
19 |
set_board_info cflags ""; |
set_board_info cflags "" |
20 |
} |
} |
21 |
# vxworks 5.1 needs the executable to be relinkable. |
# vxworks 5.1 needs the executable to be relinkable. |
22 |
set_board_info ldflags "-nostdlib -r"; |
set_board_info ldflags "-nostdlib -r" |
23 |
set_board_info libs "-lgcc"; |
set_board_info libs "-lgcc" |
24 |
|
|
25 |
# No linker script needed. |
# No linker script needed. |
26 |
set_board_info ldscript ""; |
set_board_info ldscript "" |
27 |
|
|
28 |
# GDB needs to use "target vxworks" to talk to the board. |
# GDB needs to use "target vxworks" to talk to the board. |
29 |
set_board_info gdb_protocol "vxworks"; |
set_board_info gdb_protocol "vxworks" |