|
Packit |
62fe53 |
# Copyright (C) 1997-2016 Free Software Foundation, Inc.
|
|
Packit |
62fe53 |
#
|
|
Packit |
62fe53 |
# This file is part of DejaGnu.
|
|
Packit |
62fe53 |
#
|
|
Packit |
62fe53 |
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
Packit |
62fe53 |
# under the terms of the GNU General Public License as published by
|
|
Packit |
62fe53 |
# the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
62fe53 |
# (at your option) any later version.
|
|
Packit |
62fe53 |
#
|
|
Packit |
62fe53 |
# DejaGnu is distributed in the hope that it will be useful, but
|
|
Packit |
62fe53 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
62fe53 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
62fe53 |
# General Public License for more details.
|
|
Packit |
62fe53 |
#
|
|
Packit |
62fe53 |
# You should have received a copy of the GNU General Public License
|
|
Packit |
62fe53 |
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
Packit |
62fe53 |
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Load the generic configuration for this board. This will define a basic
|
|
Packit |
62fe53 |
# set of routines used to communicate with the board.
|
|
Packit |
62fe53 |
load_generic_config "gdb-comm"
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# No multilib flags needed by default.
|
|
Packit |
62fe53 |
process_multilib_options ""
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
if { [board_info $board obj_format] == "pe" } {
|
|
Packit |
62fe53 |
set additional_options "-Wl,-oformat,pe-arm-little,--image-base,0"
|
|
Packit |
62fe53 |
} else {
|
|
Packit |
62fe53 |
set additional_options ""
|
|
Packit |
62fe53 |
}
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# basic-sim.exp is a basic description for the standard Cygnus simulator.
|
|
Packit |
62fe53 |
# The compiler used to build for this board. This has *nothing* to do
|
|
Packit |
62fe53 |
# with what compiler is tested if we're testing gcc.
|
|
Packit |
62fe53 |
set_board_info compiler "[find_gcc]"
|
|
Packit |
62fe53 |
# The basic set of flags needed to build "hello world" for this
|
|
Packit |
62fe53 |
# board. This board uses libgloss and newlib.
|
|
Packit |
62fe53 |
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
Packit |
62fe53 |
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags] $additional_options"
|
|
Packit |
62fe53 |
# This board doesn't use a linker script.
|
|
Packit |
62fe53 |
set_board_info ldscript ""
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
Packit |
62fe53 |
# be.
|
|
Packit |
62fe53 |
set_board_info gcc,stack_size 16384
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# We use "target rdi" to talk to the board.
|
|
Packit |
62fe53 |
set_board_info gdb_protocol "rdi"
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# No support for signals.
|
|
Packit |
62fe53 |
set_board_info gdb,nosignals 1
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Make this variable go away, we don't need it.
|
|
Packit |
62fe53 |
unset additional_options
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Can't call functions from GDB.
|
|
Packit |
62fe53 |
set_board_info gdb,cannot_call_functions 1
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Or do I/O.
|
|
Packit |
62fe53 |
set_board_info gdb,noinferiorio 1
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Or have signals.
|
|
Packit |
62fe53 |
set_board_info gdb,nosignals 1
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
# Exit statuses are invalid.
|
|
Packit |
62fe53 |
set_board_info exit_statuses_bad 1
|