public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH V2] BaseTools: Code should not update the variable that save the raw data.
@ 2018-09-25  7:15 Zhao, ZhiqiangX
  2018-10-15  7:17 ` Gao, Liming
  0 siblings, 1 reply; 2+ messages in thread
From: Zhao, ZhiqiangX @ 2018-09-25  7:15 UTC (permalink / raw)
  To: Gao, Liming, edk2-devel@lists.01.org

Hi Liming,

I have update the patch title with more information, please check the attached patch file.

Best Regards,
Zhiqiang Zhao


-----Original Message-----
From: Gao, Liming 
Sent: Tuesday, September 25, 2018 9:05 AM
To: Zhao, ZhiqiangX <zhiqiangx.zhao@intel.com>; edk2-devel@lists.01.org
Cc: Zhu, Yonghong <yonghong.zhu@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
Subject: RE: [PATCH] BaseTools: Correct the SkuOverwrite.

Zhiqiang:
  Please update patch title with more information to describe the correct behavior. 

>-----Original Message-----
>From: Zhao, ZhiqiangX
>Sent: Wednesday, September 12, 2018 11:25 AM
>To: edk2-devel@lists.01.org
>Cc: Zhao, ZhiqiangX <zhiqiangx.zhao@intel.com>; Gao, Liming 
><liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>; Feng, 
>Bob C <bob.c.feng@intel.com>
>Subject: [PATCH] BaseTools: Correct the SkuOverwrite.
>
>StructurePcd, SkuA does not define any structure pcd overwrite, But 
>SkuA inherit from DEFAULT sku, and DEFAULT sku define structure pcd 
>overwrite, the pcd value of SkuA should same with DEFAULT sku.
>
>Contributed-under: TianoCore Contribution Agreement 1.1
>Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com>
>Cc: Liming Gao <liming.gao@intel.com>
>Cc: Yonghong Zhu <yonghong.zhu@intel.com>
>Cc: Bob Feng <bob.c.feng@intel.com>
>---
> BaseTools/Source/Python/Workspace/DscBuildData.py | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
>diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py
>b/BaseTools/Source/Python/Workspace/DscBuildData.py
>index aaef404772..5321101def 100644
>--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
>+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
>@@ -1838,12 +1838,15 @@ class DscBuildData(PlatformBuildClassObject):
>                     IsArray = IsFieldValueAnArray(FieldList[FieldName][0])
>                     if IsArray:
>                         try:
>-                            FieldList[FieldName][0] =
>ValueExpressionEx(FieldList[FieldName][0], TAB_VOID, 
>self._GuidDict)(True)
>+                            FieldValue = 
>+ ValueExpressionEx(FieldList[FieldName][0],
>TAB_VOID, self._GuidDict)(True)
>                         except BadExpression:
>                             EdkLogger.error('Build', FORMAT_INVALID, 
>"Invalid value format for %s. From %s Line %d " %
>                                             
>(".".join((Pcd.TokenSpaceGuidCName,
>Pcd.TokenCName, FieldName)), FieldList[FieldName][1],
>FieldList[FieldName][2]))
>                     try:
>-                        Value, ValueSize = ParseFieldValue (FieldList[FieldName][0])
>+                        if IsArray:
>+                            Value, ValueSize = ParseFieldValue (FieldValue)
>+                        else:
>+                            Value, ValueSize = ParseFieldValue 
>+ (FieldList[FieldName][0])
>                     except Exception:
>                         EdkLogger.error('Build', FORMAT_INVALID, 
>"Invalid value format for %s. From %s Line %d " % 
>(".".join((Pcd.TokenSpaceGuidCName,
>Pcd.TokenCName, FieldName)), FieldList[FieldName][1],
>FieldList[FieldName][2]))
>                     if isinstance(Value, str):
>--
>2.14.1.windows.1



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

* Re: [PATCH V2] BaseTools: Code should not update the variable that save the raw data.
  2018-09-25  7:15 [PATCH V2] BaseTools: Code should not update the variable that save the raw data Zhao, ZhiqiangX
@ 2018-10-15  7:17 ` Gao, Liming
  0 siblings, 0 replies; 2+ messages in thread
From: Gao, Liming @ 2018-10-15  7:17 UTC (permalink / raw)
  To: Zhao, ZhiqiangX, edk2-devel@lists.01.org

Zhiqiang:
   The patch is good to me. Reviewed-by: Liming Gao <liming.gao@intel.com>
  
   But, please remember to send patch mail, not attach the patch for review. 

