mirror of https://github.com/acidanthera/audk.git
OvmfPkg: add fw_cfg option for iscsi support
Use UefiDriverEntryPointFwCfgOverrideLib for IScsiDxe so the driver can be enabled/disabled via fw_cfg option. usage: qemu -fw_cfg name=opt/org.tianocore/ISCSISupport,string={yes,no} Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
b9cb18206a
commit
f9335bcb7c
|
@ -42,4 +42,13 @@
|
|||
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/VirtioNetSupport"
|
||||
}
|
||||
|
||||
!if $(NETWORK_ISCSI_ENABLE) == TRUE
|
||||
NetworkPkg/IScsiDxe/IScsiDxe.inf {
|
||||
<LibraryClasses>
|
||||
UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
|
||||
<PcdsFixedAtBuild>
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/ISCSISupport"
|
||||
}
|
||||
!endif
|
||||
|
||||
!endif
|
||||
|
|
Loading…
Reference in New Issue