mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-24 09:34:15 +00:00

print_crypto_errors() will pull in the whole openssl library which bloats the size of fallback.efi. Move the function to an independent file (lib/print_crypto.c) to reduce the file size of fallback.efi from 1.3MB to 93KB. Signed-off-by: Gary Lin <glin@suse.com>
17 lines
341 B
Makefile
17 lines
341 B
Makefile
TARGET = lib.a
|
|
|
|
LIBFILES = $(foreach x,$(wildcard *.c),$(patsubst %.c,%.o,$(x)))
|
|
|
|
EFI_INCLUDES = -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(TOPDIR)/../include \
|
|
-I$(TOPDIR)/CryptLib/Include/openssl/
|
|
|
|
lib.a: $(LIBFILES)
|
|
$(AR) rcs lib.a $(LIBFILES)
|
|
|
|
all: $(TARGET)
|
|
|
|
clean:
|
|
rm -f lib.a
|
|
rm -f $(LIBFILES)
|
|
|