diff options
author | Zach Pfeffer <zach.pfeffer@linaro.org> | 2013-01-24 14:34:48 -0600 |
---|---|---|
committer | Zach Pfeffer <zach.pfeffer@linaro.org> | 2013-01-24 14:34:48 -0600 |
commit | f5726ca5e690309d30367e267e34910e669781ee (patch) | |
tree | eb974b1708bb46d52a88978d5f50369eef4b89de | |
parent | 3a3bd2e9a94b493585577a41a28378fdc91b6f2e (diff) | |
download | at-f5726ca5e690309d30367e267e34910e669781ee.tar.gz |
Add an easier way to configure your environment for the scripts
Signed-off-by: Zach Pfeffer <zach.pfeffer@linaro.org>
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | pfefferz_tools.sh | 7 | ||||
-rw-r--r-- | tools.sh | 8 |
3 files changed, 16 insertions, 2 deletions
@@ -0,0 +1,3 @@ +Make a copy of pfefferz_tools.sh. Set the model path variable. Then: + +. <new>_tools.sh diff --git a/pfefferz_tools.sh b/pfefferz_tools.sh new file mode 100644 index 0000000..fee2b9e --- /dev/null +++ b/pfefferz_tools.sh @@ -0,0 +1,7 @@ +# Set this to your env +export ENV_MODEL_PATH=/home/pfefferz/aarch64_2/RTSM_AEMv8_VE + +echo "Model at $ENV_MODEL_PATH" +export SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) +echo "Pulling in the rest of the tools at $SCRIPT_DIR/tools.sh" +. $SCRIPT_DIR/tools.sh
\ No newline at end of file @@ -1,4 +1,8 @@ -export SCRIPT_PATH=$(realpath ${BASH_SOURCE[0]}) +[ -z "$ENV_MODEL_PATH" ] && echo "Need to set ENV_MODEL_PATH to the model's path, exiting" && return 1; + +[ ! -f "$ENV_MODEL_PATH/models/Linux64_GCC-4.1/RTSM_VE_AEMv8A.so" ] && echo "Can't find RTSM_VE_AEMv8A.so at \$ENV_MODEL_PATH/models/Linux64_GCC-4.1/ +You set ENV_MODEL_PATH to $ENV_MODEL_PATH +Is this right?" && return 1; export GLIT_DOC="Get linaro-image tools" function glit() { @@ -71,7 +75,7 @@ function killssh() { export RUN_DOC="run a build from a source build" function run() { if [ -z "$1" ]; then - export MODEL_PATH=/home/pfefferz/aarch64_2/RTSM_AEMv8_VE + export MODEL_PATH=$ENV_MODEL_PATH else if [ -e "$1" ]; then export MODEL_PATH="$1" |