NetworkPkg: Add PCD to control http boot enable or disable.

Add PCD to control http boot enable or disable.

Signed-off-by: jie.fu <jie.fu@cixtech.com>
This commit is contained in:
mark.li
2025-06-09 17:28:10 +08:00
committed by mergify[bot]
parent 614d5ba332
commit f9408b7cc1
4 changed files with 21 additions and 0 deletions

View File

@ -305,6 +305,10 @@ HttpBootIp4DxeDriverBindingSupported (
{
EFI_STATUS Status;
if (PcdGetBool (PcdIPv4HttpSupport) == FALSE) {
return EFI_UNSUPPORTED;
}
//
// Try to open the DHCP4, HTTP4 and Device Path protocol.
//
@ -795,6 +799,10 @@ HttpBootIp6DxeDriverBindingSupported (
{
EFI_STATUS Status;
if (PcdGetBool (PcdIPv6HttpSupport) == FALSE) {
return EFI_UNSUPPORTED;
}
//
// Try to open the DHCP6, HTTP and Device Path protocol.
//

View File

@ -99,6 +99,8 @@
gEfiNetworkPkgTokenSpaceGuid.PcdHttpIoTimeout ## CONSUMES
gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpResumeRetries ## CONSUMES
gEfiNetworkPkgTokenSpaceGuid.PcdHttpDelayBetweenResumeRetries ## CONSUMES
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport ## CONSUMES
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport ## CONSUMES
[UserExtensions.TianoCore."ExtraFiles"]
HttpBootDxeExtra.uni

View File

@ -18,3 +18,8 @@
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!endif
#
# IPv4 and IPv6 HTTP Boot support.
#
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport|TRUE
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport|TRUE

View File

@ -187,6 +187,12 @@
# @Prompt The value of Retry Count, Default value is 0.
gEfiNetworkPkgTokenSpaceGuid.PcdHttpDnsRetryCount|0|UINT32|0x00000011
## IPv4 HTTP support
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4HttpSupport|TRUE|BOOLEAN|0x10000012
## IPv6 HTTP support
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6HttpSupport|TRUE|BOOLEAN|0x10000013
## The default size of the HTTP transfer data buffer in bytes.
# This size is used for HTTP transfers, with a default value of 2MB.
# Increasing the buffer size can enhance performance for high-bandwidth connections.