mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Wire up the newly added UefiDriverEntrypoint in a way that ties dispatch of the Ip4Dxe and Ip6Dxe drivers to QEMU fw_cfg variables 'opt/org.tianocore/IPv4Support' and 'opt/org.tianocore/IPv6Support' respectively. Setting both variables to 'n' disables IP based networking entirely, without the need for additional code changes at the NIC driver or network boot protocol level. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
##
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
##
|
|
|
|
!if $(NETWORK_ENABLE) == TRUE
|
|
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
|
|
<LibraryClasses>
|
|
NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
|
|
}
|
|
|
|
!if $(NETWORK_TLS_ENABLE) == TRUE
|
|
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
|
|
<LibraryClasses>
|
|
NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
|
|
}
|
|
!endif
|
|
|
|
!if $(NETWORK_IP4_ENABLE) == TRUE
|
|
NetworkPkg/Ip4Dxe/Ip4Dxe.inf {
|
|
<LibraryClasses>
|
|
UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
|
|
<PcdsFixedAtBuild>
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/IPv4Support"
|
|
}
|
|
!endif
|
|
|
|
!if $(NETWORK_IP6_ENABLE) == TRUE
|
|
NetworkPkg/Ip6Dxe/Ip6Dxe.inf {
|
|
<LibraryClasses>
|
|
UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
|
|
<PcdsFixedAtBuild>
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/IPv6Support"
|
|
}
|
|
!endif
|
|
!endif
|