summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-09-29 11:18:56 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-09-29 11:18:56 -0400
commit6025103c2532223a018683a5a3f4bf225c4b6a21 (patch)
treeb020f38f892ccfa3074a2f281ad64e0f4a156cfa /debian/rules
parent77e5c6e4808f045629411b056b444e76c6c8c313 (diff)
downloadefi-boot-shim-upstream/13_z1.tar.gz
efi-boot-shim-upstream/13_z1.zip
New upstream version 13~z1upstream/13_z1
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules45
1 files changed, 0 insertions, 45 deletions
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index 3ea5da40..00000000
--- a/debian/rules
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/make -f
-
-# Other vendors, add your certs here. No sense in using
-# dpkg-vendor --derives-from, because only Canonical-generated binaries will
-# be signed with this key; so if you are building your own shim binary you
-# should be building the other binaries also.
-ifeq ($(shell dpkg-vendor --is ubuntu && echo yes),yes)
- cert=debian/canonical-uefi-ca.der
- distributor=ubuntu
-else
- cert=debian/debian-uefi-ca.der
- distributor=debian
-endif
-
-ifeq ($(DEB_HOST_ARCH),amd64)
-export EFI_ARCH := x64
-endif
-
-COMMON_OPTIONS = \
- MAKELEVEL=0 \
- EFI_PATH=/usr/lib \
- ENABLE_SHIM_CERT=1 \
- ENABLE_SBSIGN=1 \
- VENDOR_CERT_FILE=$(cert) \
- EFIDIR=$(distributor) \
- $(NULL)
-
-CPPFLAGS += -Wno-error=unused-variable
-
-%:
- dh $@ --parallel
-
-override_dh_auto_clean:
- dh_auto_clean -- MAKELEVEL=0
- rm -f *.signed
-
-override_dh_auto_build:
- dh_auto_build -- $(COMMON_OPTIONS)
-
-override_dh_auto_install:
- dh_auto_install --destdir=debian/tmp -- $(COMMON_OPTIONS)
-
-override_dh_fixperms:
- dh_fixperms
- chmod a-x debian/shim/usr/lib/shim/shim$(EFI_ARCH).efi