From 53a397985e230836cc150d18452adc0ac22768ae Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Thu, 14 Mar 2024 07:13:32 -0600 Subject: [PATCH] debian: add explicit GOARM for raspbian Signed-off-by: Bjorn Neergaard --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index e6e1a41f..c38c6480 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +# FIXME: quick hardcoding of GOARM for raspbian; replace with a holistic +# refactoring of how we handle target architecture +distribution := $(shell . /etc/os-release; echo "$${ID}") +ifeq ($(distribution),raspbian) + export GOARM=6 +endif + + %: dh $@ --with systemd