Skip to content

Commit

Permalink
OvmfPkg: use NetworkDynamicPcds include file
Browse files Browse the repository at this point in the history
Start using the include file in the OvmfPkg package to manage dynamic
network-related PCDs. This change removes the manual addition of
`PcdIPv4PXESupport` and `PcdIPv6PXESupport` from the DSC file,
relying instead on the centralized include file introduced in
NetworkPkg.

Cc: Ard Biesheuvel <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Jianyong Wu <[email protected]>
Cc: Anatol Belski <[email protected]>
Cc: Sunil V L <[email protected]>
Cc: Andrei Warkentin <[email protected]>
Cc: Chao Li <[email protected]>
Cc: Bibo Mao <[email protected]>
Cc: Xianglai Li <[email protected]>
Signed-off-by: Aleksandr Goncharov <[email protected]>
  • Loading branch information
Joursoir committed Sep 8, 2024
1 parent 7c0f238 commit 503f1c6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 25 deletions.
4 changes: 1 addition & 3 deletions OvmfPkg/CloudHv/CloudHvX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,7 @@

!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc

# IPv4 and IPv6 PXE Boot support.
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

# Set ConfidentialComputing defaults
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
Expand Down
6 changes: 1 addition & 5 deletions OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,7 @@
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress |0xFFFFFFFFFFFFFFFF

#
# IPv4 and IPv6 PXE Boot support.
#
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport | 0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport | 0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

#
# SMBIOS entry point version
Expand Down
4 changes: 1 addition & 3 deletions OvmfPkg/Microvm/MicrovmX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,7 @@

gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00

# IPv4 and IPv6 PXE Boot support.
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

# Set ConfidentialComputing defaults
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
Expand Down
4 changes: 1 addition & 3 deletions OvmfPkg/OvmfPkgIa32.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,7 @@

!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc

# IPv4 and IPv6 PXE Boot support.
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

# Set ConfidentialComputing defaults
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
Expand Down
4 changes: 1 addition & 3 deletions OvmfPkg/OvmfPkgIa32X64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,7 @@
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000

[PcdsDynamicDefault.X64]
# IPv4 and IPv6 PXE Boot support.
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

[PcdsDynamicHii]
!include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
Expand Down
4 changes: 1 addition & 3 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,7 @@

!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc

# IPv4 and IPv6 PXE Boot support.
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

# Set ConfidentialComputing defaults
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
Expand Down
6 changes: 1 addition & 5 deletions OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0

#
# IPv4 and IPv6 PXE Boot support.
#
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
!include NetworkPkg/NetworkDynamicPcds.dsc.inc

#
# TPM2 support
Expand Down

0 comments on commit 503f1c6

Please sign in to comment.