OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [baseboards/] [h8300.exp] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Load the tool-specific configuration for this board, as well as the
2
# generic configuration. This will define any routines needed by the
3
# tool to communicate with the board.
4
load_generic_config "h8300"
5
 
6
# Don't use anything by default.
7
process_multilib_options ""
8
 
9
# The default compiler for this target.
10
set_board_info compiler "[find_gcc]"
11
 
12
# We only support newlib on this target. We assume that all multilib
13
# options have been specified before we get here.
14
set_board_info cflags "[newlib_include_flags]"
15
set_board_info ldflags "[newlib_link_flags]"
16
 
17
# The GDB protocol used with this board.
18
set_board_info gdb_protocol "remote"
19
# It's running a GDB stub in ROM.
20
set_board_info use_gdb_stub 1;
21
 
22
# There's no support for argument-passing.
23
set_board_info noargs 1
24
# Nor does it have real signals.
25
set_board_info gdb,nosignals 1
26
# And it can't do I/O.
27
set_board_info gdb,noinferiorio 1
28
# Nor can it return results.
29
set_board_info gdb,noresults 1
30
 
31
# Limit the stack size to something real tiny.
32
set_board_info gcc,stack_size 4096
33
 
34
# The board can get wedged in amusing and interesting ways.
35
set_board_info unreliable 1
36
 
37
# There's no long long support on this target
38
set_board_info no_long_long  1
39
 
40
# sizeof int != sizeof long.
41
set_board_info gdb,short_int 1
42
 
43
# Pick the right linker script if -mh/-ms is specified.
44
 
45
set linker_script "h8300.ld"
46
 
47
foreach x $board_variant_list {
48
    regsub -all "^\[ \t\]*" "$x" "" x;
49
    regsub -all "\[ \t\]*$" "$x" "" x;
50
 
51
    case $x in {
52
        { h -mh } {
53
            set linker_script "h8300h.ld"
54
        }
55
        { s -ms } {
56
            set linker_script "h8300s.ld"
57
        }
58
    }
59
}
60
 
61
# Whee, magic linker scripts hidden away.
62
#
63
# This one's dependent on the multilib options in use, sadly. And we
64
# *need* a linker script. Really. Otherwise the code gets linked at
65
# the wrong address and it won't run on the board.
66
set_board_info ldscript "-Wl,-T${prefix_dir}/h8300-hms/${linker_script}"
67
 
68
unset linker_script

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.