|
|
4210fa |
From 9712a7e77dc12f7569858b81d620d85301f50ede Mon Sep 17 00:00:00 2001
|
|
|
4210fa |
From: Andrew Boie <andrew.p.boie@intel.com>
|
|
|
4210fa |
Date: Mon, 11 Nov 2013 16:17:20 -0800
|
|
|
4210fa |
Subject: [PATCH 08/74] allow 32-bit compilation with 64-bit compiler
|
|
|
4210fa |
|
|
|
4210fa |
Also removed unused LIB_PATH from some Makefiles.
|
|
|
4210fa |
|
|
|
4210fa |
Change-Id: I7d28d18f7531b51b6121a2ffb88bcaedec57c467
|
|
|
4210fa |
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
|
|
|
4210fa |
---
|
|
|
4210fa |
Cryptlib/Makefile | 5 +++--
|
|
|
4210fa |
Cryptlib/OpenSSL/Makefile | 4 +---
|
|
|
4210fa |
Makefile | 3 +++
|
|
|
4210fa |
lib/Makefile | 3 +++
|
|
|
4210fa |
4 files changed, 10 insertions(+), 5 deletions(-)
|
|
|
4210fa |
|
|
|
4210fa |
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
|
|
|
4210fa |
index a05a4db..d24e59e 100644
|
|
|
4210fa |
--- a/Cryptlib/Makefile
|
|
|
4210fa |
+++ b/Cryptlib/Makefile
|
|
|
4210fa |
@@ -1,7 +1,5 @@
|
|
|
4210fa |
ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
|
|
|
4210fa |
|
|
|
4210fa |
-LIB_PATH = /usr/lib64
|
|
|
4210fa |
-
|
|
|
4210fa |
EFI_INCLUDE = /usr/include/efi
|
|
|
4210fa |
EFI_INCLUDES = -nostdinc -IInclude -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
|
|
|
4210fa |
EFI_PATH = /usr/lib64/gnuefi
|
|
|
4210fa |
@@ -14,6 +12,9 @@ CFLAGS = -ggdb -O0 -I. -fno-stack-protector -fno-strict-aliasing -fpic -fshort-
|
|
|
4210fa |
ifeq ($(ARCH),x86_64)
|
|
|
4210fa |
CFLAGS += -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI
|
|
|
4210fa |
endif
|
|
|
4210fa |
+ifeq ($(ARCH),ia32)
|
|
|
4210fa |
+ CFLAGS += -m32
|
|
|
4210fa |
+endif
|
|
|
4210fa |
LDFLAGS = -nostdlib -znocombreloc
|
|
|
4210fa |
|
|
|
4210fa |
TARGET = libcryptlib.a
|
|
|
4210fa |
diff --git a/Cryptlib/OpenSSL/Makefile b/Cryptlib/OpenSSL/Makefile
|
|
|
4210fa |
index 3d5a87c..8e2f2a6 100644
|
|
|
4210fa |
--- a/Cryptlib/OpenSSL/Makefile
|
|
|
4210fa |
+++ b/Cryptlib/OpenSSL/Makefile
|
|
|
4210fa |
@@ -1,7 +1,5 @@
|
|
|
4210fa |
ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
|
|
|
4210fa |
|
|
|
4210fa |
-LIB_PATH = /usr/lib64
|
|
|
4210fa |
-
|
|
|
4210fa |
EFI_INCLUDE = /usr/include/efi
|
|
|
4210fa |
EFI_INCLUDES = -I../Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
|
|
|
4210fa |
EFI_PATH = /usr/lib64/gnuefi
|
|
|
4210fa |
@@ -15,7 +13,7 @@ ifeq ($(ARCH),x86_64)
|
|
|
4210fa |
CFLAGS += -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -DSIXTY_FOUR_BIT_LONG
|
|
|
4210fa |
endif
|
|
|
4210fa |
ifeq ($(ARCH),ia32)
|
|
|
4210fa |
- CFLAGS += -DTHIRTY_TWO_BIT
|
|
|
4210fa |
+ CFLAGS += -m32 -DTHIRTY_TWO_BIT
|
|
|
4210fa |
endif
|
|
|
4210fa |
LDFLAGS = -nostdlib -znocombreloc
|
|
|
4210fa |
|
|
|
4210fa |
diff --git a/Makefile b/Makefile
|
|
|
4210fa |
index d619ff4..e65d28d 100644
|
|
|
4210fa |
--- a/Makefile
|
|
|
4210fa |
+++ b/Makefile
|
|
|
4210fa |
@@ -28,6 +28,9 @@ endif
|
|
|
4210fa |
ifeq ($(ARCH),x86_64)
|
|
|
4210fa |
CFLAGS += -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI
|
|
|
4210fa |
endif
|
|
|
4210fa |
+ifeq ($(ARCH),ia32)
|
|
|
4210fa |
+ CFLAGS += -m32
|
|
|
4210fa |
+endif
|
|
|
4210fa |
ifneq ($(origin VENDOR_CERT_FILE), undefined)
|
|
|
4210fa |
CFLAGS += -DVENDOR_CERT_FILE=\"$(VENDOR_CERT_FILE)\"
|
|
|
4210fa |
endif
|
|
|
4210fa |
diff --git a/lib/Makefile b/lib/Makefile
|
|
|
4210fa |
index adb0347..a9c9cf6 100644
|
|
|
4210fa |
--- a/lib/Makefile
|
|
|
4210fa |
+++ b/lib/Makefile
|
|
|
4210fa |
@@ -17,6 +17,9 @@ CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \
|
|
|
4210fa |
ifeq ($(ARCH),x86_64)
|
|
|
4210fa |
CFLAGS += -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI
|
|
|
4210fa |
endif
|
|
|
4210fa |
+ifeq ($(ARCH),ia32)
|
|
|
4210fa |
+ CFLAGS += -m32
|
|
|
4210fa |
+endif
|
|
|
4210fa |
|
|
|
4210fa |
lib.a: $(LIBFILES)
|
|
|
4210fa |
ar rcs lib.a $(LIBFILES)
|
|
|
4210fa |
--
|
|
|
4210fa |
1.9.3
|
|
|
4210fa |
|