forked from skristiansson/or1k-src
-
Notifications
You must be signed in to change notification settings - Fork 27
/
site.exp
38 lines (33 loc) · 1.19 KB
/
site.exp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#Make sure we look in the right place for the board description files
if ![info exists boards_dir] {
set boards_dir {}
}
# Add our local boards directory if we don't have it
if ![info exists boards_dir] {
lappend boards_dir "[file dirname $env(DEJAGNU)]/boards"
} else {
set boards_dir "[file dirname $env(DEJAGNU)]/boards"
}
# We don't get a good mapping of the target triplet here. target_alias will
# remain as we gave it. We'd like to use config.guess, but we need to find one
# that knows about or1k, so for now, we do things by steam.
# 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
case "$target_triplet" in {
{ "or1k-*elf" } {
set target_triplet "or1k-unknown-elf"
set target_list { "or1k-elf-sim" }
}
{ "or32-*linux*" } {
set target_triplet "or32-unknown-gnu-linux"
set target_list { "or1k-linux-sim" }
}
}
verbose "OR1K boards_dir = $boards_dir"
verbose "OR1K target_triplet = $target_triplet"
if [info exists target_list] {
verbose "OR1K target_list = $target_list"
} else {
verbose "OR1K target_list UNDEFINED"
}