summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2012-09-11 16:38:29 +0800
committerGary Ching-Pang Lin <glin@suse.com>2012-09-11 16:38:29 +0800
commit481c1e1e76f8158d262589dc571f95623a74e846 (patch)
treedb3f281b599ddfce0456f7f2f13f9ceecac2041f /Makefile
parent1395a9916b1467367d17d2de51f199fbe11dbfb4 (diff)
downloadefi-boot-shim-481c1e1e76f8158d262589dc571f95623a74e846.tar.gz
efi-boot-shim-481c1e1e76f8158d262589dc571f95623a74e846.zip
Add a separate efi application to manage MOKs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a886c763..c7f2be8f 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,11 @@ LDFLAGS = -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH
VERSION = 0.1
-TARGET = shim.efi
+TARGET = shim.efi MokManager.efi
OBJS = shim.o cert.o
SOURCES = shim.c shim.h signature.h PeImage.h
+MOK_OBJS = MokManager.o
+MOK_SOURCES = MokManager.c shim.h
all: $(TARGET)
@@ -42,6 +44,11 @@ cert.o : cert.S
shim.so: $(OBJS) Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a cert.o
$(LD) -o $@ $(LDFLAGS) $^ $(EFI_LIBS)
+MokManager.o: $(SOURCES)
+
+MokManager.so: $(MOK_OBJS) Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a
+ $(LD) -o $@ $(LDFLAGS) $^ $(EFI_LIBS)
+
Cryptlib/libcryptlib.a:
$(MAKE) -C Cryptlib