Clone this repo:
  1. dd3e268 btpeerd: Use latest stable golang version 1.22.2 by Jared Bennett · 2 days ago main
  2. 5fb15ae init: Configure btpeerd build process by Jared Bennett · 5 weeks ago factory-geralt-15840.B firmware-geralt-15842.B release-R125-15853.B stabilize-15855.B stabilize-15857.B
  3. 16d6931 init: Add license by Jared Bennett · 5 weeks ago
  4. 6a91c8c init: Add ownership files by Jared Bennett · 5 weeks ago
  5. ae804ff Initial empty repository by George Engelbrecht · 5 weeks ago

btpeerd

A system service for controlling Raspberry Pi btpeers for ChromeOS bluetooth testing.

Design: go/btpeerd

Building btpeerd

System must have golang installed (any version) in order to download and configure the local golang version used by the btpeerd build process.

Build btpeerd on the same system environment the executable is meant to be run on (e.g. in the pi-gen chroot) to ensure system compatibility. The unit tests should not be system dependent, so running the build script on gLinux should be sufficient to say those test pass.

Run scripts/build.sh to build btpeerd. This will do the following:

  • Download the specific version of golang needed for btpeerd to ./go/bin
  • Downloads go package dependencies.
  • Run all unit tests
  • Build btpeerd binary to ./go/bin/btpeerd

Running btpeerd

No files in this repository are used during btpeerd runtime, the ./go/bin/btpeerd executable should be runnable directly to launch btpeerd.