blob: 14ae5dccd50c051ee3a676fc9c32933727eb3841 [file] [log] [blame]
Joel Fernandesca8fb552018-04-01 13:48:16 -07001#!/bin/bash -x
2
3print_prepare_banner() {
4 echo "Preparing device..."
5 echo ""
Joel Fernandesa34c8842018-04-01 13:48:47 -07006}
Joel Fernandesca8fb552018-04-01 13:48:16 -07007
8usage() {
9 echo "androdeb"
10 echo " shell Enter the androdeb shell environment and get to work!"
Joel Fernandes1d032fc2018-04-05 23:23:44 -070011 echo " remove Remove androdeb from the device"
12 echo " pull Git pull androdeb to update it on your host"
Joel Fernandesca8fb552018-04-01 13:48:16 -070013 echo ""
14 echo " prepare Prepare the device (when running for the first time)"
15 echo " --tracers Enable tracing packages (perf and trace-cmd)"
16 echo " --compilers Enable compilers on the FS (gcc and clang)"
17 echo " --editors Enable vim, emacs and git packages"
18 echo " --scheduler scheduler testing tools (only rt-app for now)"
19 echo ""
20 echo " --fullbuild Enable all of the above tools (no BCC)"
21 echo ""
Joel Fernandes0b735b52018-04-01 15:33:57 -070022 echo " --download Download full FS archive from web (overrides all tools specified)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070023 echo " --archive Use archive for root fs (overrides all other prepare options)"
24 echo ""
25 echo " --bcc Build and install BCC from source"
26 echo " --kernelsrc Extract kernel headers for BCC from here"
Joel Fernandes0b735b52018-04-01 15:33:57 -070027 echo " (use if BCC couldn't find headers on device)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070028 echo ""
29 echo " --tempdir Use a specific temporary directory for build operation"
30 echo " --buildtar Local directory to store tarball of androdeb env from device"
31 echo " --distro Debian distro to base on (default is buster)"
Joel Fernandes1d032fc2018-04-05 23:23:44 -070032 echo " --device Serial number of adb device."
33 echo " -s Serial number of adb device."
Joel Fernandes02939a32018-04-02 22:18:10 -070034 echo ""
Joel Fernandes0b735b52018-04-01 15:33:57 -070035 echo " --debug"
Joel Fernandes (Google)08d1a072018-05-28 13:29:03 -070036 echo " --arch Specify an ARCH to build for (default arm64)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070037 exit 1
38}
39
40