tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

repack-android-simpleperf-linux.sh (897B)


      1 #!/bin/bash
      2 set -x -e -v
      3 
      4 # This script is for fetching and repacking the Android Simpleperf NDK (for
      5 # Linux), the tool required to profile Android applications.
      6 
      7 mkdir -p $UPLOAD_DIR
      8 
      9 # Populate /builds/worker/.mozbuild/android-ndk-$VER.
     10 cd $GECKO_PATH
     11 ./mach python python/mozboot/mozboot/android.py --ndk-only --no-interactive
     12 
     13 mv $HOME/.mozbuild/android-ndk-*/simpleperf $HOME/.mozbuild/android-simpleperf
     14 
     15 # Add simpleperf LLVM toolchain dependencies (EXPECTED_TOOLS from simpleperf_utils.py) to repack
     16 # These dependencies must be placed in a toolchains/ top-level folder so app_profiler.py can find them
     17 cd $HOME/.mozbuild/android-ndk-*/
     18 cp -L --parents toolchains/llvm/prebuilt/*/bin/{llvm-readelf,llvm-objdump,llvm-strip,llvm-symbolizer} $HOME/.mozbuild/
     19 cd -
     20 
     21 tar cavf $UPLOAD_DIR/android-simpleperf.tar.zst -C /builds/worker/.mozbuild android-simpleperf toolchains
     22 
     23 ls -al $UPLOAD_DIR