From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id BD0D9740035 for ; Wed, 15 May 2024 03:52:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=PCuEfLg11RVbSjiRYM+1ctDAuu8gN7SIenr5Dqe52ls=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Received-SPF:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1715745125; v=1; b=qmM+tJ+0DusY6e4r60TM1Wj0sy6O1//MoPr8VsfiUXQ2iwrG8dB3eRs98PJ1+MIETBulWe8U rmCVIxwH0dPISiNoYCxHbLyhhzfKNIOK43f9CY+ZaNMDCDgL5iThsN3zP2O6gFSS0XFSqWV44iq onJ+gu8ESMMt/3VHJOGicwI7WaAfkWkQNcuUQMOSNovMg7R83dtsXgd+iQjPSNivrn4b78DSJ+J 232SxNDa7yaBzcvHjAAlvHhGCfeHYanWQ2fF+lGzIIZGBvtMIyHf5BlYxqRl/HUfece7FdX6noW PWLjlLrD4IOyrO+IW9sHMfDHYblwqRNXwKjf1spH+L0Uw== X-Received: by 127.0.0.2 with SMTP id NyR1YY7687511xzaHmsrmLym; Tue, 14 May 2024 20:52:05 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.76]) by mx.groups.io with SMTP id smtpd.web11.6393.1715745122639111326 for ; Tue, 14 May 2024 20:52:02 -0700 X-Received: from BN9PR03CA0533.namprd03.prod.outlook.com (2603:10b6:408:131::28) by CY8PR12MB8196.namprd12.prod.outlook.com (2603:10b6:930:78::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Wed, 15 May 2024 03:51:59 +0000 X-Received: from BN2PEPF00004FC0.namprd04.prod.outlook.com (2603:10b6:408:131:cafe::16) by BN9PR03CA0533.outlook.office365.com (2603:10b6:408:131::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55 via Frontend Transport; Wed, 15 May 2024 03:51:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by BN2PEPF00004FC0.mail.protection.outlook.com (10.167.243.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7587.21 via Frontend Transport; Wed, 15 May 2024 03:51:58 +0000 X-Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 14 May 2024 22:51:54 -0500 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 14 May 2024 22:51:53 -0500 From: "Abdul Lateef Attar via groups.io" To: CC: Abdul Lateef Attar , Abner Chang , Paul Grimes Subject: [edk2-devel] [RESEND 2/7] AmdPlatformPkg: Adds BaseAlwaysFalseDepexLib Library Date: Wed, 15 May 2024 09:20:20 +0530 Message-ID: <5b85416b44ae4be3a14839f07c4d8a359754a999.1715744867.git.AbdulLateef.Attar@amd.com> In-Reply-To: References: MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: AbdulLateef.Attar@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF00004FC0:EE_|CY8PR12MB8196:EE_ X-MS-Office365-Filtering-Correlation-Id: eb111cee-41eb-4534-0520-08dc74925ee8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eQ/vHJElObWKK9XdP0KfilTXxTyRAjf1PXgW4pP8kkHS8Hef0BSjbPXM+Heu?= =?us-ascii?Q?uMr+8GGuUIN7yrRGas0V8HzzL368EgWgxc+1ohOFlJXMh2vYE+g7K/aIt/LP?= =?us-ascii?Q?HzA4+FpC0nYvKYInB7SzqlgRXhE6ghMVll/eEkRNpRkYxTuIxQpZ3Z3uFJeR?= =?us-ascii?Q?uAjWj98nRl/TCbHKHKrKmkBFiW0AynwmwFK4OGsvstt+rfWExBBwKRcCbJzw?= =?us-ascii?Q?97j3VTsMt7IwYzG0ieZdgzoASTsUWg+69aYLgyqPr2eF5PZV6KVEB6Svpyx7?= =?us-ascii?Q?mqr60s8BvTL7urpXza5XLx+NJvLV6PYEKCMxJzBi7pCxVskhE8YTL4mltQWn?= =?us-ascii?Q?Y6dPYtlGh1bXSsC8w4k984cQpjtbXBxTQv4n+mpF8sYjtlXk/Mh1CIqAoLkg?= =?us-ascii?Q?XYnrovcu0m6NYfMOr5q1PAHbdtr4RlcOK8s4rqW+yWQTxUwlLsmX3CHFPZux?= =?us-ascii?Q?I2j5usa3Ug5gCp0oCQ5la244G7sfJ5bJFXGF/nZ3ZUXAftqY2XJVgdmmEWpY?= =?us-ascii?Q?ak3UkA7tTbeiV8OJs+qu0rc37Eq731O1qWYiMwbgqEUmMU09ABLCjXNXmE3e?= =?us-ascii?Q?0bAMNs70xZ7wC8oKKi0NvfwA+ObIWHlWeklqwY0Pn5+KJ2/fhqbrNx1rVdFf?= =?us-ascii?Q?aN8ZtwoqYDRQfuGcwSpgjAECqDopU00BwOnpAnng7LM9JIJorfh9Swtb/lkZ?= =?us-ascii?Q?kZQJiSC45wk46KgpA7EBr3ouK95xTsW+Z36WIohED49K6z63sbqJFA0ASf4V?= =?us-ascii?Q?yHtNXmZILCMSF7hN92tQtgQ33p+CbTz8S24FuupcXPl89NNUzAGXMhhd7rxh?= =?us-ascii?Q?GRBARWutR8ZQrCR0AM9P+14KfUU4G1Few/Z9aPAnoZS09udwZmtITVlOOeEI?= =?us-ascii?Q?EnxVkQZRmmkpxfsJtxfxRrxUoxecZg5DebK8kX3IEyyvHcxjS5L2G57dIB0s?= =?us-ascii?Q?ouxYwIqhF+6KPREhd11d4IHYM9yDuIiBCaGaqXZi9QyRIeVl1R2+8UMpfibN?= =?us-ascii?Q?mMVV4XRutbNG3c/9hLu2+XFCk4IckAsg9qOXd95CO6UxgrGMjbXb/y6c6mj/?= =?us-ascii?Q?KvLv4HIhBzYBAlqCZutFZYSvblHO2oYPa59+HXPj8iDeQFS2zMaduPl/pyCI?= =?us-ascii?Q?BXI8akYl9fKp2KeQru5NWVxubOL0bnr2OSyigPW9qfxxWpJfFpYdKu3azanW?= =?us-ascii?Q?BfJoI+1HuXBKGMxh/npFTbX3lk46QdVI4LraOFHbWUPLfqzROdAyGLxOyxiN?= =?us-ascii?Q?oMFzzignz0vXOPCGgOLKrARdLZodIiPYHcRWFoxKwGjSZElv0ohXnq0i7/av?= =?us-ascii?Q?SPVeNWnYMMPv9OWraJ1nOeik3ltT7IshLFSerVQSG43ZUGVq1xKOQUyW0Uk7?= =?us-ascii?Q?Msp2U7DRkgnAAVIO5PievWygPgGE?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2024 03:51:58.5766 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb111cee-41eb-4534-0520-08dc74925ee8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF00004FC0.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8196 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 Resent-Date: Tue, 14 May 2024 20:52:02 -0700 Resent-From: AbdulLateef.Attar@amd.com Reply-To: devel@edk2.groups.io,AbdulLateef.Attar@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3RnTNtr5FSnrTDtsXS5Avfcwx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=qmM+tJ+0; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Adds BaseAlwaysFalseDepexLib Library which always adds DEPEX to FALSE. Using this library will prevent module/driver being dispatched. Usage: MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf { NULL|AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseAlwaysFalseDepe= xLib.inf } Cc: Abner Chang Cc: Paul Grimes Signed-off-by: Abdul Lateef Attar --- .../AMD/AmdPlatformPkg/AmdPlatformPkg.dsc | 2 ++ .../BaseAlwaysFalseDepexLib.c | 20 +++++++++++ .../BaseAlwaysFalseDepexLib.inf | 35 +++++++++++++++++++ .../BaseAlwaysFalseDepexLib.uni | 12 +++++++ 4 files changed, 69 insertions(+) create mode 100644 Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepe= xLib/BaseAlwaysFalseDepexLib.c create mode 100644 Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepe= xLib/BaseAlwaysFalseDepexLib.inf create mode 100644 Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepe= xLib/BaseAlwaysFalseDepexLib.uni diff --git a/Platform/AMD/AmdPlatformPkg/AmdPlatformPkg.dsc b/Platform/AMD/= AmdPlatformPkg/AmdPlatformPkg.dsc index 151235b791..e39ad93c83 100644 --- a/Platform/AMD/AmdPlatformPkg/AmdPlatformPkg.dsc +++ b/Platform/AMD/AmdPlatformPkg/AmdPlatformPkg.dsc @@ -24,6 +24,7 @@ !include MdePkg/MdeLibs.dsc.inc =20 [LibraryClasses.Common] + AlwaysFalseDepexLib|AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseA= lwaysFalseDepexLib.inf BaseLib|MdePkg/Library/BaseLib/BaseLib.inf BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseD= ebugPrintErrorLevelLib.inf @@ -46,6 +47,7 @@ MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf =20 [Components] + AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseAlwaysFalseDepexLib.i= nf AmdPlatformPkg/Universal/LogoDxe/JpegLogoDxe.inf = # Server platform JPEG logo driver AmdPlatformPkg/Universal/LogoDxe/LogoDxe.inf = # Server platfrom Bitmap logo driver AmdPlatformPkg/Universal/LogoDxe/S3LogoDxe.inf diff --git a/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/Ba= seAlwaysFalseDepexLib.c b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFal= seDepexLib/BaseAlwaysFalseDepexLib.c new file mode 100644 index 0000000000..e9f176223d --- /dev/null +++ b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseAlway= sFalseDepexLib.c @@ -0,0 +1,20 @@ +/** @file + No functionality of this file. + + Copyright (C) 2023 - 2024 Advanced Micro Devices, Inc. All rights reserv= ed. + + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include + +/** + Empty function to allow Library Class to be valid. +**/ +VOID +AlwaysFalsePlaceHolderFunction ( + VOID + ) +{ +} diff --git a/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/Ba= seAlwaysFalseDepexLib.inf b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysF= alseDepexLib/BaseAlwaysFalseDepexLib.inf new file mode 100644 index 0000000000..4e86256497 --- /dev/null +++ b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseAlway= sFalseDepexLib.inf @@ -0,0 +1,35 @@ +## @file +# This is the module used to consume the always false dependency. +# Used to not dispatching the specific module included by using +# external DSC/FDF include file. +# For example: MinPlatformPkg/Include/Dsc/CoreCommonLib.dsc +# +# The module linked with the NULL class BaseAlwaysFalseDepexLib is still +# put in the FV however it won't be executed. +# +# Copyright (C) 2023 - 2024 Advanced Micro Devices, Inc. All rights reser= ved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D BaseAlwaysFalseDepexLib + MODULE_UNI_FILE =3D BaseAlwaysFalseDepexLib.uni + FILE_GUID =3D 74DC464F-BC11-4E7D-8829-DD2F911988A8 + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D AlwaysFalseDepexLib + +# +# VALID_ARCHITECTURES =3D X64 +# + +[Sources] + BaseAlwaysFalseDepexLib.c + +[Packages] + MdePkg/MdePkg.dec + +[Depex] + FALSE diff --git a/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/Ba= seAlwaysFalseDepexLib.uni b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysF= alseDepexLib/BaseAlwaysFalseDepexLib.uni new file mode 100644 index 0000000000..5c7ccf1840 --- /dev/null +++ b/Platform/AMD/AmdPlatformPkg/Library/BaseAlwaysFalseDepexLib/BaseAlway= sFalseDepexLib.uni @@ -0,0 +1,12 @@ +## @file +# +# Copyright (C) 2023 - 2024 Advanced Micro Devices, Inc. All rights reser= ved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +#string STR_MODULE_ABSTRACT #language en-US "Library instance = to provide FALSE Depex to prevent running of driver." + +#string STR_MODULE_DESCRIPTION #language en-US "Library instance = to provide FALSE Depex to prevent running of driver." + --=20 2.34.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 (#118903): https://edk2.groups.io/g/devel/message/118903 Mute This Topic: https://groups.io/mt/106108332/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-