public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch] MdeModulePkg UefiBootManagerLib: Add OptioalData for boot option.
@ 2016-08-24  3:13 Eric Dong
  0 siblings, 0 replies; only message in thread
From: Eric Dong @ 2016-08-24  3:13 UTC (permalink / raw)
  To: edk2-devel; +Cc: Ruiyu Ni

When generate boot option by BDS, always append Optional data
which specify it's generated by BDS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
---
 MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
index 6b85f0c..7c45ff5 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
@@ -2287,8 +2287,8 @@ BmRegisterBootManagerMenu (
              LOAD_OPTION_CATEGORY_APP | LOAD_OPTION_ACTIVE | LOAD_OPTION_HIDDEN,
              (Description != NULL) ? Description : L"Boot Manager Menu",
              DevicePath,
-             NULL,
-             0
+             (UINT8*)&mBmAutoCreateBootOptionGuid,
+             sizeof (EFI_GUID)
              );
   ASSERT_EFI_ERROR (Status);
   FreePool (DevicePath);
-- 
2.6.4.windows.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-24  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24  3:13 [Patch] MdeModulePkg UefiBootManagerLib: Add OptioalData for boot option Eric Dong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox