From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by ml01.01.org (Postfix) with ESMTP id BFF951A1DF3 for ; Mon, 8 Aug 2016 18:25:06 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 08 Aug 2016 18:25:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,493,1464678000"; d="scan'208";a="1032110932" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga002.jf.intel.com with ESMTP; 08 Aug 2016 18:25:05 -0700 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Liming Gao , Eric Dong Date: Tue, 9 Aug 2016 09:24:56 +0800 Message-Id: <1470705898-99100-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [PATCH v2 0/2] Share default value if some default value are not specified 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: Tue, 09 Aug 2016 01:25:06 -0000 Add a new implementation policy of get default value in HiiDatabaseDxe and SetupBrowserDxe. The new policy is only for the situation that a question has default value but doesn't have default value for all supported default type. In this case, we will choose the smallest default id from the existing defaults, and share its value to other default id which has no default value. Notes: v1->V2: -Patch 1: Clarify that when the type of DefaultValueData is DefaultValueFromOtherDefault, it can be overrode by itself. -Patch 2: Generate DefaultStoreList as ascending order directly instead of using function GetDefaultIdArray(). Cc: Liming Gao Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Dandan Bi (2): MdeModulePkg/HiiDB: Share default if some default value are not specified MdeModulePkg/Browser: Share default if some default value are not specified .../Universal/HiiDatabaseDxe/ConfigRouting.c | 116 ++++++++++++++++++--- .../Universal/HiiDatabaseDxe/HiiDatabase.h | 2 + MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 25 ++++- MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 23 +++- 4 files changed, 145 insertions(+), 21 deletions(-) -- 1.9.5.msysgit.1