summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2019-02-10 21:10:48 -0800
committerSteve Langasek <steve.langasek@canonical.com>2019-02-10 21:10:48 -0800
commit1d945f769047a2a430f4bf2486532ca7d19fbd0d (patch)
treefa05dfeada040a0c5f6fda455617a1afe252bbb6 /debian/rules
parent21efb35cce375d55be127133dc9c20fff97b7a0f (diff)
downloadefi-boot-shim-1d945f769047a2a430f4bf2486532ca7d19fbd0d.tar.gz
efi-boot-shim-1d945f769047a2a430f4bf2486532ca7d19fbd0d.zip
Ensure DEB_HOST_ARCH is set even if not present in the environment.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index a75c1d17..37df25ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,8 @@ else
distributor=debian
endif
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
ifeq ($(DEB_HOST_ARCH),amd64)
export EFI_ARCH := x64
endif