1#!/bin/bash 2 3set -e 4 5if [ ! -f meson_options.txt ]; then 6 echo "Run this script from the repo root" 7 exit 1 8fi 9 10BIN_DIR=$(dirname "$0") 11ROOT_DIR=$BIN_DIR/../../.. 12 13PYTHON_BUILD=generate_android_build.py 14 15REGEN=0 16if [ "$1" == "-regen" ]; then 17 REGEN=1 18fi 19if [ ! -f $PYTHON_BUILD ]; then 20 REGEN=1 21fi 22 23if [ "$REGEN" == "1" ]; then 24 time python3 $BIN_DIR/generate_python_build.py 25else 26 echo "Python build found; use -regen to regenerate it" 27fi 28 29# Always generate Android.bp because it's fast 30PYTHONPATH=$BIN_DIR python3 generate_android_build.py --config=meson_to_hermetic/aosp.toml 31 32source $ROOT_DIR/build/envsetup.sh 33lunch aosp_trout_arm64-trunk_staging-userdebug 34 35m vulkan_freedreno 36