Skip to content

Commit

Permalink
MdePkg: Add devAuthBoot GlobalVariable
Browse files Browse the repository at this point in the history
According to UEFI 2.10 spec 3.3 Globally Defined Variables section,
add devAuthBoot GlobalVariable.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Cc: Jiewen Yao <[email protected]>
Signed-off-by: Wenxing Hou <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
  • Loading branch information
Wenxing-hou authored and mergify[bot] committed Apr 30, 2024
1 parent 5f391c6 commit 74db2ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion MdePkg/Include/Guid/GlobalVariable.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
GUID for EFI (NVRAM) Variables.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Revision Reference:
Expand Down Expand Up @@ -183,4 +183,10 @@ extern EFI_GUID gEfiGlobalVariableGuid;
///
#define EFI_VENDOR_KEYS_VARIABLE_NAME L"VendorKeys"

///
/// Whether the platform firmware is operating in device authentication boot mode (1) or not (0).
/// The content is UINT8.
///
#define EFI_DEVICE_AUTH_BOOT_MODE_NAME L"devAuthBoot"

#endif
5 changes: 4 additions & 1 deletion MdePkg/Include/Guid/ImageAuthentication.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Image signature database are defined for the signed image validation.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Revision Reference:
Expand Down Expand Up @@ -41,6 +41,9 @@
#define SETUP_MODE 1
#define USER_MODE 0

#define DEVICE_AUTH_BOOT_MODE_ENABLE 1
#define DEVICE_AUTH_BOOT_MODE_DISABLE 0

// ***********************************************************************
// Signature Database
// ***********************************************************************
Expand Down

0 comments on commit 74db2ed

Please sign in to comment.