mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Fix unable to build OVMF with -D NETWORK_ENABLE=0
https://bugzilla.tianocore.org/show_bug.cgi?id=48297f17a15
(2024/02/22) "OvmfPkg: Shell*.inc: allow building without network support" breaks building OVMF with `-D NETWORK_ENABLE=0`. Before this commit we could build OVMF e.g. with the following command in the OvmfPkg directory: ./build.sh -D NETWORK_ENABLE=0 After the commit the same command fails early with: /home/user/OpenSource/edk2/OvmfPkg/OvmfPkgX64.dsc(15): error F001: Pcd (gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections) defined in DSC is not declared in DEC files referenced in INF files in FDF. Arch: ['X64'] The problem applies in Intel OvmfPkg platforms. Additionally, it applies in various other OvmfPkg platforms, but is masked buy another issue; namely that these platforms incorrectly still include some network packages when most are disabled. (A fix for that issue has previously been made, in OvmfPkg Intel platforms only, byd933ec1
followed by7f17a15
.) This commit conditionally removes the undefined Pcd references in all OvmfPkg platforms which are now affected by this issue, and in all those which would be affected as and when the other issue mentioned above is fixed. Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
This commit is contained in:
parent
fc45afee2b
commit
e3362a759d
|
@ -631,9 +631,11 @@
|
|||
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
|
|
@ -647,9 +647,11 @@
|
|||
|
||||
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
|
|
@ -668,9 +668,11 @@
|
|||
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
|
|
@ -685,9 +685,11 @@
|
|||
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
||||
|
||||
[PcdsDynamicDefault.X64]
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
[PcdsDynamicHii]
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
|
||||
|
|
|
@ -697,9 +697,11 @@
|
|||
|
||||
!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
# Set ConfidentialComputing defaults
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
|
||||
|
|
|
@ -217,11 +217,13 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
#
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
#
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
||||
#
|
||||
# TPM2 support
|
||||
|
|
Loading…
Reference in New Issue