Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 1 | #!/bin/bash -x |
| 2 | |
| 3 | print_prepare_banner() { |
| 4 | echo "Preparing device..." |
| 5 | echo "" |
Joel Fernandes | a34c884 | 2018-04-01 13:48:47 -0700 | [diff] [blame] | 6 | } |
Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 7 | |
| 8 | usage() { |
| 9 | echo "androdeb" |
| 10 | echo " shell Enter the androdeb shell environment and get to work!" |
Joel Fernandes | 1d032fc | 2018-04-05 23:23:44 -0700 | [diff] [blame^] | 11 | echo " remove Remove androdeb from the device" |
| 12 | echo " pull Git pull androdeb to update it on your host" |
Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 13 | 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 Fernandes | 0b735b5 | 2018-04-01 15:33:57 -0700 | [diff] [blame] | 22 | echo " --download Download full FS archive from web (overrides all tools specified)" |
Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 23 | 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 Fernandes | 0b735b5 | 2018-04-01 15:33:57 -0700 | [diff] [blame] | 27 | echo " (use if BCC couldn't find headers on device)" |
Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 28 | 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 Fernandes | 1d032fc | 2018-04-05 23:23:44 -0700 | [diff] [blame^] | 32 | echo " --device Serial number of adb device." |
| 33 | echo " -s Serial number of adb device." |
Joel Fernandes | 02939a3 | 2018-04-02 22:18:10 -0700 | [diff] [blame] | 34 | echo "" |
Joel Fernandes | 0b735b5 | 2018-04-01 15:33:57 -0700 | [diff] [blame] | 35 | echo " --debug" |
Joel Fernandes | ca8fb55 | 2018-04-01 13:48:16 -0700 | [diff] [blame] | 36 | exit 1 |
| 37 | } |
| 38 | |
| 39 | |