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=liming.gao@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 E2CF32118FF2F for ; Tue, 4 Dec 2018 19:59:33 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2018 19:59:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,316,1539673200"; d="scan'208";a="98730822" Received: from shwde7172.ccr.corp.intel.com ([10.239.158.23]) by orsmga008.jf.intel.com with ESMTP; 04 Dec 2018 19:59:32 -0800 From: Liming Gao To: edk2-devel@lists.01.org Date: Wed, 5 Dec 2018 11:59:03 +0800 Message-Id: <1543982345-13708-2-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 In-Reply-To: <1543982345-13708-1-git-send-email-liming.gao@intel.com> References: <1543982345-13708-1-git-send-email-liming.gao@intel.com> Subject: [Patch] edk2 Dscspec: 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: Wed, 05 Dec 2018 03:59:34 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=1292 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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..4c7fa99 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 @@ -239,10 +239,11 @@ The following are common definitions used by multiple section types. ::= {} {} {} ::= "{" {} {[] [ [] ]* } "}" - ::= {} {} {} + ::= {} {} {} {} ::= {} {} {} {} {} ::= "GUID(" ")" + ::= "CODE(" ")" ::= { } {} {} ::= "DEVICE_PATH(" ")" @@ -345,6 +346,11 @@ All C data arrays used in PCD value fields must be byte arrays. The C format GUID style is a special case that is permitted in some fields that use the `` nomenclature. +**_CData_** + +All C data used in PCD value CODE syntax can be C style value to initialize +C structure or Array in C source code. + **_EOL_** The DOS End Of Line: "0x0D 0x0A" character must be used for all EDK II -- 2.13.0.windows.1