blob: f873fdba3a0752efb95a0046b39e19f0ef4c6f50 [file] [log] [blame]
#!/bin/bash -x
print_prepare_banner() {
c_info "Preparing device..."
c_info ""
}
usage() {
c_info "USAGE:"
c_info "androdeb"
c_info " shell Enter the androdeb shell environment and get to work!"
c_info " remove Remove androdeb from the device"
c_info " git-pull Git pull androdeb to update it on your host"
c_info " pull Copy files from the androdeb filesystem in the device"
c_info " push Copy files to the androdeb filesystem in the device"
c_info ""
c_info " prepare Prepare the device (when running for the first time)"
c_info " --tracers Enable tracing packages (perf and trace-cmd)"
c_info " --compilers Enable compilers on the FS (gcc and clang)"
c_info " --editors Enable vim, emacs and git packages"
c_info " --scheduler scheduler testing tools (only rt-app for now)"
c_info ""
c_info " --fullbuild Enable all of the above tools (no BCC)"
c_info ""
c_info " --download Download full FS archive from web (overrides all tools specified)"
c_info " --archive Use archive for root fs (overrides all other prepare options)"
c_info " --build-image Build an ext4 .img with the base image and BCC (useful for Qemu)"
c_info ""
c_info " --bcc Build and install BCC from source"
c_info " --kernelsrc Extract kernel headers for BCC from here"
c_info " --skip-install Pass this along if only header install is needed"
c_info ""
c_info " --tempdir Use a specific temporary directory for build operation"
c_info " --buildtar Local directory to store tarball of androdeb env from device"
c_info " --distro Debian distro to base on (default is buster)"
c_info " --device Serial number of adb device."
c_info " -s Serial number of adb device."
c_info ""
c_info " --debug"
c_info " --arch Specify an ARCH to build for (default arm64)"
exit 1
}