From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.47]) by mx.groups.io with SMTP id smtpd.web10.9615.1586866551339607847 for ; Tue, 14 Apr 2020 05:15:51 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nxp1.onmicrosoft.com header.s=selector2-nxp1-onmicrosoft-com header.b=PFh5XHZc; spf=pass (domain: oss.nxp.com, ip: 40.107.14.47, mailfrom: pankaj.bansal@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eN4Cg2kXP7FzaM5Z2lDF/+FsKoob1TF8rbkjVpx2ZaRLlyok5xaTk7LFX9beKgk9wl1XJPGDRXQ7vJdC8D49sMwWS+S8H17ZiC37W2E2NU7A/0wqmtGbg/O4sIe2gJmXrHTM6AgnlYGaa88iPkSP2K5GvY4V0fHqhUf2YE8wf8DR5olaEvACe9gRNtO2kTnoBEBkl08cWYn3y12S+6Dxkd8CPIar0G56mVC8iQcI+wbUWDzcwNrizmz9Ou2yLqIxU+/rvG+P2EfQnYDIPwoI3cGfwyfycAYzJ4cCkw2XlJuv+mIi62IJCpu30nTeP11stZzBWqD3zYHIfSpWwTMrCw== 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-SenderADCheck; bh=PacswFU76gdg9R6jttTgN0rMFBf8PZmP0eL8ryK6H6o=; b=CLbIy28QMulhSVLJPkLOw6OOJEpWMbcHAQTBTGaiJlZR84ngb+ZSx/iDlBEJZoaOu92dRoVFabOK+H3UyxGPFL5cdkB0YJJH6Bp7E6Hgvqd86W+edc9x4Qrsjy/Cb0CxiPvVVXFh5kq81nt29hDBXvtdFaaHWVn05KUb3ySFpWl9c5wAhFeaQk3zmzoMNDX74YwTs2dXWvZS9v4lekgIyjYyCsavvQkscoQebvQ0oDxlLzWoOdhIVe7pZDC+UPhWX0UHewtT1a9EAFsUmPZlmMOsPQcTgKRbcyArGwWvTTIRRbuTNOIxq7aCQ5B11/LLwm7xYv1Kikh93ICVO2xMEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PacswFU76gdg9R6jttTgN0rMFBf8PZmP0eL8ryK6H6o=; b=PFh5XHZc6xHPIlpfMJG7vTPAGn0gOaQIrdOdx+ttvzhHxtC3hp8w5kNlc8s4ofgkR+5dJ9CoPmHsVjGxSqiMEF0m/AXYjzfQCoFYCUUMRRRq2X7QAmorpxv7mRU5eKJWn4rejuffwC7M0EOAOK4hBfYWAA82/o4GudeONJ4BblQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@oss.nxp.com; Received: from VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) by VI1PR04MB4461.eurprd04.prod.outlook.com (2603:10a6:803:70::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.28; Tue, 14 Apr 2020 12:15:49 +0000 Received: from VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513]) by VI1PR04MB5933.eurprd04.prod.outlook.com ([fe80::45c4:8846:5327:9513%7]) with mapi id 15.20.2900.028; Tue, 14 Apr 2020 12:15:49 +0000 From: "Pankaj Bansal" To: Leif Lindholm , Meenakshi Aggarwal , Michael D Kinney , devel@edk2.groups.io, Varun Sethi , Samer El-Haj-Mahmoud , Jon Nettleton , Ard Biesheuvel Subject: [PATCH edk2-platforms v3 21/24] Platform/NXP: Use FV rules from ArmVirtPkg Date: Wed, 15 Apr 2020 17:43:39 +0530 Message-ID: <20200415121342.9246-22-pankaj.bansal@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415121342.9246-1-pankaj.bansal@oss.nxp.com> References: <20200415121342.9246-1-pankaj.bansal@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) To VI1PR04MB5933.eurprd04.prod.outlook.com (2603:10a6:803:ec::16) Return-Path: pankaj.bansal@oss.nxp.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from uefi-workstation.ap.freescale.net (92.120.0.69) by SG2PR01CA0092.apcprd01.prod.exchangelabs.com (2603:1096:3:15::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15 via Frontend Transport; Tue, 14 Apr 2020 12:15:46 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [92.120.0.69] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a61d1190-1138-4918-8c88-08d7e06d912e X-MS-TrafficTypeDiagnostic: VI1PR04MB4461:|VI1PR04MB4461: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:353; X-Forefront-PRVS: 0373D94D15 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5933.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(376002)(366004)(346002)(136003)(39850400004)(396003)(1076003)(186003)(8936002)(16526019)(86362001)(110136005)(26005)(478600001)(81156014)(8676002)(6512007)(66946007)(316002)(44832011)(66476007)(66556008)(52116002)(5660300002)(6666004)(2906002)(6486002)(6506007)(956004)(2616005);DIR:OUT;SFP:1101; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2QjFaYGBhJM33NLKb94asDYireEyFgNisBiXOhse8VF7I91UlO1LGEyaB/PAJ2OrLU2vC1T5dXGFHoHTROUy75RFVXj7PujHPC0IXvWKqnKrW5NK9mMr6i5v6IsCPZtFwJ3hAEHH527VnaDpWYQEzJ+LNB4xJsAp1uHaSJS3+GUJf3SgDnlWmnenFfgpFweio69sBO60tV1l+2SQFaenuCH1burocGTrkIj3wi4WhGYAqbVe9u1PWewfaettadnY5hyH1Ajl3EakH4ofUQv5Y9FVsMLqjpeuuTGjYCUVePqNCWIw2Fg7uAyvivaQOP6z0uacrNlsNtAPYvyRUbEgmQnViZrlRUTtAw/2/KJt9y/SWELiDLRG+FFtKjUI4ir43Yh3E1wMbN5d/M4Q1iGTHlY/Q/CI5theJdSsIsG16nXjFkbxZ4GwPPwUA67vAfij X-MS-Exchange-AntiSpam-MessageData: Q5nmamfKP47jI1hVmtNrdjD4RNxbBI0Y7r0XH8HBQ64UhjybgtejG2kH+tONAgcvaT0hUl2IGqhQcuveH1peUUHYLS809DB3AHkKXFYp/T22vvBL5weWaD+aRJLuC5OmcpCG0RZNn6N6YqJw6Ny50g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a61d1190-1138-4918-8c88-08d7e06d912e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2020 12:15:49.1056 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XI0wjoRZafZOTUhZZRjvj0Oxi/g9VRB9FRcf8aLbp7tjsPo4DmUuho2pMXxzHZ3QqlPfB6KxOtER/q/e3eSYww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4461 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Pankaj Bansal FVRules.fdf.inc is being replaced by the ArmVirtPkg/ArmVirtRules.fdf.inc at commit hash 746c5b6238f1ee55deb4b3ec32a6d732e27eeeaa Signed-off-by: Pankaj Bansal --- Notes: - Modify commit description Platform/NXP/FVRules.fdf.inc | 59 +++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/Platform/NXP/FVRules.fdf.inc b/Platform/NXP/FVRules.fdf.inc index c9fba65dae85..63de26abe056 100644 --- a/Platform/NXP/FVRules.fdf.inc +++ b/Platform/NXP/FVRules.fdf.inc @@ -1,8 +1,7 @@ -# FvRules.fdf.inc # -# Rules for creating FD. -# -# Copyright 2017-2019 NXP +# Copyright (c) 2011-2015, ARM Limited. All rights reserved. +# Copyright (c) 2014-2016, Linaro Limited. All rights reserved. +# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -16,40 +15,49 @@ # ##########################################################################= ###### =20 + +##########################################################################= ## +# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section = # +##########################################################################= ## +# +#[Rule.Common.DXE_DRIVER] +# FILE DRIVER =3D $(NAMED_GUID) { +# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_= NAME).depex +# COMPRESS PI_STD { +# GUIDED { +# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi +# UI STRING=3D"$(MODULE_NAME)" Optional +# VERSION STRING=3D"$(INF_VERSION)" Optional BUILD_NUM=3D$(BUILD_N= UMBER) +# } +# } +# } +# +##########################################################################= ## + [Rule.Common.SEC] - FILE SEC =3D $(NAMED_GUID) RELOCS_STRIPPED { - TE TE Align =3D 32 $(INF_OUTPUT)/$(MODULE_NAME).efi + FILE SEC =3D $(NAMED_GUID) RELOCS_STRIPPED FIXED { + TE TE Align =3D Auto $(INF_OUTPUT)/$(MODULE_NAME).efi } =20 [Rule.Common.PEI_CORE] - FILE PEI_CORE =3D $(NAMED_GUID) { - TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi + FILE PEI_CORE =3D $(NAMED_GUID) FIXED { + TE TE Align =3D Auto $(INF_OUTPUT)/$(MODULE_NAME).efi UI STRING =3D"$(MODULE_NAME)" Optional } =20 [Rule.Common.PEIM] - FILE PEIM =3D $(NAMED_GUID) { + FILE PEIM =3D $(NAMED_GUID) FIXED { PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex - PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi + TE TE Align =3D Auto $(INF_OUTPUT)/$(MODULE_NAME).efi UI STRING=3D"$(MODULE_NAME)" Optional } =20 -[Rule.Common.PEIM.TIANOCOMPRESSED] - FILE PEIM =3D $(NAMED_GUID) DEBUG_MYTOOLS_IA32 { - PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex - GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED =3D TR= UE { - PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi - UI STRING=3D"$(MODULE_NAME)" Optional - } - } - [Rule.Common.DXE_CORE] FILE DXE_CORE =3D $(NAMED_GUID) { PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi UI STRING=3D"$(MODULE_NAME)" Optional } =20 - [Rule.Common.UEFI_DRIVER] FILE DRIVER =3D $(NAMED_GUID) { DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NA= ME).depex @@ -62,6 +70,8 @@ DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NA= ME).depex PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi UI STRING=3D"$(MODULE_NAME)" Optional + RAW ACPI Optional |.acpi + RAW ASL Optional |.aml } =20 [Rule.Common.DXE_RUNTIME_DRIVER] @@ -73,7 +83,7 @@ =20 [Rule.Common.UEFI_APPLICATION] FILE APPLICATION =3D $(NAMED_GUID) { - UI STRING =3D"$(MODULE_NAME)" Optional + UI STRING =3D"$(MODULE_NAME)" Optional PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi } =20 @@ -91,3 +101,10 @@ UI STRING=3D"$(MODULE_NAME)" Optional VERSION STRING=3D"$(INF_VERSION)" Optional BUILD_NUM=3D$(BUILD_NUMBE= R) } + +[Rule.Common.USER_DEFINED.ACPITABLE] + FILE FREEFORM =3D $(NAMED_GUID) { + RAW ACPI |.acpi + RAW ASL |.aml + UI STRING=3D"$(MODULE_NAME)" Optional + } --=20 2.17.1