From nobody Sat Dec 28 11:56:29 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1496699081953890.769280368759; Mon, 5 Jun 2017 14:44:41 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8724B2095CC71; Mon, 5 Jun 2017 14:43:34 -0700 (PDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 0608821A6F105 for ; Mon, 5 Jun 2017 14:43:33 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D8B0344; Mon, 5 Jun 2017 14:44:39 -0700 (PDT) Received: from u201365.usa.Arm.com (bc-c3-3-14.eu.iaas.arm.com [10.6.43.238]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 178EA3F25D; Mon, 5 Jun 2017 14:44:37 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org From: Supreeth Venkatesh To: edk2-devel@lists.01.org Date: Mon, 5 Jun 2017 22:43:46 +0100 Message-Id: <1496699034-4186-3-git-send-email-supreeth.venkatesh@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496699034-4186-1-git-send-email-supreeth.venkatesh@arm.com> References: <1496699034-4186-1-git-send-email-supreeth.venkatesh@arm.com> Subject: [edk2] [PATCH 02/10] BaseTools: Tools change to support PI v1.5 Specification. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiewen Yao , leif.lindholm@arm.com, ard.biesheuvel@linaro.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" PI v1.6 Specification Volume 4 defines Management Mode Core Interface. In order to support Management Mode Core Interface, Module Types MM_STANDALONE, MM_CORE_STANDALONE are needed. This patch ensures that SMM_STANDALONE, SMM_CORE_STANDALONE Modules are treated as EFI Boot Service Driver in GenFw tool. *_SMM_* regex instead of *_MM_* is used to preserve backwards compatibility. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Signed-off-by: Supreeth Venkatesh --- BaseTools/Source/C/GenFw/GenFw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenFw/GenFw.c b/BaseTools/Source/C/GenFw/Ge= nFw.c index 22e4e72..74d323d 100644 --- a/BaseTools/Source/C/GenFw/GenFw.c +++ b/BaseTools/Source/C/GenFw/GenFw.c @@ -181,6 +181,7 @@ Returns: PEI_CORE, PEIM, DXE_CORE, DXE_DRIVER, UEFI_APPLICA= TION,\n\ SEC, DXE_SAL_DRIVER, UEFI_DRIVER, DXE_RUNTIME_DRIV= ER,\n\ DXE_SMM_DRIVER, SECURITY_CORE, COMBINED_PEIM_DRIVE= R,\n\ + SMM_STANDALONE, SMM_CORE_STANDALONE,\n\ PIC_PEIM, RELOCATABLE_PEIM, BS_DRIVER, RT_DRIVER,\= n\ APPLICATION, SAL_RT_DRIVER to support all module t= ypes\n\ It can only be used together with --keepexceptiont= able,\n\ @@ -2009,7 +2010,9 @@ Returns: stricmp (ModuleType, "DXE_DRIVER") =3D=3D 0 || stricmp (ModuleType, "DXE_SMM_DRIVER") =3D=3D 0 || stricmp (ModuleType, "UEFI_DRIVER") =3D=3D 0 || - stricmp (ModuleType, "SMM_CORE") =3D=3D 0) { + stricmp (ModuleType, "SMM_CORE") =3D=3D 0 || + stricmp (ModuleType, "SMM_STANDALONE") =3D=3D 0 || + stricmp (ModuleType, "SMM_CORE_STANDALONE") =3D=3D 0) { Type =3D EFI_IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER; VerboseMsg ("Efi Image subsystem type is efi boot service driver= ."); =20 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel