]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg: Allow DXE_DRIVER to depend on NvVarStoreFormattedLib
authorMarcin Wojtas <mw@semihalf.com>
Thu, 25 Apr 2019 09:18:00 +0000 (11:18 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 25 Apr 2019 10:55:08 +0000 (12:55 +0200)
commit20029ca22baaeb9418c1fd9df88d12d32d585cb6
tree1db39b08a6f5505bed8a734e70aaa27389894fb5
parentb9d4847ec25816483d78ec94ac22836e1e8aa749
EmbeddedPkg: Allow DXE_DRIVER to depend on NvVarStoreFormattedLib

Some modules (such as FaultTolerantWriteDxe) use the FlashNvStorage
PCDs (PcdFlashNvStorageFtw*). In case the flash contents are not
mapped in memory, the module loading order of the FVB driver
may become important.

To handle above, this patch allows to hook the dependency of
desired DXE_DRIVER type module in the .DSC file via
NvVarStoreFormattedLib NULL resolution.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf