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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [site.exp] - Blame information for rev 856

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

Line No. Rev Author Line
1 218 jeremybenn
#Make sure we look in the right place for the board description files
2
if ![info exists boards_dir] {
3
        set boards_dir {}
4
}
5
 
6 490 jeremybenn
# Add our local boards directory if we don't have it
7
if ![info exists boards_dir] {
8
    lappend boards_dir "[file dirname $env(DEJAGNU)]/boards"
9
} else {
10
    set boards_dir "[file dirname $env(DEJAGNU)]/boards"
11
}
12 453 jeremybenn
 
13 490 jeremybenn
# We don't get a good mapping of the target triplet here. target_alias will
14
# remain as we gave it. We'd like to use config.guess, but we need to find one
15
# that knows about or32, so for now, we do things by steam.
16 218 jeremybenn
 
17 490 jeremybenn
# This change is needed, since the dg- directives in tests look at the full
18
# triplet, while we use target_alias to select the tool name prefix.
19 218 jeremybenn
global target_list
20 490 jeremybenn
case "$target_triplet" in {
21
    { "or32-*elf" } {
22
        set target_triplet "or32-unknown-elf"
23 453 jeremybenn
        set target_list { "or32-elf-sim" }
24 218 jeremybenn
    }
25 490 jeremybenn
    { "or32-*linux*" } {
26
        set target_triplet "or32-unknown-gnu-linux"
27 453 jeremybenn
        set target_list { "or32-linux-sim" }
28
    }
29 218 jeremybenn
  }
30 490 jeremybenn
 
31
verbose "OR32 boards_dir     = $boards_dir"
32
verbose "OR32 target_triplet = $target_triplet"
33
 
34
if [info exists target_list] {
35
    verbose "OR32 target_list    = $target_list"
36
} else {
37
    verbose "OR32 target_list      UNDEFINED"
38
}

powered by: WebSVN 2.1.0

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