• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Quit if any command produces an error.
4set -e
5
6# Build and run the CHRE simulator.
7CHRE_HOST_OS=`uname`
8if [[ $CHRE_HOST_OS == 'Darwin' ]]; then
9JOB_COUNT=`sysctl -n hw.ncpu`
10else
11JOB_COUNT=$((`grep -c ^processor /proc/cpuinfo`))
12fi
13
14# Export the variant Makefile.
15export CHRE_VARIANT_MK_INCLUDES=variant/android/variant.mk
16
17make google_arm64_android_debug -j$JOB_COUNT
18adb shell setenforce 0
19adb push out/google_arm64_android_debug/libchre /system/bin/chre
20adb push variant/android/chre-stub /vendor/bin/chre
21