Commit 42636ec4 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [debian] allow us to select which builds have uefi signed versions

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 25f5abc4
...@@ -73,6 +73,7 @@ else ...@@ -73,6 +73,7 @@ else
endif endif
ifeq ($(arch),amd64) ifeq ($(arch),amd64)
ifeq ($(uefi_signed),true)
install -d $(signed)/$(release)-$(revision) install -d $(signed)/$(release)-$(revision)
# Check to see if this supports handoff, if not do not sign it. # Check to see if this supports handoff, if not do not sign it.
# Check the identification area magic and version >= 0x020b # Check the identification area magic and version >= 0x020b
...@@ -80,6 +81,7 @@ ifeq ($(arch),amd64) ...@@ -80,6 +81,7 @@ ifeq ($(arch),amd64)
[ "$$handoff" = "GOOD" ] && \ [ "$$handoff" = "GOOD" ] && \
cp -p $(pkgdir)/boot/$(install_file)-$(abi_release)-$* \ cp -p $(pkgdir)/boot/$(install_file)-$(abi_release)-$* \
$(signed)/$(release)-$(revision)/$(install_file)-$(abi_release)-$*.efi $(signed)/$(release)-$(revision)/$(install_file)-$(abi_release)-$*.efi
endif
endif endif
install -m644 $(builddir)/build-$*/.config \ install -m644 $(builddir)/build-$*/.config \
...@@ -487,11 +489,13 @@ binary-debs: signed_tar = $(src_pkg_name)_$(release)-$(revision)_$(arch).tar.gz ...@@ -487,11 +489,13 @@ binary-debs: signed_tar = $(src_pkg_name)_$(release)-$(revision)_$(arch).tar.gz
binary-debs: binary-perarch $(addprefix binary-,$(flavours)) binary-debs: binary-perarch $(addprefix binary-,$(flavours))
@echo Debug: $@ @echo Debug: $@
ifeq ($(arch),amd64) ifeq ($(arch),amd64)
ifeq ($(uefi_signed),true)
echo $(release)-$(revision) > $(signedv)/version echo $(release)-$(revision) > $(signedv)/version
cd $(signedv) && ls *.efi >flavours cd $(signedv) && ls *.efi >flavours
cd $(signed) && tar czvf ../../../$(signed_tar) . cd $(signed) && tar czvf ../../../$(signed_tar) .
dpkg-distaddfile $(signed_tar) raw-uefi - dpkg-distaddfile $(signed_tar) raw-uefi -
endif endif
endif
build-arch-deps-$(do_flavour_image_package) += $(addprefix $(stampdir)/stamp-build-,$(flavours)) build-arch-deps-$(do_flavour_image_package) += $(addprefix $(stampdir)/stamp-build-,$(flavours))
build-arch: $(build-arch-deps-true) build-arch: $(build-arch-deps-true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment