From nobody Thu May 16 18:18:42 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+107978+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+107978+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1692801973; cv=none; d=zohomail.com; s=zohoarc; b=F6bBSDROtrxWftx6mDginVvdnbHhpGr0URANQuxEgp/rQvT2v/g5JXA22a/zX7KL+zGP2WLE6Nz0u923MvwtifUPiKHSUcU9XyC5YApkO7jlUY3ChcOoIolwt1uMpiAsijlQzXUnhpSZwm2ViqPwD05c3rxNuWYsEBxfkMaQPCA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692801973; 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=btrIxUaAKoW9qfdJDiJ3Xdq4z+/jeoCWrs9JVuRXWeQ=; b=ntTUcVxFaXFdARWvYRLH4wve2XFc8Mj84aQqZ8Faa/0gkSUs5GxGpi0sN15wWEVCCbhDbnfjZMExEix1JzRgOoeBjSVFrCWU1aQXvCQZ8aVY+G4RdKXnJoz2NNii/dWXuv0T/VA3e91L3p2uKxc/V0ZncXUF8vkgQeQtiyicK6w= 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+107978+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 1692801973100872.3581647162371; Wed, 23 Aug 2023 07:46:13 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=H7S5cVX086lUNgDs/3LPKbwHzl6XluUpHyBT83FRTZ0=; 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=1692801972; v=1; b=S2G4I9b7hpHbRHmDAoA2/6aI8GAGtOCluwInx0VYHcZ3revbB4XK8f+4sN8sk2shZzaxfJnI jgvy4HdGCVb8nOnRGYGv3QQ+oFlDhSYWZf/Wt80LQGGpkZn45KFboPkoFmxJKAWA4/duCo7EvmH +2qx5YINx207JiaMxbTwsXUw= X-Received: by 127.0.0.2 with SMTP id 7nteYY1788612xTOHbY5hhHG; Wed, 23 Aug 2023 07:46:12 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.6524.1692775799615279435 for ; Wed, 23 Aug 2023 00:30:00 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10810"; a="354420266" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354420266" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2023 00:29:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10810"; a="826616346" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="826616346" X-Received: from bacfd007.gar.corp.intel.com ([10.66.244.233]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2023 00:29:51 -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, 23 Aug 2023 12:59:19 +0530 Message-Id: <20230823072919.23372-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: ddVhu953rdEZR4uUh9e5R3KEx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1692801974025100002 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 =20 Reviewed-by: Yuwei Chen --- Platform/Intel/Tools/GenBiosId/GenBiosId.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/Tools/GenBiosId/GenBiosId.py b/Platform/Intel/T= ools/GenBiosId/GenBiosId.py index f823fdcad..fa3689867 100644 --- a/Platform/Intel/Tools/GenBiosId/GenBiosId.py +++ b/Platform/Intel/Tools/GenBiosId/GenBiosId.py @@ -142,7 +142,13 @@ def ParserInputFile(InputDict, NoTimestamp): EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=3D_ConfigItem= Invalid % Item) _ConfigItem[Item]['Value'] =3D InputDict[Item] if len(_ConfigItem[Item]['Value']) !=3D _ConfigItem[Item]['Length'= ]: - EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=3D_ConfigLenI= nvalid % Item) + # 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']) + else: + EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=3D_Config= LenInvalid % Item) 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 (#107978): https://edk2.groups.io/g/devel/message/107978 Mute This Topic: https://groups.io/mt/100916084/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-