summaryrefslogtreecommitdiff
path: root/payloads/external/iPXE
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/external/iPXE')
-rw-r--r--payloads/external/iPXE/Kconfig8
-rw-r--r--payloads/external/iPXE/Makefile4
2 files changed, 12 insertions, 0 deletions
diff --git a/payloads/external/iPXE/Kconfig b/payloads/external/iPXE/Kconfig
index 7cb0d1e249..1636138039 100644
--- a/payloads/external/iPXE/Kconfig
+++ b/payloads/external/iPXE/Kconfig
@@ -113,5 +113,13 @@ config PXE_SCRIPT
Uses the ipxe script instead showing the prompt:
"Press Ctrl-B to start iPXE..."
+config PXE_HAS_HTTPS
+ bool "Enable HTTPS protocol"
+ default y
+ depends on BUILD_IPXE
+ help
+ Enable HTTPS protocol, which allows you to encrypt all communication
+ with a web server and to verify the server's identity
+
endmenu
endif
diff --git a/payloads/external/iPXE/Makefile b/payloads/external/iPXE/Makefile
index 0c071fa13b..489bcfae9c 100644
--- a/payloads/external/iPXE/Makefile
+++ b/payloads/external/iPXE/Makefile
@@ -65,6 +65,10 @@ ifeq ($(CONFIG_PXE_NO_PROMT),y)
sed 's|#define\s*BANNER_TIMEOUT.*|#define BANNER_TIMEOUT 0|' "$(project_dir)/src/config/general.h" > "$(project_dir)/src/config/general.h.tmp"
mv "$(project_dir)/src/config/general.h.tmp" "$(project_dir)/src/config/general.h"
endif
+ifeq ($(CONFIG_PXE_HAS_HTTPS),y)
+ sed 's|.*DOWNLOAD_PROTO_HTTPS|#define DOWNLOAD_PROTO_HTTPS|g' "$(project_dir)/src/config/general.h" > "$(project_dir)/src/config/general.h.tmp"
+ mv "$(project_dir)/src/config/general.h.tmp" "$(project_dir)/src/config/general.h"
+endif
build: config $(CONFIG_SCRIPT)
ifeq ($(CONFIG_HAS_SCRIPT),y)