diff options
| author | Steve McIntyre <93sam@debian.org> | 2019-05-06 13:14:28 +0100 |
|---|---|---|
| committer | Steve McIntyre <93sam@debian.org> | 2019-05-06 13:14:28 +0100 |
| commit | cd186442096e39ec17a45a29709ddb186ff28bee (patch) | |
| tree | 1c7a3ed20c5f4b9f007845d6b5d1c7e7a906f94f /debian/rules | |
| parent | 8036ee26a1dc0bc12a67a44edb6bbc8d6f165efe (diff) | |
| parent | 549f650b3d9e630b185ed7f00b55cef4a55460d3 (diff) | |
| download | efi-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-x | debian/rules | 17 |
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: |
