Include the Canonical Secure Boot master CA (cert.der) and include as

cert.h at build time.
This commit is contained in:
Steve Langasek 2012-10-03 22:45:07 -07:00
parent 418cad4c06
commit 2c0e3cc05f
9 changed files with 11 additions and 4 deletions

View File

@ -1 +0,0 @@
debian/patches

View File

@ -1 +0,0 @@
series

View File

@ -1 +0,0 @@
2

View File

BIN
cert.der Normal file

Binary file not shown.

2
debian/changelog vendored
View File

@ -1,5 +1,7 @@
shim (0~20120728.3df9e294-0ubuntu1) UNRELEASED; urgency=low
* Initial release.
* Include the Canonical Secure Boot master CA (cert.der) and include as
cert.h at build time.
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 29 Aug 2012 15:51:10 -0700

1
debian/clean vendored Normal file
View File

@ -0,0 +1 @@
cert.h

8
debian/rules vendored
View File

@ -3,5 +3,11 @@
%:
dh $@
override_dh_auto_build:
override_dh_auto_build: cert.h
dh_auto_build -- EFI_PATH=/usr/lib
cert.h: cert.der
echo 'static UINT8 vendor_cert[] = {' > $@.new
od -tx1 -w12 cert.der | cut -b9- | sed -e's/\([0-9a-f][0-9a-f]\)/0x\1,/g' >> $@.new
echo '};' >> $@.new
mv $@.new $@

1
debian/source/include-binaries vendored Normal file
View File

@ -0,0 +1 @@
cert.der