File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/make -f
2
2
3
+ # Include default Makefile variables.
4
+ include /usr/share/dpkg/default.mk
5
+
6
+ # Build all armhf binaries as ARMv6 with hard float, to support both
7
+ # Debian armhf and Raspbian armhf.
8
+ ifeq ($(DEB_TARGET_ARCH ) ,armhf)
9
+ export CFLAGS += -marm -march=armv6+fp
10
+ export GOARM := 6
11
+ endif
12
+
3
13
VERSION ?= $(shell cat engine/VERSION)
4
- TARGET_ARCH = $(shell dpkg-architecture -qDEB_TARGET_ARCH)
5
14
# TODO(thaJeztah): allow passing this version when building.
6
15
PKG_REVISION ?= 1
7
16
export PKG_REVISION
8
17
9
- # FIXME: quick hardcoding of GOARM for raspbian; replace with a holistic
10
- # refactoring of how we handle target architecture
11
- distribution := $(shell . /etc/os-release; echo "$${ID}")
12
- ifeq ($(distribution ) ,raspbian)
13
- export GOARM=6
14
- endif
15
-
16
18
# force packages to be built with xz compression, as Ubuntu 21.10 and up use
17
19
# zstd compression, which is non-standard, and breaks 'dpkg-sig --verify'
18
20
override_dh_builddeb :
You can’t perform that action at this time.
0 commit comments