OvmfPkg: add runtime switch for sdcard support

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann
2025-05-09 14:38:34 +02:00
committed by mergify[bot]
parent a3c6636d1e
commit 0b0d6e42f4
2 changed files with 16 additions and 1 deletions

View File

@@ -14,7 +14,12 @@
OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
!endif
!if $(SDCARD_ENABLE) == TRUE
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf {
<LibraryClasses>
UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
<PcdsFixedAtBuild>
gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/org.tianocore/SDCardSupport"
}
MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
!endif

View File

@@ -247,3 +247,13 @@ qemu-system-x86_64 -fw_cfg name=opt/org.tianocore/UsbStorageSupport,string=yes
```
## Other: opt/org.tianocore/SDCardSupport
This enables/disables the edk2 drivers SD card support.
Default: enabled. Usage:
```
qemu-system-x86_64 -fw_cfg name=opt/org.tianocore/SDCardSupport,string=no
```