common: simplify set_common_vars, rename to common_setup

Don't pass all arguments explicitly, just use existing vars.

Prefix all common_setup inputs and outputs with common_ to avoid name conflicts.
This commit is contained in:
Ciro Santilli
2018-08-09 05:44:52 +01:00
parent b8abb15ca7
commit 1cb056a995
16 changed files with 192 additions and 200 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env bash
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
common_gem5=true
while getopts M:n: OPT; do
case "$OPT" in
M)
@@ -14,5 +15,5 @@ while getopts M:n: OPT; do
esac
done
shift "$(($OPTIND - 1))"
set_common_vars -M "$common_gem5_variant" -n "$common_run_id" "$arch" true
common_setup
"${common_gem5_m5term}" localhost "$common_gem5_telnet_port"