1# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
2# Foundation, Inc.
3#
4# This file is part of DejaGnu.
5#
6# DejaGnu is free software; you can redistribute it and/or modify it
7# under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# DejaGnu is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with DejaGnu; if not, write to the Free Software Foundation,
18# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20# This is a list of toolchains that are supported on this board.
21set_board_info target_install  {sh-hms}
22
23# Load the generic configuration for this board. This will define a basic
24# set of routines needed by the tool to communicate with the board.
25load_generic_config "sh"
26
27# Default to SH2.
28process_multilib_options "-m2"
29
30# The compiler used to build for this board. This has *nothing* to do
31# with what compiler is tested if we're testing gcc.
32set_board_info compiler "[find_gcc]"
33
34# We only support newlib on this target.
35# However, we include libgloss so we can find the linker scripts.
36set_board_info cflags "[newlib_include_flags]"
37set_board_info ldflags "[newlib_link_flags] [libgloss_link_flags]"
38
39# Linker script for the SH2 board.
40set_board_info ldscript "-Wl,-Tsh2lcevb.ld"
41
42# Can't pass arguments to this target.
43set_board_info noargs  1
44# And it can't call functions.
45set_board_info gdb,cannot_call_functions  1
46
47# We use the remote GDB protocol.
48set_board_info gdb_protocol "remote"
49# Jumping to start is how we get the program started in GDB.
50set_board_info gdb_run_command  "jump start"
51# The remote target uses a GDB stub.
52set_board_info use_gdb_stub 1
53# We can't do I/O.
54set_board_info gdb,noinferiorio  1
55# Or signals.
56set_board_info gdb,nosignals  1
57
58# Used by a few gcc.c-torture testcases to delimit how large the stack can
59# be.
60set_board_info gcc,stack_size  16384
61
62# Exit statuses returned from GDB are sometimes faulty.
63set_board_info exit_statuses_bad 1
64
65# Need to pass -mieee in order to for the compiler to be IEEE-fp compliant.
66set_board_info ieee_multilib_flags "-mieee"
67