summaryrefslogtreecommitdiff
path: root/Cryptlib/Makefile
diff options
context:
space:
mode:
authorDennis Tseng <dennis.tseng@suse.com>2024-06-05 22:33:06 +0800
committerPeter Jones <pjones@redhat.com>2025-02-05 09:18:45 -0500
commiteb02afc6f822576b73b7added3966ad7e72fd342 (patch)
treed09e3dd6261fd2dabe5a7935abf9efb964360e22 /Cryptlib/Makefile
parent15c1a9a310645ceb958587fe000d5f60ed3bc4bd (diff)
downloadefi-boot-shim-eb02afc6f822576b73b7added3966ad7e72fd342.tar.gz
efi-boot-shim-eb02afc6f822576b73b7added3966ad7e72fd342.zip
Optionally enabling codesign EKU check in compiling time.
This commit also supersedes PR#232 which was closed on Jul 1, 2021. So that original codesign EKU codes cannot be bothered. To enable the codesign check, ENABLE_CODESIGN_EKU can be set to 1. To disable the codesign check, ENABLE_CODESIGN_EKU can be set to 0 or just omit this flag. For example: make xxxx ENABLE_CODESIGN_EKU=1 xxxx shim.efi Signed-off-by: Dennis Tseng <dennis.tseng@suse.com>
Diffstat (limited to 'Cryptlib/Makefile')
-rw-r--r--Cryptlib/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
index 023da637..68a9395e 100644
--- a/Cryptlib/Makefile
+++ b/Cryptlib/Makefile
@@ -40,6 +40,9 @@ endif
ifeq ($(ARCH),arm)
DEFINES += -DMDE_CPU_ARM
endif
+ifeq ($(ENABLE_CODESIGN_EKU),1)
+DEFINES += -DENABLE_CODESIGN_EKU
+endif
LDFLAGS = -nostdlib -znocombreloc
@@ -60,7 +63,6 @@ OBJS = Hash/CryptMd4Null.o \
Pk/CryptRsaExtNull.o \
Pk/CryptPkcs7SignNull.o \
Pk/CryptPkcs7Verify.o \
- Pk/CryptPkcs7VerifyEku.o \
Pk/CryptDhNull.o \
Pk/CryptTs.o \
Pk/CryptX509.o \
@@ -71,6 +73,10 @@ OBJS = Hash/CryptMd4Null.o \
SysCall/BaseMemAllocation.o \
SysCall/BaseStrings.o
+ifeq ($(ENABLE_CODESIGN_EKU),1)
+ OBJS += Pk/CryptPkcs7VerifyEku.o
+endif
+
all: $(TARGET)
libcryptlib.a: $(OBJS)