OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [site.exp] - Diff between revs 453 and 490

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 453 Rev 490
Line 1... Line 1...
#Make sure we look in the right place for the board description files
#Make sure we look in the right place for the board description files
if ![info exists boards_dir] {
if ![info exists boards_dir] {
        set boards_dir {}
        set boards_dir {}
}
}
 
 
send_user "tool_root_dir  = $tool_root_dir\n"
# Add our local boards directory if we don't have it
send_user "target_triplet = $target_triplet\n"
if ![info exists boards_dir] {
 
    lappend boards_dir "[file dirname $env(DEJAGNU)]/boards"
 
} else {
 
    set boards_dir "[file dirname $env(DEJAGNU)]/boards"
 
}
 
 
# Crude way of finding the boards directory
# We don't get a good mapping of the target triplet here. target_alias will
lappend boards_dir "${tool_root_dir}/../boards"
# remain as we gave it. We'd like to use config.guess, but we need to find one
lappend boards_dir "${tool_root_dir}/../../boards"
# that knows about or32, so for now, we do things by steam.
lappend boards_dir "${tool_root_dir}/../../../boards"
 
lappend boards_dir "${tool_root_dir}/../../../../boards"
 
 
 
 
# This change is needed, since the dg- directives in tests look at the full
 
# triplet, while we use target_alias to select the tool name prefix.
global target_list
global target_list
  case "$target_triplet" in {
  case "$target_triplet" in {
    { "or32-*-elf" } {
    { "or32-*elf" } {
 
        set target_triplet "or32-unknown-elf"
        set target_list { "or32-elf-sim" }
        set target_list { "or32-elf-sim" }
    }
    }
    { "or32-*-linux*" } {
    { "or32-*linux*" } {
 
        set target_triplet "or32-unknown-gnu-linux"
        set target_list { "or32-linux-sim" }
        set target_list { "or32-linux-sim" }
    }
    }
  }
  }
 
 
 
verbose "OR32 boards_dir     = $boards_dir"
 
verbose "OR32 target_triplet = $target_triplet"
 
 
 
if [info exists target_list] {
 
    verbose "OR32 target_list    = $target_list"
 
} else {
 
    verbose "OR32 target_list      UNDEFINED"
 
}

powered by: WebSVN 2.1.0

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