NorFlashDxe.c\r
NorFlashFvbDxe.c\r
NorFlashBlockIoDxe.c\r
- NorFlashAuthenticatedVariableDep.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
[Guids]\r
gEfiSystemNvDataFvGuid\r
+ gEfiVariableGuid\r
gEfiAuthenticatedVariableGuid\r
gEfiEventVirtualAddressChangeGuid\r
\r
+++ /dev/null
-/** @file NorFlashAuthenticatedVariableDep.c\r
-\r
- Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>\r
-\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include <Base.h>\r
-\r
-#include <Include/Guid/AuthenticatedVariableFormat.h>\r
-\r
-CONST EFI_GUID* CONST mNorFlashVariableGuid = &gEfiAuthenticatedVariableGuid;\r
NOR_FLASH_DEVICE_PATH DevicePath;\r
};\r
\r
-extern CONST EFI_GUID* CONST mNorFlashVariableGuid;\r
-\r
EFI_STATUS\r
NorFlashReadCfiData (\r
IN UINTN DeviceBaseAddress,\r
NorFlashDxe.c\r
NorFlashFvbDxe.c\r
NorFlashBlockIoDxe.c\r
- NorFlashVariableDep.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
[Guids]\r
gEfiSystemNvDataFvGuid\r
gEfiVariableGuid\r
+ gEfiAuthenticatedVariableGuid\r
gEfiEventVirtualAddressChangeGuid\r
\r
[Protocols]\r
// VARIABLE_STORE_HEADER\r
//\r
VariableStoreHeader = (VARIABLE_STORE_HEADER*)((UINTN)Headers + FirmwareVolumeHeader->HeaderLength);\r
- CopyGuid (&VariableStoreHeader->Signature, mNorFlashVariableGuid);\r
+ CopyGuid (&VariableStoreHeader->Signature, &gEfiAuthenticatedVariableGuid);\r
VariableStoreHeader->Size = PcdGet32(PcdFlashNvStorageVariableSize) - FirmwareVolumeHeader->HeaderLength;\r
VariableStoreHeader->Format = VARIABLE_STORE_FORMATTED;\r
VariableStoreHeader->State = VARIABLE_STORE_HEALTHY;\r
VariableStoreHeader = (VARIABLE_STORE_HEADER*)((UINTN)FwVolHeader + FwVolHeader->HeaderLength);\r
\r
// Check the Variable Store Guid\r
- if (!CompareGuid (&VariableStoreHeader->Signature, mNorFlashVariableGuid)) {\r
+ if (!CompareGuid (&VariableStoreHeader->Signature, &gEfiVariableGuid) &&\r
+ !CompareGuid (&VariableStoreHeader->Signature, &gEfiAuthenticatedVariableGuid)) {\r
DEBUG ((EFI_D_INFO, "%a: Variable Store Guid non-compatible\n",\r
__FUNCTION__));\r
return EFI_NOT_FOUND;\r
+++ /dev/null
-/** @file NorFlashVariableDep.c\r
-\r
- Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>\r
-\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include <Base.h>\r
-\r
-#include <Include/Guid/VariableFormat.h>\r
-\r
-CONST EFI_GUID* CONST mNorFlashVariableGuid = &gEfiVariableGuid;\r