summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2019-04-19 15:19:43 +0100
committerSteve McIntyre <steve@einval.com>2019-04-19 15:19:43 +0100
commit29f7fda1436283da8a69851dabcb85c22f70b792 (patch)
treebdc267d6a15cb512bd84994d61563b59c5724af3 /Makefile
parentdbf03a5792d5caf8b4a1a1e27729d2c98b54bcb7 (diff)
downloadshim-signed-29f7fda1436283da8a69851dabcb85c22f70b792.tar.gz
shim-signed-29f7fda1436283da8a69851dabcb85c22f70b792.zip
Instead of hard-coding amd64 (x64), use a per-arch variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index cfc0b2f..06443ef 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,12 @@ all:
check:
mkdir -p build
# Verifying that the image is signed with the correct key.
- sbverify --cert MicCorUEFCA2011_2011-06-27.crt shimx64.efi.signed
+ sbverify --cert MicCorUEFCA2011_2011-06-27.crt shim$(EFI_ARCH).efi.signed
# Verifying that we have the correct binary.
- sbattach --detach build/detached-sig shimx64.efi.signed
- cp /usr/lib/shim/shimx64.efi build/shimx64.efi.signed
- sbattach --attach build/detached-sig build/shimx64.efi.signed
- cmp shimx64.efi.signed build/shimx64.efi.signed
- cp /usr/lib/shim/fbx64.efi.signed build
- cp /usr/lib/shim/mmx64.efi.signed build
+ sbattach --detach build/detached-sig shim$(EFI_ARCH).efi.signed
+ cp /usr/lib/shim/shim$(EFI_ARCH).efi build/shim$(EFI_ARCH).efi.signed
+ sbattach --attach build/detached-sig build/shim$(EFI_ARCH).efi.signed
+ cmp shim$(EFI_ARCH).efi.signed build/shim$(EFI_ARCH).efi.signed
clean:
rm -rf build