Skip to content

Commit

Permalink
debian: add explicit GOARM for raspbian
Browse files Browse the repository at this point in the history
Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
  • Loading branch information
neersighted committed Mar 14, 2024
1 parent 6a613eb commit e6f3a10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deb/common/rules
Expand Up @@ -6,6 +6,13 @@ TARGET_ARCH = $(shell dpkg-architecture -qDEB_TARGET_ARCH)
PKG_REVISION ?= 1
export PKG_REVISION

# 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

# force packages to be built with xz compression, as Ubuntu 21.10 and up use
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
override_dh_builddeb:
Expand Down

0 comments on commit e6f3a10

Please sign in to comment.