From nobody Wed Oct 9 00:12:28 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+105233+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+105233+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1684931348; cv=none; d=zohomail.com; s=zohoarc; b=ADuAZvOVyjS8bNQj9MCl5dJKBmZkJieGZAtMNJC02Jag0jWg1+yeaWSxgDKdvsi70Y/Dp2LiAh+PP/hxg1DOupjiccvwl1Tjm/oUeV8TbGRU2LvsB3akD3841DT88SUUhUEP+9UbGAtP8aNuFm5wj9mSKZCgvQwxY9Uv1BSS+nE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684931348; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=KdKCWYc8BLpg/Eh61dZUIxHh9EKrpD5061FWp0+t5yY=; b=AMA81ftQEZivXEsomFwf0+z22oSvHnBnvOnULB8/cozZ5/Dk/GW3fsA3JoAolbh2P0GVFaNwR7lBj/5xNIWUKEdmJ8IMdsitgqyKuP3lHuTw1gQkHlUb/hS9WdMdL/ADtGcPXFcnY8uKX9QaEA5uTyC18mshB3zTx0UYT5NOwmQ= 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+105233+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 168493134853124.77213437867863; Wed, 24 May 2023 05:29:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5r9oYY1788612xjOka7QxjoJ; Wed, 24 May 2023 05:29:08 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.7422.1684931339636052825 for ; Wed, 24 May 2023 05:29:07 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="419259546" X-IronPort-AV: E=Sophos;i="6.00,189,1681196400"; d="scan'208";a="419259546" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 05:29:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="704328086" X-IronPort-AV: E=Sophos;i="6.00,189,1681196400"; d="scan'208";a="704328086" X-Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga002.jf.intel.com with ESMTP; 24 May 2023 05:29:05 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Isaac Oram , Liming Gao , Eric Dong Subject: [edk2-devel] [PATCH 4/6] MinPlatform/build_bios.py: Support performance enabled build Date: Wed, 24 May 2023 20:28:50 +0800 Message-Id: <20230524122852.2047-5-ray.ni@intel.com> In-Reply-To: <20230524122852.2047-1-ray.ni@intel.com> References: <20230524122852.2047-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,ray.ni@intel.com X-Gm-Message-State: KsfO5O5RwRHtWm3kcaxebgvbx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684931348; bh=Rfx7du4WEz4uH8CVhaSOPYukYf4pR/WzUjpu+uQjXBw=; h=Cc:Date:From:Reply-To:Subject:To; b=gtKal01FIJAbl71VIA5RlbpiMQPOQyzhisOxnlB4/caUVVlFTdCakY2d7y156kCjup6 XdC2wpHzhdBR1wla5qxokpeXHocCBdOnUcx7lz5ScTWZ40e+Bkyif5kx9Kb2gp4db52gO jX5Cn+kAQI7f067tcjqRLu6NcZaEtWk+h3E= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684931349559100011 Content-Type: text/plain; charset="utf-8" build_bios.py supports caller to pass in "--performance" flag but the script implemnetation just ignores this flag. The patch adds the missing logic to invoke build.py with "--pcd gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable=3DTrue" when "--performance" is supplied. Signed-off-by: Ray Ni Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Reviewed-by: Chasel Chiu --- Platform/Intel/build_bios.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/build_bios.py b/Platform/Intel/build_bios.py index da4097d5db..9c95cfff76 100755 --- a/Platform/Intel/build_bios.py +++ b/Platform/Intel/build_bios.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python3 # # @ build_bios.py # Builds BIOS using configuration files and dynamically @@ -421,6 +421,10 @@ def build(config): command.append("--pcd") command.append("gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelectio= n=3D1") =20 + if config.get("PERFORMANCE_BUILD", "FALSE") =3D=3D "TRUE": + command.append("--pcd") + command.append("gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable= =3DTrue") + shell =3D True if os.name =3D=3D "posix": shell =3D False --=20 2.39.1.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 (#105233): https://edk2.groups.io/g/devel/message/105233 Mute This Topic: https://groups.io/mt/99107260/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-