Thanks
Liming
>-----Original Message-----
>From: Zhao, ZhiqiangX
>Sent: Tuesday, September 25, 2018 3:16 PM
>To: Gao, Liming <liming.gao@intel.com>; edk2-devel@lists.01.org
>Cc: Zhu, Yonghong <yonghong.zhu@intel.com>; Feng, Bob C
><bob.c.feng@intel.com>; Zhao, ZhiqiangX <zhiqiangx.zhao@intel.com>
>Subject: [PATCH V2] BaseTools: Code should not update the variable that save
>the raw data.
>
>Hi Liming,
>
>I have update the patch title with more information, please check the
>attached patch file.
>
>Best Regards,
>Zhiqiang Zhao
>
>
>-----Original Message-----
>From: Gao, Liming
>Sent: Tuesday, September 25, 2018 9:05 AM
>To: Zhao, ZhiqiangX <zhiqiangx.zhao@intel.com>; edk2-devel@lists.01.org
>Cc: Zhu, Yonghong <yonghong.zhu@intel.com>; Feng, Bob C
><bob.c.feng@intel.com>
>Subject: RE: [PATCH] BaseTools: Correct the SkuOverwrite.
>
>Zhiqiang:
>  Please update patch title with more information to describe the correct
>behavior.
>
>>-----Original Message-----
>>From: Zhao, ZhiqiangX
>>Sent: Wednesday, September 12, 2018 11:25 AM
>>To: edk2-devel@lists.01.org
>>Cc: Zhao, ZhiqiangX <zhiqiangx.zhao@intel.com>; Gao, Liming
>><liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>; Feng,
>>Bob C <bob.c.feng@intel.com>
>>Subject: [PATCH] BaseTools: Correct the SkuOverwrite.
>>
>>StructurePcd, SkuA does not define any structure pcd overwrite, But
>>SkuA inherit from DEFAULT sku, and DEFAULT sku define structure pcd
>>overwrite, the pcd value of SkuA should same with DEFAULT sku.
>>
>>Contributed-under: TianoCore Contribution Agreement 1.1
>>Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com>
>>Cc: Liming Gao <liming.gao@intel.com>
>>Cc: Yonghong Zhu <yonghong.zhu@intel.com>
>>Cc: Bob Feng <bob.c.feng@intel.com>
>>---
>> BaseTools/Source/Python/Workspace/DscBuildData.py | 7 +++++--
>> 1 file changed, 5 insertions(+), 2 deletions(-)
>>
>>diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py
>>b/BaseTools/Source/Python/Workspace/DscBuildData.py
>>index aaef404772..5321101def 100644
>>--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
>>+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
>>@@ -1838,12 +1838,15 @@ class DscBuildData(PlatformBuildClassObject):
>>                     IsArray = IsFieldValueAnArray(FieldList[FieldName][0])
>>                     if IsArray:
>>                         try:
>>-                            FieldList[FieldName][0] =
>>ValueExpressionEx(FieldList[FieldName][0], TAB_VOID,
>>self._GuidDict)(True)
>>+                            FieldValue =
>>+ ValueExpressionEx(FieldList[FieldName][0],
>>TAB_VOID, self._GuidDict)(True)
>>                         except BadExpression:
>>                             EdkLogger.error('Build', FORMAT_INVALID,
>>"Invalid value format for %s. From %s Line %d " %
>>
>>(".".join((Pcd.TokenSpaceGuidCName,
>>Pcd.TokenCName, FieldName)), FieldList[FieldName][1],
>>FieldList[FieldName][2]))
>>                     try:
>>-                        Value, ValueSize = ParseFieldValue (FieldList[FieldName][0])
>>+                        if IsArray:
>>+                            Value, ValueSize = ParseFieldValue (FieldValue)
>>+                        else:
>>+                            Value, ValueSize = ParseFieldValue
>>+ (FieldList[FieldName][0])
>>                     except Exception:
>>                         EdkLogger.error('Build', FORMAT_INVALID,
>>"Invalid value format for %s. From %s Line %d " %
>>(".".join((Pcd.TokenSpaceGuidCName,
>>Pcd.TokenCName, FieldName)), FieldList[FieldName][1],
>>FieldList[FieldName][2]))
>>                     if isinstance(Value, str):
>>--
>>2.14.1.windows.1



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

end of thread, other threads:[~2018-10-15  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25  7:15 [PATCH V2] BaseTools: Code should not update the variable that save the raw data Zhao, ZhiqiangX
2018-10-15  7:17 ` Gao, Liming

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