These fields are all in the board_info These are all set by using the set_board_info procedure. The parameters are the field name, followed by the value to set the field to.
Table 4-1. Common Board Info Fields
Field | Sample Value | Description |
---|---|---|
compiler | "[find_gcc]" | The path to the compiler to use. |
cflags | "-mca" | Compilation flags for the compiler. |
ldflags | "[libgloss_link_flags] [newlib_link_flags]" | Linking flags for the compiler. |
ldscript | "-Wl,-Tidt.ld" | The linker script to use when cross compiling. |
libs | "-lgcc" | Any additional libraries to link in. |
shell_prompt | "cygmon>" | The command prompt of the remote shell. |
hex_startaddr | "0xa0020000" | The Starting address as a string. |
start_addr | 0xa0008000 | The starting address as a value. |
startaddr | "a0020000" | |
exit_statuses_bad | 1 | Whether there is an accurate exit status. |
reboot_delay | 10 | The delay between power off and power on. |
unreliable | 1 | Whether communication with the board is unreliable. |
sim | [find_sim] | The path to the simulator to use. |
objcopy | $tempfil | The path to the objcopy program. |
support_libs | "${prefix_dir}/i386-coff/" | Support libraries needed for cross compiling. |
addl_link_flags | "-N" | Additional link flags, rarely used. |
These fields are used by the GCC and GDB tests, and are mostly only useful to somewhat trying to debug a new board file for one of these tools. Many of these are used only by a few testcases, and their purpose is esoteric. These are listed with sample values as a guide to better guessing if you need to change any of these.
Table 4-2. Board Info Fields For GCC & GDB
Field | Sample Value | Description |
---|---|---|
strip | $tempfile | Strip the executable of symbols. |
gdb_load_offset | "0x40050000" | |
gdb_protocol | "remote" | The GDB debugging protocol to use. |
gdb_sect_offset | "0x41000000"; | |
gdb_stub_ldscript | "-Wl,-Teva-stub.ld" | The linker script to use with a GDB stub. |
gdb_init_command | "set mipsfpu none" | |
gdb,cannot_call_functions | 1 | Whether GDB can call functions on the target, |
gdb,noargs | 1 | Whether the target can take command line arguments. |
gdb,nosignals | 1 | Whether there are signals on the target. |
gdb,short_int | 1 | |
gdb,start_symbol | "_start"; | The starting symbol in the executable. |
gdb,target_sim_options | "-sparclite" | Special options to pass to the simulator. |
gdb,timeout | 540 | Timeout value to use for remote communication. |
gdb_init_command | "print/x \$fsr = 0x0" | |
gdb_load_offset | "0x12020000" | |
gdb_opts | "--command gdbinit" | |
gdb_prompt | "\\(gdb960\\)" | The prompt GDB is using. |
gdb_run_command | "jump start" | |
gdb_stub_offset | "0x12010000" | |
use_gdb_stub | 1 | Whether to use a GDB stub. |
use_vma_offset | 1 | |
wrap_m68k_aout | 1 | |
gcc,no_label_values | 1 | |
gcc,no_trampolines | 1 | |
gcc,no_varargs | 1 | |
gcc,stack_size | 16384 | Stack size to use with some GCC testcases. |
ieee_multilib_flags | "-mieee"; | |
is_simulator | 1 | |
needs_status_wrapper | 1 | |
no_double | 1 | |
no_long_long | 1 | |
noargs | 1 | |
nullstone,lib | "mips-clock.c" | |
nullstone,ticks_per_sec | 3782018 | |
sys_speed_value | 200 | |
target_install | {sh-hms} |