aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2015-01-30 10:12:42 -0700
committerRob Savoye <rob.savoye@linaro.org>2015-01-30 10:12:42 -0700
commit45213eca7a446e283500d2541474ce045691919a (patch)
tree304efacfed08f6c5b27c57747be93798be9a7bb3 /config
parenta28d01e9871ebe6b0a7a97aebfdb9189b47abc34 (diff)
In the absence of schroots, run QEMU testing on localhost using arm-sim board config. When schroots are enabled, use remote machine for QEMU tests to split CPU load between 2 machines.
Diffstat (limited to 'config')
-rw-r--r--config/linaro.exp20
1 files changed, 14 insertions, 6 deletions
diff --git a/config/linaro.exp b/config/linaro.exp
index 8996e4b6..d95f7354 100644
--- a/config/linaro.exp
+++ b/config/linaro.exp
@@ -14,6 +14,7 @@ if {[info exists env(PREFIX_UNDER_TEST)]} {
set flags "$env(FLAGS_UNDER_TEST)"
}
if {[info exists env(SYSROOT_UNDER_TEST)]} {
+ set sysroot "$env(SYSROOT_UNDER_TEST)"
set flags "${flags} --sysroot=$env(SYSROOT_UNDER_TEST)"
}
@@ -113,13 +114,20 @@ case "$target_triplet" in {
}
}
{ "*linux-gnu*" } {
- case "$myname" in {
- { build-* } {
- set target_list [list $machine_prefix-buildqemu]
- }
- { tcwg-ex40-* } {
- set target_list [list $machine_prefix-tcwgex40qemu]
+ if { [info exists env(SCHROOT_TEST)] && $env(SCHROOT_TEST) == "yes" } {
+ case "$myname" in {
+ { build-* } {
+ set target_list [list $machine_prefix-buildqemu]
+ }
+ { tcwg-ex40-* } {
+ set target_list [list $machine_prefix-tcwgex40qemu]
+ }
}
+ } else {
+ global SIM
+ set target_list { "arm-sim" }
+ set board_info(arm-sim,sim,options) "-cpu any -R 0 -L $sysroot"
+ set SIM "setarch x86_64 -R qemu-[lindex [split $target_triplet -] 0]"
}
}
default {