Add an extra rule to generate the extra gnu-efi tarball

Thanks to Dmitri John Ledkov for help
This commit is contained in:
Steve McIntyre 2021-03-13 19:43:00 +00:00
parent 2e0a83e1f2
commit 9b014236c8
2 changed files with 11 additions and 1 deletions

4
debian/changelog vendored
View File

@ -9,6 +9,10 @@ shim (15+1613861442.888f5b5-1) unstable; urgency=medium
- fixup_git.patch
- uname.patch
- use_compare_mem_gcc9.patch
+ Includes a vendor copy of gnu-efi for now, packaged as an extra
tarball.
- Added an extra rule to generate the extra tarball. Thanks to
Dmitri John Ledkov for help.
* New patches:
+ fix-Make.coverity-bashisms.patch
(Trivial changes to remove bashisms in Make.coverity)

8
debian/rules vendored
View File

@ -15,7 +15,9 @@ else
distributor=debian
endif
deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p")
deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p")
upstream_version := $(shell echo $(deb_version) | sed -e "s/-[^-]*$$//")
plain_upstream_version := $(shell echo $(upstream_version) | sed -e "s/+dfsg.*//")
DBX_LIST = dbx.esl
DBX_HASHES = debian/$(distributor)-dbx.hashes
@ -85,3 +87,7 @@ override_dh_auto_install:
# not needed for our build and causes debhelper to complain
rm -f debian/tmp/boot/efi/EFI/BOOT/BOOT*.EFI
./debian/signing-template.generate
generate-gnu-efi:
git -C gnu-efi archive --prefix=gnu-efi/ HEAD | xz -9 \
> ../shim_$(plain_upstream_version).orig-gnu-efitar.xz