Add atrusctl

BUG=chrome-os-partner:62481
TEST=Initial commit, not used anywhere yet

Change-Id: I0ff5b0bcd17b3513bc546f8cbd74367d648489a2
Signed-off-by: Emil Lundmark <emil@limesaudio.com>
Reviewed-on: https://chromium-review.googlesource.com/444411
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
20 files changed
tree: fe349f68fc619491f25d520eb9b51e7956f7daf6
  1. src/
  2. .clang-format
  3. .clang-tidy
  4. .gitignore
  5. CMakeLists.txt
  6. LICENSE.md
  7. PRESUBMIT.cfg
  8. README.md
README.md

atrusctl

This tool is used to interact with an Atrus device.

Requirements

The GNU C Library, libusb 1.0 and libudev are required. GNU C is required because the program utilizes argp.

Building

CMake is used for building the application.

Here is an example of how to build:

$ mkdir build/
$ cd build/
$ cmake ..
$ make

You can also install it on your machine by running:

$ make install

Using

Run the following to see the help section of the application.

$ atrusctl --help

Also, make sure you have read and write access to the USB device. This may be done by, e.g., setting appropriate udev rules.

License

Individual files are tagged with SPDX-License-Identifier to indicate its license instead of including the full license text. See the SPDX License List for more information.