diff options
Diffstat (limited to 'baseboards/basic-sim.exp')
-rw-r--r-- | baseboards/basic-sim.exp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/baseboards/basic-sim.exp b/baseboards/basic-sim.exp index 3fa7c4d..7195adf 100644 --- a/baseboards/basic-sim.exp +++ b/baseboards/basic-sim.exp @@ -4,7 +4,7 @@ # Otherwise we search the build tree, then $PATH. proc find_sim { target_alias sim_dir sim_name } { - global tool_root_dir; + global tool_root_dir global SIM if [info exists SIM] { @@ -13,39 +13,39 @@ proc find_sim { target_alias sim_dir sim_name } { if [is_remote host] { if ![board_info host exists no_transform_name] { - return ${target_alias}-${sim_name}; + return ${target_alias}-${sim_name} } else { - return ${sim_name}; + return ${sim_name} } } # We have to search because tool_root_dir may actually point to that blasted # "target" subdirectory. - set try [lookfor_file ${tool_root_dir} sim/${sim_dir}/${sim_name}]; + set try [lookfor_file ${tool_root_dir} sim/${sim_dir}/${sim_name}] if { $try != "" } { - return $try; + return $try } - return ${target_alias}-${sim_name}; + return ${target_alias}-${sim_name} } proc setup_sim { subdir_name } { - global target_alias; - global tool_root_dir; - global board; + global target_alias + global tool_root_dir + global board if [info exists target_alias] { - set tmp $target_alias; + set tmp $target_alias } else { if [board_info $board exists target_install] { - set tmp [lindex [board_info $board target_install] 0]; + set tmp [lindex [board_info $board target_install] 0] } } if ![board_info $board exists sim] { - set_board_info sim [find_sim $tmp $subdir_name run]; + set_board_info sim [find_sim $tmp $subdir_name run] } verbose "Using simulator [board_info $board sim]\n" } -set_board_info is_simulator 1; +set_board_info is_simulator 1 |