Lines 1-43
Link Here
|
1 |
--- Makefile.orig 2014-10-13 22:41:51.000000000 +0200 |
1 |
--- Makefile.orig 2015-06-30 18:20:12.000000000 +0000 |
2 |
+++ Makefile 2014-12-21 16:18:40.000000000 +0100 |
2 |
+++ Makefile 2018-08-30 16:35:51.966986000 +0000 |
3 |
@@ -4,13 +1,17 @@ |
3 |
@@ -1,5 +1,5 @@ |
|
|
4 |
VERSION = 0.9 |
5 |
-RELEASE := |
6 |
+RELEASE := "" |
7 |
ifneq ($(RELEASE),"") |
8 |
RELEASE="-$(RELEASE)" |
9 |
endif |
10 |
@@ -9,15 +9,20 @@ |
11 |
OBJCOPY = $(CROSS_COMPILE)objcopy |
4 |
|
12 |
|
5 |
ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,) |
13 |
ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,) |
6 |
|
14 |
+ |
7 |
+ifeq ($(ARCH),amd64) |
15 |
+ifeq ($(ARCH),amd64) |
8 |
+ override ARCH := x86_64 |
16 |
+ override ARCH := x86_64 |
9 |
+endif |
17 |
+endif |
10 |
+ |
18 |
+ |
|
|
19 |
OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.* //g' | cut -f1-2 -d.` \>= 2.24) |
20 |
|
11 |
SUBDIRS = Cryptlib lib |
21 |
SUBDIRS = Cryptlib lib |
12 |
|
22 |
|
13 |
-LIB_PATH = /usr/lib64 |
23 |
-LIB_PATH = /usr/lib64 |
14 |
+LIB_PATH = $(LOCALBASE)/lib |
24 |
+LIB_PATH = /usr/lib -L$(LOCALBASE)/lib |
15 |
|
25 |
|
16 |
-EFI_INCLUDE := /usr/include/efi |
26 |
-EFI_INCLUDE := /usr/include/efi |
17 |
+EFI_INCLUDE := $(LOCALBASE)/include/efi |
27 |
-EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(shell pwd)/include |
18 |
EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -Iinclude |
|
|
19 |
-EFI_PATH := /usr/lib64/gnuefi |
28 |
-EFI_PATH := /usr/lib64/gnuefi |
|
|
29 |
+EFI_INCLUDE := $(LOCALBASE)/include/efi |
30 |
+EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(shell pwd)/include -I/usr/include |
20 |
+EFI_PATH := $(LOCALBASE)/lib |
31 |
+EFI_PATH := $(LOCALBASE)/lib |
21 |
|
32 |
|
22 |
LIB_GCC = $(shell $(CC) -print-libgcc-file-name) |
33 |
LIB_GCC = $(shell $(CC) -print-libgcc-file-name) |
23 |
EFI_LIBS = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC) |
34 |
EFI_LIBS = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC) |
24 |
@@ -57,7 +63,7 @@ LDFLAGS = -nostdlib -znocombreloc -T $( |
35 |
@@ -65,7 +70,7 @@ |
25 |
|
36 |
|
26 |
VERSION = 0.8 |
37 |
LDFLAGS = --hash-style=sysv -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS) --build-id=sha1 |
27 |
|
38 |
|
28 |
-TARGET = shim.efi MokManager.efi.signed fallback.efi.signed |
39 |
-TARGET = shim.efi MokManager.efi.signed fallback.efi.signed |
29 |
+TARGET = shim.efi MokManager.efi fallback.efi |
40 |
+TARGET = shim.efi MokManager.efi fallback.efi |
30 |
OBJS = shim.o netboot.o cert.o replacements.o version.o |
41 |
OBJS = shim.o netboot.o cert.o replacements.o version.o |
31 |
KEYS = shim_cert.h ocsp.* ca.* shim.crt shim.csr shim.p12 shim.pem shim.key shim.cer |
42 |
KEYS = shim_cert.h ocsp.* ca.* shim.crt shim.csr shim.p12 shim.pem shim.key shim.cer |
32 |
SOURCES = shim.c shim.h netboot.c include/PeImage.h include/wincert.h include/console.h replacements.c replacements.h version.c version.h |
43 |
SOURCES = shim.c shim.h netboot.c include/PeImage.h include/wincert.h include/console.h replacements.c replacements.h version.c version.h |
33 |
@@ -144,8 +150,8 @@ FORMAT ?= --target efi-app-$(ARCH) |
44 |
@@ -156,9 +161,6 @@ |
34 |
-j .debug_line -j .debug_str -j .debug_ranges \ |
45 |
-j .note.gnu.build-id \ |
35 |
$(FORMAT) $^ $@.debug |
46 |
$(FORMAT) $^ $@.debug |
36 |
|
47 |
|
37 |
-%.efi.signed: %.efi certdb/secmod.db |
48 |
-%.efi.signed: %.efi certdb/secmod.db |
38 |
- pesign -n certdb -i $< -c "shim" -s -o $@ -f |
49 |
- pesign -n certdb -i $< -c "shim" -s -o $@ -f |
39 |
+#%.efi.signed: %.efi certdb/secmod.db |
50 |
- |
40 |
+# pesign -n certdb -i $< -c "shim" -s -o $@ -f |
|
|
41 |
|
42 |
clean: |
51 |
clean: |
43 |
$(MAKE) -C Cryptlib clean |
52 |
$(MAKE) -C Cryptlib clean |
|
|
53 |
$(MAKE) -C Cryptlib/OpenSSL clean |