From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D870A207E36C6 for ; Tue, 22 May 2018 21:50:31 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 21:50:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,431,1520924400"; d="scan'208";a="53102654" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 22 May 2018 21:50:30 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 22 May 2018 21:50:30 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 22 May 2018 21:50:30 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.240]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.40]) with mapi id 14.03.0319.002; Wed, 23 May 2018 12:50:27 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Shaw, Kevin W" Thread-Topic: [Patch] Build spec: Add module scoped `` section override scope statement Thread-Index: AQHT8khZs8Z3u93AOkuCtEp11pSaC6Q8vovA Date: Wed, 23 May 2018 04:50:27 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E22F2EB@SHSMSX104.ccr.corp.intel.com> References: <1527047060-5028-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1527047060-5028-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] Build spec: Add module scoped `` section override scope statement X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 04:50:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: Zhu, Yonghong >Sent: Wednesday, May 23, 2018 11:44 AM >To: edk2-devel@lists.01.org >Cc: Gao, Liming ; Kinney, Michael D >; Shaw, Kevin W >Subject: [Patch] Build spec: Add module scoped `` section override >scope statement > >Cc: Liming Gao >Cc: Michael Kinney >Cc: Kevin W Shaw >Contributed-under: TianoCore Contribution Agreement 1.1 >Signed-off-by: Yonghong Zhu >--- > 8_pre-build_autogen_stage/82_auto-generation_process.md | 7 ++++++- > README.md | 1 + > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/8_pre-build_autogen_stage/82_auto-generation_process.md >b/8_pre-build_autogen_stage/82_auto-generation_process.md >index b4b59db..8f8f29b 100644 >--- a/8_pre-build_autogen_stage/82_auto-generation_process.md >+++ b/8_pre-build_autogen_stage/82_auto-generation_process.md >@@ -258,11 +258,11 @@ From the DSC file, the build tools collect the mappi= ng >between library classes > and library instances (INF files), PCD data for the whole platform, the l= ist of > modules (INF files) specified for the platform, and the build output dire= ctory. > Optionally, the name of the flash image layout description (FDF) file and= build > options specific to the platform are also obtained. Parsing FDF file at t= his > time is just for the PCD information which might be used by some modules, >and >-merge these PDC values into the information set of PCDs in DSC file. >+merge these PCD values into the information set of PCDs in DSC file. > > A PCD entry must only be listed once per section in the DSC or FDF files. > > Multiple library class instances for a single library class must not be > specified in the same `[LibraryClasses]` or `` section in= the >@@ -839,10 +839,15 @@ default method. > listed in a `PcdsDynamicEx` section, then use DynamicEx. > > * If not listed in any of the previous sections, and the PCD is listed in= the > `PcdsDynamic` section, then use Dynamic. > >+If the Platform Integrator does not specify the format, and the PCD state= is >+in Platform DSC file `[Components]` section module scoped `` sectio= n, >+then the PCD used in `[Components]` section module or its linked library = INF >+files will use the module scoped `` type as default type. >+ > Build tools are required to process PCD values for `VOID*` PCDs into byte > arrays, C format GUIDs or as C format strings (either ASCII or [L]"string= ") > prior to autogenerating the code. > > PCD values stored in VPD regions are processed prior to completing the fi= nal >diff --git a/README.md b/README.md >index 9fb7e93..18e46c9 100644 >--- a/README.md >+++ b/README.md >@@ -223,5 +223,6 @@ Copyright (c) 2008-2017, Intel Corporation. All rights >reserved. > | | [#775](https://bugzilla.tianocore.org/show_bug.cgi?id=3D77= 5) Build >spec: Add description about auto detect thread number >| | > | | Add Flexible PCD value format into spec >| | > | | Update PCD value and SKU, DefaultStore info in build repor= t >| | > | | Clarify structure PCD field value assignment precedence >| | > | | Update description for build handles PCDs for SKU support >| | >+| | Add statement about module scoped `` section overrid= e >scope >| | >-- >2.6.1.windows.1