mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/Bds/BootMenu.c: Set "Fdt" UEFI variable as local
"Fdt" UEFI variable is not a global variable as defined by UEFI specification. Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14104 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
76aee8f4cf
commit
aeaf64d64d
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Component description file for Bds module
|
||||
#
|
||||
# Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
|
||||
# Copyright (c) 2011-2013, ARM Ltd. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -50,6 +50,7 @@
|
|||
|
||||
[Guids]
|
||||
gEfiFileSystemInfoGuid
|
||||
gArmGlobalVariableGuid
|
||||
|
||||
[Protocols]
|
||||
gEfiBdsArchProtocolGuid
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
*
|
||||
* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
|
||||
* Copyright (c) 2011-2013, ARM Limited. All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -14,9 +14,12 @@
|
|||
|
||||
#include "BdsInternal.h"
|
||||
|
||||
#include <Guid/ArmGlobalVariableHob.h>
|
||||
|
||||
extern EFI_HANDLE mImageHandle;
|
||||
extern BDS_LOAD_OPTION_SUPPORT *BdsLoadOptionSupportList;
|
||||
|
||||
|
||||
EFI_STATUS
|
||||
SelectBootDevice (
|
||||
OUT BDS_SUPPORTED_DEVICE** SupportedBootDevice
|
||||
|
@ -511,10 +514,22 @@ UpdateFdtPath (
|
|||
// Append the Device Path node to the select device path
|
||||
FdtDevicePath = AppendDevicePathNode (SupportedBootDevice->DevicePathProtocol, FdtDevicePathNode);
|
||||
FdtDevicePathSize = GetDevicePathSize (FdtDevicePath);
|
||||
Status = gRT->SetVariable ((CHAR16*)L"Fdt", &gEfiGlobalVariableGuid, (EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS ), FdtDevicePathSize, FdtDevicePath);
|
||||
Status = gRT->SetVariable (
|
||||
(CHAR16*)L"Fdt",
|
||||
&gArmGlobalVariableGuid,
|
||||
EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
|
||||
FdtDevicePathSize,
|
||||
FdtDevicePath
|
||||
);
|
||||
ASSERT_EFI_ERROR(Status);
|
||||
} else {
|
||||
gRT->SetVariable ((CHAR16*)L"Fdt", &gEfiGlobalVariableGuid, (EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS ), 0, NULL);
|
||||
gRT->SetVariable (
|
||||
(CHAR16*)L"Fdt",
|
||||
&gArmGlobalVariableGuid,
|
||||
EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
ASSERT_EFI_ERROR(Status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue