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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [baseboards/] [cf.exp] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# This is a list of toolchains that are supported on this board.
2
set_board_info target_install {m68k-elf};
3
 
4
# Load the generic configuration for this board. This will define any
5
# routines needed by the tool to communicate with the board.
6
load_generic_config "cfdbug";
7
 
8
# Need -m5200 by default.
9
process_multilib_options "-m5200"
10
 
11
# The compiler used to build for this board. Note that this has nothing to do
12
# with what compiler is tested when testing gcc.
13
set_board_info compiler "[find_gcc]"
14
 
15
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]";
16
 
17
# Nasty hack.
18
if { [board_info $board obj_format] == "a.out" } {
19
    # Need to pass the start address to objcopy.
20
    set_board_info use_vma_offset 1;
21
    # Wrapping has to be specially done for m68k-aout, for whatever reason.
22
    set_board_info wrap_m68k_aout 1;
23
 
24
    set extra_m68k_ld_flags "-N"
25
 
26
    # We need to tell GDB to load at the correct offset.
27
    set_board_info gdb_load_offset [board_info $board hex_startaddr];
28
} else {
29
    set extra_m68k_ld_flags ""
30
}
31
 
32
set_board_info ldflags "$extra_m68k_ld_flags [libgloss_link_flags] [newlib_link_flags]"
33
unset extra_m68k_ld_flags
34
 
35
 
36
# If no output format is specified, use objcopy.
37
if ![board_info $board exists output_format] {
38
    set tempfil [lookfor_file $tool_root_dir binutils/objcopy];
39
    if { $tempfil != "" } {
40
        set_board_info objcopy $tempfil
41
    } else {
42
        set_board_info objcopy [transform objcopy]
43
    }
44
    unset tempfil
45
}
46
 
47
# SBC5204 linker script.
48
set_board_info ldscript "-Wl,-Tsbc5204.ld";
49
# The idt interface can't return exit statuses, so gcc (ctorture et
50
# al) needs to do what it can to get them.
51
set_board_info needs_status_wrapper 1;
52
 
53
# Used by a few gcc.c-torture testcases to delimit how large the stack can be.
54
# The board has 192K of RAM.  We will set stack size to one third of that.
55
set_board_info gcc,stack_size 65536
56
 
57
# GDB needs to use "target dbug" to talk to the board.
58
set_board_info gdb_protocol  "dbug";
59
 
60
# Can't pass arguments to the program under test.
61
set_board_info noargs 1
62
 
63
# Nor can it do I/O in GDB.
64
set_board_info gdb,noinferiorio 1
65
 
66
# It has no signals.
67
set_board_info gdb,nosignals 1
68
 
69
# It can't return results when debugging with GDB.
70
set_board_info gdb,noresults 1
71
 
72
# Pseudo-random guess.
73
set_board_info sys_speed_value 200;

powered by: WebSVN 2.1.0

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