• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 \
31    -Dplatforms=android \
32    -Dgallium-drivers= \
33    -Dvulkan-drivers=freedreno \
34    -Dfreedreno-kmds=kgsl \
35    -Dplatform-sdk-version=33
36
37source $ROOT_DIR/build/envsetup.sh
38lunch aosp_trout_arm64-trunk_staging-userdebug
39
40m vulkan_freedreno
41