From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web12.20661.1621848318087911213 for ; Mon, 24 May 2021 02:25:18 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: 9NiSybQ1fEPt2FqTq0VSEncuqmmKFVk7MOUr0AIXyqDIua7EKJYW1+PdDxynjzI39RenR3fTBd oyIsrUbcYO4A== X-IronPort-AV: E=McAfee;i="6200,9189,9993"; a="263104095" X-IronPort-AV: E=Sophos;i="5.82,319,1613462400"; d="scan'208";a="263104095" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 02:25:15 -0700 IronPort-SDR: QNgP4oHcgh5wMvUTz2BCruQMrP2xqQuO4vj/BiwkXaBQZCdMzEKvkCkKEETbkhVhehPXQyU+VP aRbB2ab0DfOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,319,1613462400"; d="scan'208";a="545848972" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by fmsmga001.fm.intel.com with ESMTP; 24 May 2021 02:25:14 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Subject: [PATCH 0/2] New feature to enable standalone PCD driver Date: Mon, 24 May 2021 17:24:52 +0800 Message-Id: <20210524092454.1168-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There are cases that different binary is build differently, and both want to use PCD feature. If these two different don't want to use PCD to communicate, they should have a standalone PCD data base, For example, bootloader and payload want to have seperately PCD data base. Zhiguang Liu (2): MdePkg: Standalone PCD driver UefiPayloadPkg: Use standalone PCD driver MdeModulePkg/Universal/PCD/Dxe/Pcd.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++------------------------ MdeModulePkg/Universal/PCD/Dxe/Pcd.inf | 16 ++++++++++++---- MdeModulePkg/Universal/PCD/Dxe/Service.c | 7 ++++++- MdePkg/Include/Protocol/Pcd.h | 5 ----- MdePkg/Include/Protocol/PcdInfo.h | 5 ----- MdePkg/Library/DxePcdLib/DxePcdLib.c | 24 ++++++++++++++++++++---- MdePkg/Library/DxePcdLib/DxePcdLib.inf | 16 ++++++++++++---- MdePkg/Library/DxePcdLib/PayloadPcdLib.inf | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MdePkg/MdePkg.dec | 12 ++++++++++++ UefiPayloadPkg/UefiPayloadPkg.dsc | 9 +++++---- 10 files changed, 189 insertions(+), 51 deletions(-) create mode 100644 MdePkg/Library/DxePcdLib/PayloadPcdLib.inf -- 2.30.0.windows.2