From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id BB515D80D4A for ; Wed, 23 Aug 2023 14:46:13 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=A0xbvZDKJmoyiKVwbDfa9jowarJB3dAyBg4zECtePYA=; 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=FCYgaxuNptaRav52dCRVKM1BeaQFhMfWmATprMciq+oniM2sU8rbcYjV+HbG3Vms2MV4eW9g OweV5Bc/+cv2bbAeNwFvhCChkuFBWQxvCnC8BvXPN5xhYwXHzI40kAnVB0xW53fYReK40wTmeGB ywRDBpMbOwt/esi+orOXnLgI= X-Received: by 127.0.0.2 with SMTP id 8L7YYY7687511xxQYrAicTbV; 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: EqJtZ3QllRkwV0DZ76MFXvPxx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=FCYgaxuN; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) 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 --- 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/Tools/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=_ConfigItemInvalid % Item) _ConfigItem[Item]['Value'] = InputDict[Item] if len(_ConfigItem[Item]['Value']) != _ConfigItem[Item]['Length']: - EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=_ConfigLenInvalid % Item) + # 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']) + else: + EdkLogger("GenBiosId", FORMAT_INVALID, ExtraData=_ConfigLenInvalid % Item) 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 (#107978): https://edk2.groups.io/g/devel/message/107978 Mute This Topic: https://groups.io/mt/100916084/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-