mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 06:34:30 +02:00
OvmfPkg: add fw_cfg option for virtio-net support
Use UefiDriverEntryPointFwCfgOverrideLib for VirtioNetDxe so the driver can be enabled/disabled via fw_cfg option. usage: qemu -fw_cfg name=opt/org.tianocore/VirtioNetSupport,string={yes,no} Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5be587067a
commit
b9cb18206a
@ -35,6 +35,11 @@
|
|||||||
}
|
}
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
OvmfPkg/VirtioNetDxe/VirtioNet.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
|
||||||
|
<PcdsFixedAtBuild>
|
||||||
|
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/VirtioNetSupport"
|
||||||
|
}
|
||||||
|
|
||||||
!endif
|
!endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user