Link Search Menu Expand Document

Building Go binaries

The BitBoxBase runs custom software written in Go that has to be compiled and becomes part of the Armbian image. This page describes the process used to build those images.

The top-level Makefile for the repository has two targets:

  • make docker-build-go: build the Go applications inside a Docker container
  • make build-go: build the Go applications on the host

The default make target invokes the make docker-build-go target to produce Go binaries compiled for the target CPU architecture in the bin/go directory, and then builds the Armbian image, using the bin/go contents as inputs.

For users that have the Go toolchain installed on the host system, make build-go should also work fine, and if the Go environment is not configured correctly, the command should produce some useful information to debug the issue.