summaryrefslogtreecommitdiff
path: root/Cryptlib
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2019-01-11 09:17:42 +0100
committerPeter Jones <pjones@redhat.com>2020-07-23 20:52:12 -0400
commitee832f21c6706d6b3890d82f9d8bcb2bd249ee04 (patch)
treec8b15e6ee84eed45f6ec1c04a32589f69ca68b6e /Cryptlib
parent7f080b30f3c3718d6b2533f62a50f373fd2cda21 (diff)
downloadefi-boot-shim-ee832f21c6706d6b3890d82f9d8bcb2bd249ee04.tar.gz
efi-boot-shim-ee832f21c6706d6b3890d82f9d8bcb2bd249ee04.zip
Cryptlib: fix build on 32bit ARM
Pass MDE_CPU_ARM, similar to how it is done for the other supported architectures, otherwise the build fails in: Cryptlib/Include/OpenSslSupport.h:55:2: error: #error Unknown target architecture Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Upstream-commit-id: cb83c14628b
Diffstat (limited to 'Cryptlib')
-rw-r--r--Cryptlib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
index 2aa56959..5c098f34 100644
--- a/Cryptlib/Makefile
+++ b/Cryptlib/Makefile
@@ -19,6 +19,9 @@ endif
ifeq ($(ARCH),aarch64)
CFLAGS += -DMDE_CPU_AARCH64
endif
+ifeq ($(ARCH),arm)
+ CFLAGS += -DMDE_CPU_ARM
+endif
LDFLAGS = -nostdlib -znocombreloc
TARGET = libcryptlib.a