From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=bob.c.feng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 C0C1E211B15AA for ; Mon, 7 Jan 2019 23:41:44 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2019 23:41:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,453,1539673200"; d="scan'208";a="265355667" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 07 Jan 2019 23:41:43 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 7 Jan 2019 23:41:43 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 7 Jan 2019 23:41:42 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.196]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.85]) with mapi id 14.03.0415.000; Tue, 8 Jan 2019 15:41:41 +0800 From: "Feng, Bob C" To: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: [Patch v2] Dsc Spec: Add the syntax to initialize structure PCD with C style value Thread-Index: AQHUpxaCuFNGAR0nAU2Oqe7eczV3KaWk/PBQ Date: Tue, 8 Jan 2019 07:41:41 +0000 Message-ID: <08650203BA1BD64D8AD9B6D5D74A85D16005351D@SHSMSX101.ccr.corp.intel.com> References: <20190108055314.14980-1-liming.gao@intel.com> In-Reply-To: <20190108055314.14980-1-liming.gao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch v2] Dsc Spec: Add the syntax to initialize structure PCD with C style value X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 07:41:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng =20 -----Original Message----- From: Gao, Liming=20 Sent: Tuesday, January 8, 2019 1:53 PM To: edk2-devel@lists.01.org Cc: Feng, Bob C Subject: [Patch v2] Dsc Spec: Add the syntax to initialize structure PCD wi= th C style value In V2: Update Pcd Field value assignment with array index. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1292 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Bob Feng --- 3_edk_ii_dsc_file_format/33_platform_dsc_definition.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/3_edk_ii_dsc_file_format/33_platform_dsc_definition.md b/3_edk= _ii_dsc_file_format/33_platform_dsc_definition.md index 0ff9d9d..07f10d6 100644 --- a/3_edk_ii_dsc_file_format/33_platform_dsc_definition.md +++ b/3_edk_ii_dsc_file_format/33_platform_dsc_definition.md @@ -192,7 +192,7 @@ The following are common definitions used by multiple s= ection types. ::=3D {} {"{""}"} ::=3D (A-Z)(A-Z0-9_)* ::=3D "$(" ")" - ::=3D "." "." + ::=3D "." ["[""]"]* "." ::=3D "." ::=3D ::=3D @@ -239,10 +239,11 @@ The following are common definitions used by multiple= section types. ::=3D {} {} {} ::=3D "{" {} {[] [ [] ]* } "}" - ::=3D {} {} {} + ::=3D {} {} {} {} ::=3D {} {} {} {} {} ::=3D "GUID(" ")" + ::=3D "CODE(" ")" ::=3D { } {} {} ::=3D "DEVICE_PATH(" ")" @@ -345,6 +346,11 @@ All C data arrays used in PCD value fields must be byt= e arrays. The C format GUID style is a special case that is permitted in s= ome fields that use the `` nomenclature. =20 +**_CData_** + +All C data used in PCD value CODE syntax can be C style value to=20 +initialize C structure or Array in C source code. + **_EOL_** =20 The DOS End Of Line: "0x0D 0x0A" character must be used for all EDK II -- 2.13.0.windows.1