Yes. Please update them both. 

Thanks
Liming
-----Original Message-----
From: Laszlo Ersek [mailto:ler...@redhat.com] 
Sent: Friday, August 15, 2014 3:34 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [PATCH v3 2/3] MdePkg: introduce 
BaseOrderedCollectionRedBlackTreeLib library instance

On 08/15/14 09:28, Gao, Liming wrote:
> Laszlo:
>   FeaturePcd must use FeaturePcdGet() API to get its value.

The code does comply with this requirement.

>   So, it is a good style to place it into [FeaturePcd] section.
>   Those PCD in [Pcd] section uses PcdGetXXX() to get its value. 

Alright, so it's a style question.

I'll send a followup patch. Do you want me to address PcdVerifyNodeInList too, 
in "MdePkg/Library/BaseLib/BaseLib.inf"?

Thanks,
Laszlo


> 
> Thanks
> Liming
> -----Original Message-----
> From: Laszlo Ersek [mailto:ler...@redhat.com]
> Sent: Friday, August 15, 2014 2:53 PM
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] [PATCH v3 2/3] MdePkg: introduce 
> BaseOrderedCollectionRedBlackTreeLib library instance
> 
> On 08/15/14 08:22, Gao, Liming wrote:
>> Hi, 
>>   I just find one minor issue. PcdValidateOrderedCollection is 
>> PcdsFeatureFlag. It should be listed in [FeaturePcd] instead of [Pcd] 
>> section in INF file.
>>
>> +[Pcd]
>> +  gEfiMdePkgTokenSpaceGuid.PcdValidateOrderedCollection ## CONSUMES
> 
> Thank you for the feedback!
> 
> Is this a strict requirement though? I modeled "PcdValidateOrderedCollection" 
> after "PcdVerifyNodeInList", which is also declared under [PcdsFeatureFlag] 
> in "MdePkg/MdePkg.dec". And, if you search for INF files referencing 
> "PcdVerifyNodeInList", you can find:
> 
> MdePkg/Library/BaseLib/BaseLib.inf:
> 
> [Pcd]
>   gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength
>   gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength
>   gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength
>   gEfiMdePkgTokenSpaceGuid.PcdVerifyNodeInList              <------ here
> 
> That is, the model for "PcdValidateOrderedCollection", 
> "PcdVerifyNodeInList", is also used by INF file(s) in their plain 
> [Pcd] section(s). (See SVN r9016.)
> 
> Thanks,
> Laszlo
> 
> ----------------------------------------------------------------------
> -------- _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> ----------------------------------------------------------------------
> -------- _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 


------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to