summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2019-04-19 15:19:43 +0100
committerSteve McIntyre <steve@einval.com>2019-04-19 15:19:43 +0100
commit29f7fda1436283da8a69851dabcb85c22f70b792 (patch)
treebdc267d6a15cb512bd84994d61563b59c5724af3 /debian/rules
parentdbf03a5792d5caf8b4a1a1e27729d2c98b54bcb7 (diff)
downloadshim-signed-29f7fda1436283da8a69851dabcb85c22f70b792.tar.gz
shim-signed-29f7fda1436283da8a69851dabcb85c22f70b792.zip
Instead of hard-coding amd64 (x64), use a per-arch variable
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules15
1 files changed, 12 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 60c3577..9c7880d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,14 +3,23 @@
VERSION := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
SHIM_VERSION := $(shell dpkg-query -f '$${Version}\n' -W shim)
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(DEB_HOST_ARCH),amd64)
+export EFI_ARCH := x64
+endif
+ifeq ($(DEB_HOST_ARCH),arm64)
+export EFI_ARCH := aa64
+endif
+ifeq ($(DEB_HOST_ARCH),i386)
+export EFI_ARCH := ia32
+endif
+
%:
dh $@
docdir := debian/shim-signed/usr/share/doc/shim-signed
-override_dh_install:
- dh_install
-
override_dh_installchangelogs:
dh_installchangelogs
# Quieten lintian, which otherwise gets confused by our odd version