1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
5
>Board Config File</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
12
HREF="book1.html"><LINK
14
TITLE="Customizing DejaGnu"
15
HREF="c848.html"><LINK
17
TITLE="Global Config File"
18
HREF="x916.html"><LINK
20
TITLE="Remote Host Testing"
21
HREF="x953.html"></HEAD
32
SUMMARY="Header navigation table"
41
>DejaGnu: The GNU Testing Framework</TH
51
><<< Previous</A
57
>Customizing DejaGnu</TD
65
>Next >>></A
79
>Board Config File</H1
81
>The board config file is where board specfic config data
82
is stored. A board config file contains all the higher-level
83
configuration settings. There is a rough inheritance scheme, where it is
84
possible to base a new board description file on an existing one. There
85
are also collections of custom procedures for common environments. For
86
more information on adding a new board config file, go to the <A
88
>Adding A New Board</A
91
>An example board config file for a GNU simulator is as
95
> is a procedure that sets the
96
field name to the specified value. The procedures in square brackets
102
>helper procedures</I
104
are used to find parts of a tool chain required to build an executable
105
image that may reside in various locations. This is mostly of use for
106
when the startup code, the standard C lobraries, or the tool chain itself
107
is part of your build tree.</P
115
>Example 5. Board Config File</B
124
CLASS="PROGRAMLISTING"
125
> # This is a list of toolchains that are supported on this board.
126
set_board_info target_install {sparc64-elf}
128
# Load the generic configuration for this board. This will define any
129
# routines needed by the tool to communicate with the board.
130
load_generic_config "sim"
132
# We need this for find_gcc and *_include_flags/*_link_flags.
133
load_base_board_description "basic-sim"
135
# Use long64 by default.
136
process_multilib_options "long64"
140
# We only support newlib on this target. We assume that all multilib
141
# options have been specified before we get here.
142
set_board_info compiler "[find_gcc]"
143
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
144
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
146
set_board_info ldscript "";
148
# Used by a few gcc.c-torture testcases to delimit how large the
150
set_board_info gcc,stack_size 16384
151
# The simulator doesn't return exit statuses and we need to indicate this
152
# the standard GCC wrapper will work with this target.
153
set_board_info needs_status_wrapper 1
154
# We can't pass arguments to programs.
155
set_board_info noargs 1
162
>There are five helper procedures used in this example. The first
166
> looks for a copy of the GNU compiler in
167
your build tree, or it uses the one in your path. This will also return
168
the proper transformed name for a cross compiler if you whole build tree
169
is configured for one. The next helper procedures are
172
>libgloss_include_flags</TT
176
>libgloss_link_flags</TT
177
>. These return the proper flags to
178
compiler and link an executable image using <A
179
HREF="x1655.html#LIBGLOSS"
181
>, the GNU BSP (Board Support Package). The final
184
>newlib_include_flag</TT
188
>newlib_include_flag</TT
189
>. These find the Newlib C
190
library, which is a reentrant standard C library for embedded systems
191
comprising of non GPL'd code.</P
198
SUMMARY="Footer navigation table"
211
><<< Previous</A
229
>Next >>></A
237
>Global Config File</TD
251
>Remote Host Testing</TD
b'\\ No newline at end of file'