diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2012-10-03 22:45:07 -0700 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2012-10-03 22:45:07 -0700 |
| commit | 2c0e3cc05f7c6dd00d8b81296722309a7d23dc15 (patch) | |
| tree | 64c49475d512cb7de1ac540b16171d95238b13e4 /debian/rules | |
| parent | 418cad4c0699272dd17be82dfa01f138c274a8b1 (diff) | |
| download | efi-boot-shim-2c0e3cc05f7c6dd00d8b81296722309a7d23dc15.tar.gz efi-boot-shim-2c0e3cc05f7c6dd00d8b81296722309a7d23dc15.zip | |
Include the Canonical Secure Boot master CA (cert.der) and include as
cert.h at build time.
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 5344554d..09799106 100755 --- a/debian/rules +++ b/debian/rules @@ -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 $@ |
