From nobody Sat Dec 28 12:01:06 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 149669911257512.412209410566447; Mon, 5 Jun 2017 14:45:12 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 19E342095CC73; Mon, 5 Jun 2017 14:44:05 -0700 (PDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 12FFE21945DEB for ; Mon, 5 Jun 2017 14:44:04 -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 3A948344; Mon, 5 Jun 2017 14:45:10 -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 252043F25D; Mon, 5 Jun 2017 14:45:09 -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:53 +0100 Message-Id: <1496699034-4186-10-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 09/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" This patch checks SUP_MODULE_SMM_CORE_STANDALONE and SUP_MODULE_SMM_STANDALONE module compatibility with PI specification version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Signed-off-by: Supreeth Venkatesh --- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseT= ools/Source/Python/Workspace/WorkspaceDatabase.py index c1af5c7..b2e2ecc 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py @@ -1977,6 +1977,10 @@ class InfBuildData(ModuleBuildClassObject): if (self._Specification =3D=3D None) or (not 'PI_SPECIFICATION= _VERSION' in self._Specification) or (int(self._Specification['PI_SPECIFICA= TION_VERSION'], 16) < 0x0001000A): if self._ModuleType =3D=3D SUP_MODULE_SMM_CORE: EdkLogger.error("build", FORMAT_NOT_SUPPORTED, "SMM_CO= RE module type can't be used in the module with PI_SPECIFICATION_VERSION le= ss than 0x0001000A", File=3Dself.MetaFile) + if self._ModuleType =3D=3D SUP_MODULE_SMM_CORE_STANDALONE: + EdkLogger.error("build", FORMAT_NOT_SUPPORTED, "SMM_CO= RE_STANDALONE module type can't be used in the module with PI_SPECIFICATION= _VERSION less than 0x0001000A", File=3Dself.MetaFile) + if self._ModuleType =3D=3D SUP_MODULE_SMM_STANDALONE: + EdkLogger.error("build", FORMAT_NOT_SUPPORTED, "SMM_ST= ANDALONE module type can't be used in the module with PI_SPECIFICATION_VERS= ION less than 0x0001000A", File=3Dself.MetaFile) if self._Defs and 'PCI_DEVICE_ID' in self._Defs and 'PCI_VENDO= R_ID' in self._Defs \ and 'PCI_CLASS_CODE' in self._Defs and 'PCI_REVISION' in se= lf._Defs: self._BuildType =3D 'UEFI_OPTIONROM' --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel