From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4FA391A1E25 for ; Tue, 23 Aug 2016 20:13:30 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 23 Aug 2016 20:13:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,568,1464678000"; d="scan'208";a="160111937" Received: from shwde7156.ccr.corp.intel.com ([10.239.158.52]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2016 20:13:29 -0700 From: Eric Dong To: edk2-devel@lists.01.org Cc: Ruiyu Ni Date: Wed, 24 Aug 2016 11:13:28 +0800 Message-Id: <1472008408-54316-1-git-send-email-eric.dong@intel.com> X-Mailer: git-send-email 2.6.4.windows.1 Subject: [Patch] MdeModulePkg UefiBootManagerLib: Add OptioalData for boot option. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 03:13:30 -0000 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 Cc: Ruiyu Ni --- 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