summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-05-29 17:56:45 +0800
committerPeter Jones <pjones@redhat.com>2013-09-26 11:58:01 -0400
commit4a7f9bd4a687f1bca25e86644e53c5ca5ab2bac8 (patch)
tree4cb68742d8c3372ba38c3808d850b8597ba59356 /Makefile
parentc0f8cd721c9770b12824b77f607119d5a7c9ee0a (diff)
downloadefi-boot-shim-4a7f9bd4a687f1bca25e86644e53c5ca5ab2bac8.tar.gz
efi-boot-shim-4a7f9bd4a687f1bca25e86644e53c5ca5ab2bac8.zip
Make EFI_PATH easily resettable from the build command line.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 134d7299..868fb958 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ LIB_PATH = /usr/lib64
EFI_INCLUDE = /usr/include/efi
EFI_INCLUDES = -nostdinc -ICryptlib -ICryptlib/Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
-EFI_PATH = /usr/lib64/gnuefi
+EFI_PATH := /usr/lib64/gnuefi
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)
@@ -88,7 +88,7 @@ Cryptlib/OpenSSL/libopenssl.a:
$(MAKE) -C Cryptlib/OpenSSL
lib/lib.a:
- $(MAKE) -C lib
+ $(MAKE) -C lib EFI_PATH=$(EFI_PATH)
%.efi: %.so
objcopy -j .text -j .sdata -j .data \