From nobody Sun May 5 18:48:39 2024 Delivered-To: importer@patchew.org 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+86050+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1643119988306521.8284141650274; Tue, 25 Jan 2022 06:13:08 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id F1D7YY1788612xAq8NLX7Cre; Tue, 25 Jan 2022 06:13:07 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.76]) by mx.groups.io with SMTP id smtpd.web12.7567.1643119986520896817 for ; Tue, 25 Jan 2022 06:13:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HyXs5Z5dbuVzkf76dsDPBSMeHP8/u1q7i7wliZzGeUjfW/JYx04scr9lA5xL6Sg2o+psq1AV64Z6RWVyDPa9xC8UsVcT+X4k6GGrxravJIc5/t4KDOX+RDaVkSrKt8t9da7+bz9PgL6P4dAu4lqGDUGPA+uzMkmJ2LhOjADQFDE2F713krwC/d45ONh6CuK36unEL30Lwrge2sGVvnhhmUzpgT8MSDVXcKcrrD91v7S6xBti4b88wOz3W342v7xhLm/zvHEqsp0Ev8z/F1/WGxqXsIeUnTKSl+joaPyLzimTtYYF28o+mCKQUqy1wDMTMO2TWB7SXHUY6XLJ9lVJtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=up+fPCoG3h2ToOrqhvxoNYtJJWGfi3x9ov4rZ99/ynk=; b=Vvl2S/sUSCt1owqWL/bWYK+r1hEaii8Q4f7BHUHxiW1qgAp7hL1S1zPsOpmqecdZfbpSz7fDEHUwmycH/i+lZXPrBgHBZeqQ6z1FHQwV0rU2GvXN7bCcqnsC1PYYoQc4km2wBwRDN8YRFcpRwqlTXxA9oBlFu3msuskCKz3d+nP/dYscfMipSgPmvOV+zFdvtykdiovdkTNxy/Uvv0YnawL01vHaQ8962uuBV4v5ka4MbtLKed0AGgAIkO0ZsoI2dBAFpn/6zZv14pISiiH22cE23ZzHDSE/mVfmBiajZnIVVbImdTcQIyV02SvvGMHP3DbBYm2RikL30a/rhmJkxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none X-Received: from MW4PR03CA0049.namprd03.prod.outlook.com (2603:10b6:303:8e::24) by DM4PR12MB5358.namprd12.prod.outlook.com (2603:10b6:5:39c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Tue, 25 Jan 2022 14:13:05 +0000 X-Received: from CO1NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8e:cafe::41) by MW4PR03CA0049.outlook.office365.com (2603:10b6:303:8e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.10 via Frontend Transport; Tue, 25 Jan 2022 14:13:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; 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+86050+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; X-Received: from mail.nvidia.com (12.22.5.234) by CO1NAM11FT061.mail.protection.outlook.com (10.13.175.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4909.7 via Frontend Transport; Tue, 25 Jan 2022 14:13:04 +0000 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 25 Jan 2022 14:13:03 +0000 X-Received: from jake-vm-01.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9; Tue, 25 Jan 2022 06:13:02 -0800 From: "Jake Garver via groups.io" To: , , , CC: Jake Garver Subject: [edk2-devel] [PATCH] Features/Ext4Pkg: Modularize Ext4 DSC/FDF files Date: Tue, 25 Jan 2022 09:12:34 -0500 Message-ID: <5d55ef7504d9c460d7fcdda26f890df8feeb8972.1643119699.git.jake@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: drhqmail201.nvidia.com (10.126.190.180) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 70583aed-534e-4fcb-6734-08d9e00ccdea X-MS-TrafficTypeDiagnostic: DM4PR12MB5358:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: p5RfkXxkYk5SbXXPRJ2QKI8xAgPepbMfjFiAJd72Xwhf2mwzH4BpmAH/lh+/KqWApvvrGGZtDyN2htOQ9gpXY9GzMvWrh9fPr6MdAXn0x3NZlsGDV6rpfUfTMQY8eUnsGCewnIDZbvfXS9ZuyiREm3/78VAUvkMurZFZ3w1j5HfzmO8zsg+dIGuBf7HC8CXPCA4H4TpH7sVpUTt5TfhAONoQKhdh4YtCN/8/BXGrSTgqqQT4gKbvFRot/reEUFZDRSrUrpvesSk5qLP91a2iFg3YL0Gu8e9bu/Zk1GCa4/vPBdpf1zGXjD2OlvGJFlSQFxPxvIo/zHiSFDmkRMEqgAvVY5jWzi2z2ves7EzOf8SPI6VABiuTFr1KW3QQ81GTKznVznRDRKWYTkWrH2aA3q2iNMQLoXOU/WYC4tysLoGV/E4WMFVVKVE8xEqIluDNgeLP8Vr3NF39o+rbIjsfrkdLyusY9yWCjMWI3RA50fnKJBWmfiiSL1Pei5+ahStgLFr6XxtR+y0tX8ynGKuGlVnM3wbIpqJzX5YueDlCtDYVMv02uoenoLxN1iEWD7OWl45/GufM6zdUdWXRNKMm8BtZ099SZzzyj+BnavkI+Dyuo6sxeW5AMUAXYMRLwX/aw7B9apwUbzf8D94eYHEEqn5Uke190mbRH8UwQtDn9mbgwCiHJYHWdaePO6LhMpFdffojroeBAt5Yd9TRP5/b0C0vbBKZBFnkAZmrXefWLRm5nldXqGbw/dL1+EHeCl7Y9wcTGqK59scOSvjkS9sFDKyCxNp1xXCyFtooIQu6jkE= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 14:13:04.7462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70583aed-534e-4fcb-6734-08d9e00ccdea X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.234];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5358 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,jake@nvidia.com X-Gm-Message-State: md1bpWjwIiVclBCi6gOFHLlXx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1643119987; bh=UOgeVH2OcVjA8xzqbQTTuTHdHITrQNbOqE5yxQKAHR8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=dGhipMyjkGi3B2mV+v5BvouetmQTjG81ZK4dyIXQozxuyGVjVXCXqcdPBdu9crD5hQt UYrL5doENNeOKFkbUqWmQx2zYnV544cxWALtvQNfBaaGHyZr6QrS9kTxSfZ555uz0NO8p NhHr0juUc8o9/ZAlzSoRmMI78+5u9i7XLkc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643119989669100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change modularizes the Ext4 DSC/FDF files following the model used in edk2/NetworkPkg. A platform DSC can include Ext4 using "!include Features/Ext4.dsc.inc". Ext.dsc.inc includes all the required information to enable Ext4 features. Similarly, "!include Features/Ext4.fdf.inc" would be used in the platform FDF. The Ext4 feature is enabled by default, but could be disabled at build time using: BLD_*_EXT4_ENABLE=3DFALSE Signed-off-by: Jake Garver Reviewed-by: Pedro Falcato --- Features/Ext4Pkg/Ext4.dsc.inc | 16 ++++++++++++++++ Features/Ext4Pkg/Ext4.fdf.inc | 11 +++++++++++ Features/Ext4Pkg/Ext4Components.dsc.inc | 14 ++++++++++++++ Features/Ext4Pkg/Ext4Defines.dsc.inc | 14 ++++++++++++++ Features/Ext4Pkg/Ext4Libs.dsc.inc | 11 +++++++++++ 5 files changed, 66 insertions(+) create mode 100644 Features/Ext4Pkg/Ext4.dsc.inc create mode 100644 Features/Ext4Pkg/Ext4.fdf.inc create mode 100644 Features/Ext4Pkg/Ext4Components.dsc.inc create mode 100644 Features/Ext4Pkg/Ext4Defines.dsc.inc create mode 100644 Features/Ext4Pkg/Ext4Libs.dsc.inc diff --git a/Features/Ext4Pkg/Ext4.dsc.inc b/Features/Ext4Pkg/Ext4.dsc.inc new file mode 100644 index 0000000000..b560b9acbb --- /dev/null +++ b/Features/Ext4Pkg/Ext4.dsc.inc @@ -0,0 +1,16 @@ +## @file +# Ext4 DSC include file for Platform DSC +# +# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIAT= ES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] +!include Features/Ext4Pkg/Ext4Defines.dsc.inc + +[LibraryClasses] +!include Features/Ext4Pkg/Ext4Libs.dsc.inc + +[Components.common] +!include Features/Ext4Pkg/Ext4Components.dsc.inc diff --git a/Features/Ext4Pkg/Ext4.fdf.inc b/Features/Ext4Pkg/Ext4.fdf.inc new file mode 100644 index 0000000000..fb36070860 --- /dev/null +++ b/Features/Ext4Pkg/Ext4.fdf.inc @@ -0,0 +1,11 @@ +## @file +# Ext4 FDF include file for All Architectures. +# +# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIAT= ES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +!if $(EXT4_ENABLE) =3D=3D TRUE + INF Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf +!endif diff --git a/Features/Ext4Pkg/Ext4Components.dsc.inc b/Features/Ext4Pkg/Ext= 4Components.dsc.inc new file mode 100644 index 0000000000..34401272a0 --- /dev/null +++ b/Features/Ext4Pkg/Ext4Components.dsc.inc @@ -0,0 +1,14 @@ +## @file +# Ext4 DSC include file for [Components] section of all Architectures. +# +# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIAT= ES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +!if $(EXT4_ENABLE) =3D=3D TRUE + Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf { + + gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000007 + } +!endif diff --git a/Features/Ext4Pkg/Ext4Defines.dsc.inc b/Features/Ext4Pkg/Ext4De= fines.dsc.inc new file mode 100644 index 0000000000..b02eac59cf --- /dev/null +++ b/Features/Ext4Pkg/Ext4Defines.dsc.inc @@ -0,0 +1,14 @@ +## @file +# Ext4 DSC include file for [Defines] section of all Architectures. +# +# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIAT= ES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +!ifndef EXT4_ENABLE + # + # This flag is to enable or disable the ext4 feature. + # + DEFINE EXT4_ENABLE =3D TRUE +!endif diff --git a/Features/Ext4Pkg/Ext4Libs.dsc.inc b/Features/Ext4Pkg/Ext4Libs.= dsc.inc new file mode 100644 index 0000000000..078183e0cc --- /dev/null +++ b/Features/Ext4Pkg/Ext4Libs.dsc.inc @@ -0,0 +1,11 @@ +## @file +# Ext4 DSC include file for [LibraryClasses] section of all Architectures. +# +# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIAT= ES. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +!if $(EXT4_ENABLE) =3D=3D TRUE + BaseUcs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf +!endif --=20 2.17.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 (#86050): https://edk2.groups.io/g/devel/message/86050 Mute This Topic: https://groups.io/mt/88671995/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-