From nobody Fri May 10 15:31:31 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+111793+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+111793+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1701148153; cv=none; d=zohomail.com; s=zohoarc; b=hssNsmst5qnLYW8KCJk3C/O+8+pkE75nve5PUZmQSKWA+U3J5fjRI7D5X/TWVHr/vmMeVTJ5TWEAxdgHsg+tXNNVP7GjfSpWeefpY/ndKVPFMBzkyXYhea+IERjrgnPeD7MfYKfaVj/ixGPUTyPkUZH3vmw/UiL8+Dsa2+WVc14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701148153; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=ztPzqN67fRsy/mdA82wxqHPIU0B8qxgdAFdixU44eo4=; b=lD/rWjrrK0mS4EK1nP5aB3CaqZNI8LqW9SavR5Qxj1idG06J4NprDOgh1SA5uQChgclnPdJwkk2HY1jPTowNFiZMPOeD3fZZ++ZSgDeqSykuEXN6x1iSHXXoSMspo4dMe3xqiRD/ZwRiT05n2KVMzyDz6SLI4LckEBX3D+0Lr+c= 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+111793+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 1701148153460240.53050073280133; Mon, 27 Nov 2023 21:09:13 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=bP2j7/phoUd5pZIVb3RLaj/gptwHwAc6EUOG39XZhAI=; 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=1701148152; v=1; b=ibtxvlNmKBtpbU01ifK9tQKkaicgE9+it8PJHsejsUWuTL9loIVcapCS4yFmjkqMBm23PVlN eUJRq0p5RK2y2g5OgN418aWjOXQU7r0xsOBxPGjkacUnA5omGETB5k5abnO1OEjxePcDvTA9blr GIPn9lfMaphUy9cIjtL4lCWM= X-Received: by 127.0.0.2 with SMTP id EvzbYY1788612xDXLsHSQwYH; Mon, 27 Nov 2023 21:09:12 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.26063.1701148151927491726 for ; Mon, 27 Nov 2023 21:09:12 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="373021533" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="373021533" X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 21:09:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="1015800403" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="1015800403" X-Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.29]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 21:09:09 -0800 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li , Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong Subject: [edk2-devel] [edk2-platforms][PATCH] MinPlatformPkg: should build Performance driver only when perf enabled Date: Tue, 28 Nov 2023 13:09:00 +0800 Message-ID: <20231128050900.3807-1-yi1.li@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,yi1.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Brp94pztaaju47x4Omtrj982x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1701148154594000001 Content-Type: text/plain; charset="utf-8" Should build FirmwarePerformancePei only when perf enabled. Avoiding unconditional compilation of performance PEI drivers can save 2KB(LZMA compressed) in PostMem FV, small but important. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: Yi Li Reviewed-by: Nate DeSimone --- .../MinPlatformPkg/Include/Fdf/CorePostMemoryInclude.fdf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Include/Fdf/CorePostMemoryInclud= e.fdf b/Platform/Intel/MinPlatformPkg/Include/Fdf/CorePostMemoryInclude.fdf index 3edc239e5..bc8ebc84b 100644 --- a/Platform/Intel/MinPlatformPkg/Include/Fdf/CorePostMemoryInclude.fdf +++ b/Platform/Intel/MinPlatformPkg/Include/Fdf/CorePostMemoryInclude.fdf @@ -1,12 +1,14 @@ ## @file # FDF file of Platform. # -# Copyright (c) 2017, Intel Corporation. All rights reserved.
+# Copyright (c) 2017 - 2023, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # ## =20 !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly =3D=3D FALSE - INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTablePei/Firmwar= ePerformancePei.inf + !if gMinPlatformPkgTokenSpaceGuid.PcdPerformanceEnable =3D=3D TRUE + INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTablePei/Firmw= arePerformancePei.inf + !endif !endif --=20 2.42.0.windows.2 -=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 (#111793): https://edk2.groups.io/g/devel/message/111793 Mute This Topic: https://groups.io/mt/102845821/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-