debian/patches/sbsigntool-not-pesign,debian/patches/second-stage-path:

refreshed.
This commit is contained in:
Mathieu Trudel-Lapierre 2015-05-06 14:02:40 -04:00
parent e42efbd92b
commit 28da53af72
3 changed files with 21 additions and 11 deletions

2
debian/changelog vendored
View File

@ -4,6 +4,8 @@ shim (0.8-0ubuntu1) UNRELEASED; urgency=medium
* debian/patches/CVE-2014-3675.patch, debian/patches/CVE-2014-3677.patch,
debian/patches/0001-Update-openssl-to-0.9.8za.patch: dropped, included
in the upstream release.
* debian/patches/sbsigntool-not-pesign,debian/patches/second-stage-path:
refreshed.
-- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Wed, 06 May 2015 09:49:45 -0400

View File

@ -5,13 +5,17 @@ Description: Sign MokManager with sbsigntool instead of pesign
Author: Steve Langasek <steve.langasek@canonical.com>
Forwarded: not-needed
Index: shim/Makefile
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/Makefile
===================================================================
--- shim.orig/Makefile
+++ shim/Makefile
@@ -88,8 +88,8 @@
--- a/Makefile
+++ b/Makefile
@@ -144,8 +144,8 @@ FORMAT ?= --target efi-app-$(ARCH)
-j .debug_line -j .debug_str -j .debug_ranges \
--target=efi-app-$(ARCH) $^ $@.debug
$(FORMAT) $^ $@.debug
-%.efi.signed: %.efi certdb/secmod.db
- pesign -n certdb -i $< -c "shim" -s -o $@ -f

View File

@ -5,16 +5,20 @@ Description: Chainload grubx64.efi, not grub.efi
anyway, not grub.efi.)
Author: Steve Langasek <steve.langasek@ubuntu.com>
Index: shim/Makefile
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/Makefile
===================================================================
--- shim.orig/Makefile
+++ shim/Makefile
@@ -14,7 +14,7 @@
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ EFI_LIBS = -lefi -lgnuefi --start-group
EFI_CRT_OBJS = $(EFI_PATH)/crt0-efi-$(ARCH).o
EFI_LDS = elf_$(ARCH)_efi.lds
-DEFAULT_LOADER := \\\\grub.efi
+DEFAULT_LOADER := \\\\grubx64.efi
CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \
-fshort-wchar -Wall -Werror -mno-red-zone -maccumulate-outgoing-args \
-mno-mmx -mno-sse -fno-builtin \
-fshort-wchar -Wall -Wsign-compare -Werror -fno-builtin \
-Werror=sign-compare \