summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSteve McIntyre <93sam@debian.org>2019-05-06 13:14:28 +0100
committerSteve McIntyre <93sam@debian.org>2019-05-06 13:14:28 +0100
commitcd186442096e39ec17a45a29709ddb186ff28bee (patch)
tree1c7a3ed20c5f4b9f007845d6b5d1c7e7a906f94f /debian/rules
parent8036ee26a1dc0bc12a67a44edb6bbc8d6f165efe (diff)
parent549f650b3d9e630b185ed7f00b55cef4a55460d3 (diff)
downloadefi-boot-shim-cd186442096e39ec17a45a29709ddb186ff28bee.tar.gz
efi-boot-shim-cd186442096e39ec17a45a29709ddb186ff28bee.zip
Merge branch 'hack' from 93sam
Changes: crash fixes generate dbx file at runtime
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules17
1 files changed, 16 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index daaed62e..2a37327e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ else
distributor=debian
endif
+export DBX_LIST = dbx.esl
+export DBX_HASHES = debian/$(distributor)-dbx.hashes
+
include /usr/share/dpkg/architecture.mk
ifeq ($(DEB_HOST_ARCH),amd64)
@@ -34,17 +37,29 @@ COMMON_OPTIONS += \
EFI_PATH=/usr/lib \
ENABLE_HTTPBOOT=true \
VENDOR_CERT_FILE=$(cert) \
+ VENDOR_DBX_FILE=$(DBX_LIST) \
EFIDIR=$(distributor) \
CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- \
+ CC=$(DEB_HOST_GNU_TYPE)-gcc-7 \
$(NULL)
+$(DBX_LIST):
+ if [ -f ${DBX_HASHES} ]; then \
+ for HASH in $$(grep -E [[:xdigit:]]{32} ${DBX_HASHES}); do \
+ efisiglist -o ${DBX_LIST} -a -h $$HASH; \
+ done; \
+ else \
+ touch ${DBX_LIST}; \
+ fi
+
%:
dh $@ --parallel
override_dh_auto_clean:
dh_auto_clean -- MAKELEVEL=0
+ rm -f $(DBX_LIST)
-override_dh_auto_build:
+override_dh_auto_build: $(DBX_LIST)
dh_auto_build -- $(COMMON_OPTIONS)
override_dh_auto_install: