cmd/looper: simplify build constraints and document crippled build artifact

This commit is contained in:
Dan Kortschak 2021-05-17 10:49:20 +09:30
parent a7b97b0b1b
commit 3c7828599c
No known key found for this signature in database
GPG Key ID: 45817BAD958E3F0C
1 changed files with 12 additions and 8 deletions

View File

@ -1,15 +1,15 @@
// +build circleci // +build !pi0,!pi3
/* /*
DESCRIPTION DESCRIPTION
circleci.go defines a dummy initialisation command for running on circleci. not_pi.go lets looper build on non-RPi environments, but leaves a
non-functional executable.
AUTHORS AUTHORS
Ella Pietraroia <ella@ausocean.org> Dan Kortschak <dan@ausocean.org>
Scott Barnard <scott@ausocean.org>
LICENSE LICENSE
Copyright (C) 2020 the Australian Ocean Lab (AusOcean) Copyright (C) 2021 the Australian Ocean Lab (AusOcean)
It is free software: you can redistribute it and/or modify them It is free software: you can redistribute it and/or modify them
under the terms of the GNU General Public License as published by the under the terms of the GNU General Public License as published by the
@ -27,8 +27,12 @@ LICENSE
package main package main
import "bitbucket.org/ausocean/utils/logger" import (
"bitbucket.org/ausocean/utils/logger"
)
const audioCmd = "" const audioCmd = "play"
func initCommand(log *logger.Logger) {} func initCommand(l *logger.Logger) {
panic("looper is intended to be run on a Raspberry Pi 0 or 3.")
}