blob: 3bad2a9db8e75077ae5ec263f10f1a3eaf4d5678 [file] [log] [blame]
Joel Fernandesca8fb552018-04-01 13:48:16 -07001#!/bin/bash -x
2
3print_prepare_banner() {
4 echo "Preparing device..."
5 echo ""
6
7usage() {
8 echo "androdeb"
9 echo " shell Enter the androdeb shell environment and get to work!"
10 echo ""
11 echo " prepare Prepare the device (when running for the first time)"
12 echo " --tracers Enable tracing packages (perf and trace-cmd)"
13 echo " --compilers Enable compilers on the FS (gcc and clang)"
14 echo " --editors Enable vim, emacs and git packages"
15 echo " --scheduler scheduler testing tools (only rt-app for now)"
16 echo ""
17 echo " --fullbuild Enable all of the above tools (no BCC)"
18 echo ""
19 echo " --download Download full FS archive from web (overrides all tools specified)"
20 echo " --archive Use archive for root fs (overrides all other prepare options)"
21 echo ""
22 echo " --bcc Build and install BCC from source"
23 echo " --kernelsrc Extract kernel headers for BCC from here"
24 echo " (use if BCC couldn't find headers on device)"
25 echo ""
26 echo " --tempdir Use a specific temporary directory for build operation"
27 echo " --buildtar Local directory to store tarball of androdeb env from device"
28 echo " --distro Debian distro to base on (default is buster)"
29 echo " --debug"
30 exit 1
31}
32
33