OvmfPkg: replace SECURE_BOOT_FEATURE_ENABLED with PcdSecureBootSupported
Drop the '-D SECURE_BOOT_FEATURE_ENABLED' compile time option, use a new FeaturePcd instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
a818a873e5
commit
92da8a154f
@@ -28,14 +28,12 @@ ConnectNvVarsToFileSystem (
|
||||
IN EFI_HANDLE FsHandle
|
||||
)
|
||||
{
|
||||
#ifdef SECURE_BOOT_FEATURE_ENABLED
|
||||
|
||||
return EFI_UNSUPPORTED;
|
||||
|
||||
#else
|
||||
|
||||
EFI_STATUS Status;
|
||||
|
||||
if (FeaturePcdGet (PcdSecureBootSupported)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// We might fail to load the variable, since the file system initially
|
||||
// will not have the NvVars file.
|
||||
@@ -52,7 +50,6 @@ ConnectNvVarsToFileSystem (
|
||||
}
|
||||
|
||||
return Status;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -47,6 +47,8 @@
|
||||
[Protocols]
|
||||
gEfiSimpleFileSystemProtocolGuid ## CONSUMES
|
||||
|
||||
[Pcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported
|
||||
|
||||
[Guids]
|
||||
gEfiFileInfoGuid
|
||||
|
Reference in New Issue
Block a user