From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=MWV0h4ZT; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684931347; x=1716467347; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3jcKX6k3H7Gqi0OZvLyFghRPEu20WSTEu8hw5tkbQfw=; b=MWV0h4ZT1Z11o6T9bc9kSZyYbhjy+Neh2Atnt3apN/PH3XogGa/ZyUfh 4hhKBjGgRrqU5Z//shZ1zvf7qwFez8SoELBEHpmlJEDaIPOCNZsro2wtC yP2XorcrfXOYIRKjkf8mw/aYxN96/5QEl9SGwrv/lQANt4FQA0CuJ7BWt dlgyecED/M7PgwvK1j+PASQdQOzxt977Jkg51g+fZMpgtFsSmS/hptIQs HZm0K8gvlhLnnTizauhus96RvUT1QUJjXciIRSZYBZkPNt6RjniO0KgGu lELYr1HZpyFeThENS5TdwPgeFVyM49MrXLcZpDs8N0oNjNbbgrZXugikB g==; 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" 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" 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: [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> X-Mailer: git-send-email 2.39.1.windows.1 In-Reply-To: <20230524122852.2047-1-ray.ni@intel.com> References: <20230524122852.2047-1-ray.ni@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- 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=0D #=0D # @ build_bios.py=0D # Builds BIOS using configuration files and dynamically=0D @@ -421,6 +421,10 @@ def build(config): command.append("--pcd")=0D command.append("gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelectio= n=3D1")=0D =0D + if config.get("PERFORMANCE_BUILD", "FALSE") =3D=3D "TRUE":=0D + command.append("--pcd")=0D + command.append("gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable= =3DTrue")=0D +=0D shell =3D True=0D if os.name =3D=3D "posix":=0D shell =3D False=0D --=20 2.39.1.windows.1