public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Question regarding structure PCD
@ 2018-03-26 18:51 jbrasen.qdt
  2018-03-26 20:16 ` Kinney, Michael D
  0 siblings, 1 reply; 3+ messages in thread
From: jbrasen.qdt @ 2018-03-26 18:51 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hello,

   I was implementing support for PCDs in my platform using the new structure PCD support, and I had a question regarding this. Is it possible in the dec file to define the default values of a PCD defined as a structure using this format or just the byte array format?

Thanks,
Jeff Brasen



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question regarding structure PCD
  2018-03-26 18:51 Question regarding structure PCD jbrasen.qdt
@ 2018-03-26 20:16 ` Kinney, Michael D
  2018-03-27  9:31   ` Laszlo Ersek
  0 siblings, 1 reply; 3+ messages in thread
From: Kinney, Michael D @ 2018-03-26 20:16 UTC (permalink / raw)
  To: jbrasen.qdt, edk2-devel@lists.01.org, Kinney, Michael D,
	Gao, Liming

Jeff,

You can provide default values for structure fields
in the DEC file.

Liming has an example posted in the following branch:

https://github.com/lgao4/edk2/tree/UDK2018

DEC file example in TestPkg:

https://github.com/lgao4/edk2/blob/UDK2018/TestPkg/TestPkg.dec

Mike

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-
> bounces@lists.01.org] On Behalf Of jbrasen.qdt
> Sent: Monday, March 26, 2018 11:51 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] Question regarding structure PCD
> 
> Hello,
> 
>    I was implementing support for PCDs in my platform
> using the new structure PCD support, and I had a
> question regarding this. Is it possible in the dec file
> to define the default values of a PCD defined as a
> structure using this format or just the byte array
> format?
> 
> Thanks,
> Jeff Brasen
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question regarding structure PCD
  2018-03-26 20:16 ` Kinney, Michael D
@ 2018-03-27  9:31   ` Laszlo Ersek
  0 siblings, 0 replies; 3+ messages in thread
From: Laszlo Ersek @ 2018-03-27  9:31 UTC (permalink / raw)
  To: jbrasen.qdt; +Cc: Kinney, Michael D, edk2-devel@lists.01.org, Gao, Liming

On 03/26/18 22:16, Kinney, Michael D wrote:
> Jeff,
> 
> You can provide default values for structure fields
> in the DEC file.
> 
> Liming has an example posted in the following branch:
> 
> https://github.com/lgao4/edk2/tree/UDK2018
> 
> DEC file example in TestPkg:
> 
> https://github.com/lgao4/edk2/blob/UDK2018/TestPkg/TestPkg.dec

Liming also posted a DEC spec (i.e. documentation) patch recently:

  [edk2] [Patch] DecSpecification: Add structure PCD definition syntax

It's upstream now and the rendered version can be seen here:

https://edk2-docs.gitbooks.io/edk-ii-dec-specification/content/3_edk_ii_dec_file_format/310_pcd_sections.html

https://edk2-docs.gitbooks.io/edk-ii-dec-specification/content/3_edk_ii_dec_file_format/32_package_declaration_dec_definitions.html

Laszlo

>> -----Original Message-----
>> From: edk2-devel [mailto:edk2-devel-
>> bounces@lists.01.org] On Behalf Of jbrasen.qdt
>> Sent: Monday, March 26, 2018 11:51 AM
>> To: edk2-devel@lists.01.org
>> Subject: [edk2] Question regarding structure PCD
>>
>> Hello,
>>
>>    I was implementing support for PCDs in my platform
>> using the new structure PCD support, and I had a
>> question regarding this. Is it possible in the dec file
>> to define the default values of a PCD defined as a
>> structure using this format or just the byte array
>> format?
>>
>> Thanks,
>> Jeff Brasen
>>
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-27  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26 18:51 Question regarding structure PCD jbrasen.qdt
2018-03-26 20:16 ` Kinney, Michael D
2018-03-27  9:31   ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox