ArmVirtPkg/ArmVirtQemu: port HTTP_BOOT_ENABLE from OvmfPkg
* From commitab44a6e833
("OvmfPkg: Add HttpBoot support", 2015-08-23): - introduce HTTP_BOOT_ENABLE build define - resolve HttpLib class - include NetworkPkg drivers DnsDxe, HttpDxe, HttpBootDxe * From commit1a85139d9e
("OvmfPkg: Build HTTP utilities driver", 2015-08-28): - include NetworkPkg driver HttpUtilitiesDxe * From commit4b2fb7986d
("OvmfPkg: Allow HTTP connections if HTTP Boot enabled", 2017-01-19): - set PcdAllowHttpConnections to TRUE > ## Indicates whether HTTP connections (i.e., unsecured) are permitted or > ## not. > # TRUE - HTTP connections are allowed. Both the "https://" and > # "http://" URI schemes are permitted. > # FALSE - HTTP connections are denied. Only the "https://" URI scheme is > # permitted. > # @Prompt Indicates whether HTTP connections are permitted or not. > gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|FALSE|BOOLEAN|... TLS_ENABLE (for HTTPS) is not ported for the time being. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
# -D FLAG=VALUE
|
# -D FLAG=VALUE
|
||||||
#
|
#
|
||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
|
DEFINE HTTP_BOOT_ENABLE = FALSE
|
||||||
|
|
||||||
!include ArmVirtPkg/ArmVirt.dsc.inc
|
!include ArmVirtPkg/ArmVirt.dsc.inc
|
||||||
|
|
||||||
@@ -63,6 +64,10 @@
|
|||||||
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
||||||
PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
|
PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
|
||||||
|
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_DRIVER]
|
[LibraryClasses.common.UEFI_DRIVER]
|
||||||
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
||||||
|
|
||||||
@@ -124,6 +129,10 @@
|
|||||||
#
|
#
|
||||||
gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
|
gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
|
||||||
|
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
|
||||||
|
!endif
|
||||||
|
|
||||||
# System Memory Base -- fixed at 0x4000_0000
|
# System Memory Base -- fixed at 0x4000_0000
|
||||||
gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
|
gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
|
||||||
|
|
||||||
@@ -338,6 +347,12 @@
|
|||||||
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
||||||
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||||
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
NetworkPkg/DnsDxe/DnsDxe.inf
|
||||||
|
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
|
NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
|
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCSI Bus and Disk Driver
|
# SCSI Bus and Disk Driver
|
||||||
|
@@ -128,6 +128,12 @@ READ_LOCK_STATUS = TRUE
|
|||||||
INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
||||||
INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||||
INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
INF NetworkPkg/DnsDxe/DnsDxe.inf
|
||||||
|
INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
|
INF NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
|
INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCSI Bus and Disk Driver
|
# SCSI Bus and Disk Driver
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
# -D FLAG=VALUE
|
# -D FLAG=VALUE
|
||||||
#
|
#
|
||||||
DEFINE SECURE_BOOT_ENABLE = FALSE
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
||||||
|
DEFINE HTTP_BOOT_ENABLE = FALSE
|
||||||
|
|
||||||
!include ArmVirtPkg/ArmVirt.dsc.inc
|
!include ArmVirtPkg/ArmVirt.dsc.inc
|
||||||
|
|
||||||
@@ -63,6 +64,10 @@
|
|||||||
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
||||||
PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
|
PciHostBridgeLib|ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
|
||||||
|
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_DRIVER]
|
[LibraryClasses.common.UEFI_DRIVER]
|
||||||
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
||||||
|
|
||||||
@@ -129,6 +134,10 @@
|
|||||||
#
|
#
|
||||||
gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
|
gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
|
||||||
|
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
|
||||||
|
!endif
|
||||||
|
|
||||||
[PcdsPatchableInModule.common]
|
[PcdsPatchableInModule.common]
|
||||||
#
|
#
|
||||||
# This will be overridden in the code
|
# This will be overridden in the code
|
||||||
@@ -329,6 +338,12 @@
|
|||||||
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
||||||
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||||
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
||||||
|
!if $(HTTP_BOOT_ENABLE) == TRUE
|
||||||
|
NetworkPkg/DnsDxe/DnsDxe.inf
|
||||||
|
NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
|
||||||
|
NetworkPkg/HttpDxe/HttpDxe.inf
|
||||||
|
NetworkPkg/HttpBootDxe/HttpBootDxe.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCSI Bus and Disk Driver
|
# SCSI Bus and Disk Driver
|
||||||
|
Reference in New Issue
Block a user