mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
OvmfPkg: add runtime switch for sdcard support
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a3c6636d1e
commit
0b0d6e42f4
2 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue