summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2015-10-14 17:04:10 +0800
committerPeter Jones <pjones@redhat.com>2016-09-06 14:49:52 -0400
commit3d79bcb2651b9eae809b975b3e03e2f96c067072 (patch)
treea3125f9143e88e160826b6511caaaad84623577e /Makefile
parent8438ae7a012fded349462706426b713ea98f1276 (diff)
downloadefi-boot-shim-3d79bcb2651b9eae809b975b3e03e2f96c067072.tar.gz
efi-boot-shim-3d79bcb2651b9eae809b975b3e03e2f96c067072.zip
Add the optional HTTPBoot support
This commit adds the basic support for HTTPBoot, i.e. to fetch the next stage loader with the HTTP protocol. It requires gnu-efi >= 3.0.3 to support the URI device path and Ip4Config2 or Ip6Config protocol support in the UEFI implementation. To build shim.efi with HTTPBoot support: make ENABLE_HTTPBOOT=1 shim.efi Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5a5fdb10..5949f119 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,10 @@ ifneq ($(origin OVERRIDE_SECURITY_POLICY), undefined)
CFLAGS += -DOVERRIDE_SECURITY_POLICY
endif
+ifneq ($(origin ENABLE_HTTPBOOT), undefined)
+ CFLAGS += -DENABLE_HTTPBOOT
+endif
+
ifeq ($(ARCH),x86_64)
CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc \
-maccumulate-outgoing-args \
@@ -91,6 +95,11 @@ MOK_SOURCES = MokManager.c shim.h include/console.h PasswordCrypt.c PasswordCryp
FALLBACK_OBJS = fallback.o
FALLBACK_SRCS = fallback.c
+ifneq ($(origin ENABLE_HTTPBOOT), undefined)
+ OBJS += httpboot.o
+ SOURCES += httpboot.c httpboot.h
+endif
+
all: $(TARGET)
shim.crt: