blob: 342e48a8653a4c16769848354d827dd2c76c98d7 [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)"
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -070024 echo " --build-image Build an ext4 .img with the base image and BCC (useful for Qemu)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070025 echo ""
26 echo " --bcc Build and install BCC from source"
27 echo " --kernelsrc Extract kernel headers for BCC from here"
Joel Fernandes0b735b52018-04-01 15:33:57 -070028 echo " (use if BCC couldn't find headers on device)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070029 echo ""
30 echo " --tempdir Use a specific temporary directory for build operation"
31 echo " --buildtar Local directory to store tarball of androdeb env from device"
32 echo " --distro Debian distro to base on (default is buster)"
Joel Fernandes1d032fc2018-04-05 23:23:44 -070033 echo " --device Serial number of adb device."
34 echo " -s Serial number of adb device."
Joel Fernandes02939a32018-04-02 22:18:10 -070035 echo ""
Joel Fernandes0b735b52018-04-01 15:33:57 -070036 echo " --debug"
Joel Fernandes (Google)08d1a072018-05-28 13:29:03 -070037 echo " --arch Specify an ARCH to build for (default arm64)"
Joel Fernandesca8fb552018-04-01 13:48:16 -070038 exit 1
39}
40
41