[edk2-devel] [PATCH] Platform/Intel: Enhance the BOARD_ID without PCH_TYPE support

Yuwei Chen yuwei.chen at intel.com
Fri Sep 15 12:05:38 UTC 2023


Reviewed-by: Yuwei Chen <yuwei.chen at intel.com>

> -----Original Message-----
> From: Srinivasan, ManickamX <manickamx.srinivasan at intel.com>
> Sent: Wednesday, September 13, 2023 4:56 PM
> To: devel at edk2.groups.io
> Cc: Srinivasan, ManickamX <manickamx.srinivasan at intel.com>; Feng, Bob C
> <bob.c.feng at intel.com>; Gao, Liming <gaoliming at byosoft.com.cn>; Chen,
> Christine <yuwei.chen at intel.com>; T V, Krishnamoorthy
> <krishnamoorthy.t.v at intel.com>
> Subject: [PATCH] Platform/Intel: Enhance the BOARD_ID without PCH_TYPE
> support
> 
> The length of the Board ID is being updated based on the BOARD_ID string. If
> the PCH_TYPE is empty space/single quotes(''), removing the empty
> space/single quotes('') and concatenating the TARGET_PLATFORM_SHORT
> and BUILD flag strings.
> 
> Cc: Bob Feng <bob.c.feng at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen at intel.com>
> Cc: T V Krishnamoorthy <krishnamoorthy.t.v at intel.com>
> Signed-off-by: ManickamX Srinivasan <manickamx.srinivasan at intel.com>
> ---
>  Platform/Intel/Tools/GenBiosId/GenBiosId.py | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/Platform/Intel/Tools/GenBiosId/GenBiosId.py
> b/Platform/Intel/Tools/GenBiosId/GenBiosId.py
> index fa3689867..54503fdfc 100644
> --- a/Platform/Intel/Tools/GenBiosId/GenBiosId.py
> +++ b/Platform/Intel/Tools/GenBiosId/GenBiosId.py
> @@ -141,14 +141,16 @@ def ParserInputFile(InputDict, NoTimestamp):
>          if Item not in _ConfigItem:
>              EdkLogger("GenBiosId", FORMAT_INVALID,
> ExtraData=_ConfigItemInvalid % Item)
>          _ConfigItem[Item]['Value'] = InputDict[Item]
> -        if len(_ConfigItem[Item]['Value']) != _ConfigItem[Item]['Length']:
> +        if ((len(_ConfigItem[Item]['Value']) !=
> _ConfigItem[Item]['Length'])|(_ConfigItem["BOARD_ID"]['Value'][3:4] == " ")):
>              # The length of the Board ID is being updated based on the BOARD_ID
> string
>              #If the PCH_TYPE is empty space/single quotes(''), removing the empty
> space/single quotes('') and concatenating the TARGET_PLATFORM_SHORT
> and BUILD flag strings
>              if(_ConfigItem["BOARD_ID"]['Value'][3:5] == "\'\'"):
> 
> _ConfigItem["BOARD_ID"]['Value']=_ConfigItem["BOARD_ID"]['Value'][0:3]+_
> ConfigItem["BOARD_ID"]['Value'][5:len(_ConfigItem["BOARD_ID"]['Value'])]
> -
> _ConfigItem["BOARD_ID"]['Length']=len(_ConfigItem["BOARD_ID"]['Value'])
> +            elif (_ConfigItem["BOARD_ID"]['Value'][3:4] == " "):
> +
> + _ConfigItem["BOARD_ID"]['Value']=_ConfigItem["BOARD_ID"]['Value'][0:3]
> + +_ConfigItem["BOARD_ID"]['Value'][4:len(_ConfigItem["BOARD_ID"]['Value
> + '])]
>              else:
>                  EdkLogger("GenBiosId", FORMAT_INVALID,
> ExtraData=_ConfigLenInvalid % Item)
> +
> + _ConfigItem["BOARD_ID"]['Length']=len(_ConfigItem["BOARD_ID"]['Value']
> + )
>      for Item in _ConfigItem:
>          if not _ConfigItem[Item]['Value']:
>              EdkLogger("GenBiosId", FORMAT_UNKNOWN_ERROR,
> ExtraData="Item %s is missing" % Item)
> --
> 2.30.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108713): https://edk2.groups.io/g/devel/message/108713
Mute This Topic: https://groups.io/mt/101333312/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list