diff --git a/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc b/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc index 3dc3bbdae7f8..0d5626838a99 100644 --- a/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc +++ b/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc @@ -151,12 +151,12 @@ CustomizedDisplayLib | MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf DebugPrintErrorLevelLib | MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf TpmMeasurementLib | MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf -!if $(SECURE_BOOT_ENABLE) == TRUE - PlatformSecureLib | OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf - AuthVariableLib | SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf - SecureBootVariableLib | SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf - SecureBootVariableProvisionLib | SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf - PlatformPKProtectionLib | SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf +!if $(SECURE_BOOT_ENABLE) == TRUE + PlatformSecureLib | SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf + AuthVariableLib | SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib | SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib | SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf + PlatformPKProtectionLib | SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf !else AuthVariableLib | MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf !endif