From nobody Wed May 15 22:56:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108574+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108574+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1694596564; cv=none; d=zohomail.com; s=zohoarc; b=ZVk1VyqI0tZFesJ/rqyJyWjN3CDabSLKHzWsfhRIAxWmbOWK4blOPZ9aNQ8OQ4HKBwMfvJDJ67459jiCL5cD6O5rcr4s0QtNX27eMEhH7o/4SRMJ4/GVxa7p90TwjYsVs4Qg3RQVTxoM8r3MqJFs31sYlX22CXGycEGsmeXGj5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694596564; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=7SLf9M0v8sZfo20JJsk7mOGtxBHYEtCPg/51wTXy/Wc=; b=TS5jVEFOukEYnn68sNBgziMYPJcajAT9VRoLC/JUjvkThXmCo3C/8siAss2kLRbZFLw56MUjv30sLP+woicsH/O8M7n6ZetHNaBzQetBf1J4WcVkX6lPV8/kdS5udYacwnLGtv0//SVjuHk0FPdjDm+EgsXVxyDp0GLGaq/dSsc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108574+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1694596564851808.4967390283213; Wed, 13 Sep 2023 02:16:04 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=D216bY5G96XySj9hQ5iroQsMQmEy/QjdbWy14+XDyIY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1694596564; v=1; b=Tg10FugYXUYFAKnLXRvA0caiSyn+syczUSpoVDrT/X+WlaPOrTT1wrHtBeUpj2kdcwhpbNEj CNYD3JWl/30VayriVwv3O9TMvZ19CGMB0FcXmNyN4fjLGbSW9YX8QDKWnO3mH4k7ndfvBXnxm5n oNvhjtDqYzx6+ZeprtBGtB6c= X-Received: by 127.0.0.2 with SMTP id HgHUYY1788612xK5yaF7O7sX; Wed, 13 Sep 2023 02:16:04 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.7449.1694596563352293128 for ; Wed, 13 Sep 2023 02:16:03 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="442639569" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="442639569" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 02:15:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="887257059" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="887257059" X-Received: from bacfd007.gar.corp.intel.com ([10.66.244.233]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 02:15:23 -0700 From: "ManickamX Srinivasan" To: devel@edk2.groups.io Cc: ManickamX Srinivasan , Bob Feng , Liming Gao , Yuwei Chen , T V Krishnamoorthy Subject: [edk2-devel] [PATCH] Platform/Intel: Enhance the BOARD_ID without PCH_TYPE support Date: Wed, 13 Sep 2023 14:26:28 +0530 Message-Id: <20230913085628.22913-1-manickamx.srinivasan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,manickamx.srinivasan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: q2Fw4VenpoavPVYXiiGUSk8gx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694596565817100001 Content-Type: text/plain; charset="utf-8" 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 Cc: Liming Gao Cc: Yuwei Chen Cc: T V Krishnamoorthy Signed-off-by: ManickamX Srinivasan Reviewed-by: Bob Feng Reviewed-by: Yuwei Chen --- 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/T= ools/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=3D_ConfigItem= Invalid % Item) _ConfigItem[Item]['Value'] =3D InputDict[Item] - if len(_ConfigItem[Item]['Value']) !=3D _ConfigItem[Item]['Length'= ]: + if ((len(_ConfigItem[Item]['Value']) !=3D _ConfigItem[Item]['Lengt= h'])|(_ConfigItem["BOARD_ID"]['Value'][3:4] =3D=3D " ")): # The length of the Board ID is being updated based on the BOA= RD_ID string #If the PCH_TYPE is empty space/single quotes(''), removing th= e empty space/single quotes('') and concatenating the TARGET_PLATFORM_SHORT= and BUILD flag strings if(_ConfigItem["BOARD_ID"]['Value'][3:5] =3D=3D "\'\'"): _ConfigItem["BOARD_ID"]['Value']=3D_ConfigItem["BOARD_ID"]= ['Value'][0:3]+_ConfigItem["BOARD_ID"]['Value'][5:len(_ConfigItem["BOARD_ID= "]['Value'])] - _ConfigItem["BOARD_ID"]['Length']=3Dlen(_ConfigItem["BOARD= _ID"]['Value']) + elif (_ConfigItem["BOARD_ID"]['Value'][3:4] =3D=3D " "): + _ConfigItem["BOARD_ID"]['Value']=3D_ConfigItem["BOARD_ID"]= ['Value'][0:3]+_ConfigItem["BOARD_ID"]['Value'][4:len(_ConfigItem["BOARD_ID= "]['Value'])] else: EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=3D_Config= LenInvalid % Item) + _ConfigItem["BOARD_ID"]['Length']=3Dlen(_ConfigItem["BOARD_ID"= ]['Value']) for Item in _ConfigItem: if not _ConfigItem[Item]['Value']: EdkLogger("GenBiosId", FORMAT_UNKNOWN_ERROR, ExtraData=3D"Item= %s is missing" % Item) --=20 2.30.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108574): https://edk2.groups.io/g/devel/message/108574 Mute This Topic: https://groups.io/mt/101333312/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-