mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 00:50:29 -04:00
In file included from /usr/local/include/efi/efi.h:35:0, from shim.c:36: /usr/local/include/efi/x86_64/efibind.h:88:24: fatal error: stdint.h: No such file or directory PR: 216707 Reported by: antoine (via exp-run)
43 lines
1.6 KiB
Text
43 lines
1.6 KiB
Text
--- Makefile.orig 2014-10-13 22:41:51.000000000 +0200
|
|
+++ Makefile 2014-12-21 16:18:40.000000000 +0100
|
|
@@ -4,13 +1,17 @@
|
|
|
|
ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)
|
|
|
|
+ifeq ($(ARCH),amd64)
|
|
+ override ARCH := x86_64
|
|
+endif
|
|
+
|
|
SUBDIRS = Cryptlib lib
|
|
|
|
-LIB_PATH = /usr/lib64
|
|
+LIB_PATH = $(LOCALBASE)/lib
|
|
|
|
-EFI_INCLUDE := /usr/include/efi
|
|
+EFI_INCLUDE := $(LOCALBASE)/include/efi
|
|
EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -Iinclude
|
|
-EFI_PATH := /usr/lib64/gnuefi
|
|
+EFI_PATH := $(LOCALBASE)/lib
|
|
|
|
LIB_GCC = $(shell $(CC) -print-libgcc-file-name)
|
|
EFI_LIBS = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC)
|
|
@@ -57,7 +63,7 @@ LDFLAGS = -nostdlib -znocombreloc -T $(
|
|
|
|
VERSION = 0.8
|
|
|
|
-TARGET = shim.efi MokManager.efi.signed fallback.efi.signed
|
|
+TARGET = shim.efi MokManager.efi fallback.efi
|
|
OBJS = shim.o netboot.o cert.o replacements.o version.o
|
|
KEYS = shim_cert.h ocsp.* ca.* shim.crt shim.csr shim.p12 shim.pem shim.key shim.cer
|
|
SOURCES = shim.c shim.h netboot.c include/PeImage.h include/wincert.h include/console.h replacements.c replacements.h version.c version.h
|
|
@@ -144,8 +150,8 @@ FORMAT ?= --target efi-app-$(ARCH)
|
|
-j .debug_line -j .debug_str -j .debug_ranges \
|
|
$(FORMAT) $^ $@.debug
|
|
|
|
-%.efi.signed: %.efi certdb/secmod.db
|
|
- pesign -n certdb -i $< -c "shim" -s -o $@ -f
|
|
+#%.efi.signed: %.efi certdb/secmod.db
|
|
+# pesign -n certdb -i $< -c "shim" -s -o $@ -f
|
|
|
|
clean:
|
|
$(MAKE) -C Cryptlib clean
|