mirror of https://github.com/acidanthera/audk.git
OvmfPkg: pull in TLS modules with -D TLS_ENABLE (also enabling HTTPS)
This commit introduces a new build option, TLS_ENABLE, to pull in the TLS-related modules. If HTTP_BOOT_ENABLE and TLS_ENABLE are enabled at the same time, the HTTP driver locates the TLS protocols automatically and thus HTTPS is enabled. To build OVMF with HTTP Boot: $ ./build.sh -D HTTP_BOOT_ENABLE To build OVMF with HTTPS Boot: $ ./build.sh -D HTTP_BOOT_ENABLE -D TLS_ENABLE Cc: Laszlo Ersek <lersek@redhat.com> Cc: Justen Jordan L <jordan.l.justen@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Long Qin <qin.long@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
32e22f20c9
commit
315d9d08fd
|
@ -38,6 +38,7 @@
|
||||||
DEFINE NETWORK_IP6_ENABLE = FALSE
|
DEFINE NETWORK_IP6_ENABLE = FALSE
|
||||||
DEFINE HTTP_BOOT_ENABLE = FALSE
|
DEFINE HTTP_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
|
DEFINE TLS_ENABLE = FALSE
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
@ -162,6 +163,10 @@
|
||||||
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
@ -709,6 +714,10 @@
|
||||||
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
NetworkPkg/HttpDxe/HttpDxe.inf
|
NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
|
@ -325,6 +325,10 @@ INF MdeModulePkg/Logo/LogoDxe.inf
|
||||||
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
INF NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
INF NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
DEFINE NETWORK_IP6_ENABLE = FALSE
|
DEFINE NETWORK_IP6_ENABLE = FALSE
|
||||||
DEFINE HTTP_BOOT_ENABLE = FALSE
|
DEFINE HTTP_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
|
DEFINE TLS_ENABLE = FALSE
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
@ -167,6 +168,10 @@
|
||||||
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
@ -718,6 +723,10 @@
|
||||||
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
NetworkPkg/HttpDxe/HttpDxe.inf
|
NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
|
@ -325,6 +325,10 @@ INF MdeModulePkg/Logo/LogoDxe.inf
|
||||||
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
INF NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
INF NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
DEFINE NETWORK_IP6_ENABLE = FALSE
|
DEFINE NETWORK_IP6_ENABLE = FALSE
|
||||||
DEFINE HTTP_BOOT_ENABLE = FALSE
|
DEFINE HTTP_BOOT_ENABLE = FALSE
|
||||||
DEFINE SMM_REQUIRE = FALSE
|
DEFINE SMM_REQUIRE = FALSE
|
||||||
|
DEFINE TLS_ENABLE = FALSE
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
@ -167,6 +168,10 @@
|
||||||
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
||||||
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
||||||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||||
|
@ -716,6 +721,10 @@
|
||||||
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
NetworkPkg/HttpDxe/HttpDxe.inf
|
NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
|
@ -325,6 +325,10 @@ INF MdeModulePkg/Logo/LogoDxe.inf
|
||||||
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
!if $(TLS_ENABLE) == TRUE
|
||||||
|
INF NetworkPkg/TlsDxe/TlsDxe.inf
|
||||||
|
INF NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
|
||||||
!endif
|
!endif
|
||||||
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue