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>
NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf\r
}\r
!endif\r
+\r
+ !if $(NETWORK_IP4_ENABLE) == TRUE\r
+ NetworkPkg/Ip4Dxe/Ip4Dxe.inf {\r
+ <LibraryClasses>\r
+ UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf\r
+ <PcdsFixedAtBuild>\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/IPv4Support"\r
+ }\r
+ !endif\r
+\r
+ !if $(NETWORK_IP6_ENABLE) == TRUE\r
+ NetworkPkg/Ip6Dxe/Ip6Dxe.inf {\r
+ <LibraryClasses>\r
+ UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf\r
+ <PcdsFixedAtBuild>\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/IPv6Support"\r
+ }\r
+ !endif\r
!endif\r