1 #!/usr/bin/env bash 2 # SPDX-License-Identifier: Apache-2.0 3 # 4 # Copyright (C) 2017, ARM Limited, Google, and contributors. 5 # 6 # Licensed under the Apache License, Version 2.0 (the "License"); you may 7 # not use this file except in compliance with the License. 8 # You may obtain a copy of the License at 9 # 10 # http://www.apache.org/licenses/LICENSE-2.0 11 # 12 # Unless required by applicable law or agreed to in writing, software 13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 # See the License for the specific language governing permissions and 16 # limitations under the License. 17 # 18 19 if [ "x$TARGET_PRODUCT" == "x" ]; then 20 echo "WARNING: Its recommended to launch from android build" 21 echo "environment to take advantage of product/device-specific" 22 echo "functionality." 23 else 24 lisadir="$(gettop)/$(get_build_var BOARD_LISA_TARGET_SCRIPTS)" 25 26 if [ -d $lisadir/targetdev ]; then 27 export PYTHONPATH=$lisadir:$PYTHONPATH 28 echo "Welcome to LISA $TARGET_PRODUCT environment" 29 echo "Target-specific scripts are located in $lisadir" 30 else 31 echo "LISA scripts don't exist for $TARGET_PRODUCT, skipping" 32 fi 33 fi 34 35 if [ -z "$CATAPULT_HOME" ]; then 36 export CATAPULT_HOME=$LISA_HOME/../chromium-trace/catapult/ 37 echo "Systrace will run from: $(readlink -f $CATAPULT_HOME)" 38 fi 39 40 monsoon_path="$LISA_HOME/../../cts/tools/utils/" 41 export PATH="$monsoon_path:$PATH" 42 echo "Monsoon will run from: $(readlink -f $monsoon_path/monsoon.py)" 43 44 export PYTHONPATH=$LISA_HOME/../devlib:$PYTHONPATH 45 export PYTHONPATH=$LISA_HOME/../trappy:$PYTHONPATH 46 export PYTHONPATH=$LISA_HOME/../bart:$PYTHONPATH 47 export DEVICE_LISA_HOME=$lisadir 48