public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
To: edk2-devel@lists.01.org
Cc: leif.lindholm@arm.com, ard.biesheuvel@linaro.org,
	achin.gupta@arm.com, supreeth.venkatesh@arm.com,
	Jiewen Yao <jiewen.yao@intel.com>
Subject: [PATCH 02/10] BaseTools: Tools change to support PI v1.5 Specification.
Date: Mon,  5 Jun 2017 22:43:46 +0100	[thread overview]
Message-ID: <1496699034-4186-3-git-send-email-supreeth.venkatesh@arm.com> (raw)
In-Reply-To: <1496699034-4186-1-git-send-email-supreeth.venkatesh@arm.com>

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 <jiewen.yao@intel.com>
Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
---
 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/GenFw.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_APPLICATION,\n\
                         SEC, DXE_SAL_DRIVER, UEFI_DRIVER, DXE_RUNTIME_DRIVER,\n\
                         DXE_SMM_DRIVER, SECURITY_CORE, COMBINED_PEIM_DRIVER,\n\
+                        SMM_STANDALONE, SMM_CORE_STANDALONE,\n\
                         PIC_PEIM, RELOCATABLE_PEIM, BS_DRIVER, RT_DRIVER,\n\
                         APPLICATION, SAL_RT_DRIVER to support all module types\n\
                         It can only be used together with --keepexceptiontable,\n\
@@ -2009,7 +2010,9 @@ Returns:
         stricmp (ModuleType, "DXE_DRIVER") == 0 ||
         stricmp (ModuleType, "DXE_SMM_DRIVER") == 0  ||
         stricmp (ModuleType, "UEFI_DRIVER") == 0 ||
-        stricmp (ModuleType, "SMM_CORE") == 0) {
+        stricmp (ModuleType, "SMM_CORE") == 0 ||
+        stricmp (ModuleType, "SMM_STANDALONE") == 0 ||
+        stricmp (ModuleType, "SMM_CORE_STANDALONE") == 0) {
           Type = EFI_IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER;
           VerboseMsg ("Efi Image subsystem type is efi boot service driver.");
 
-- 
2.7.4



  parent reply	other threads:[~2017-06-05 21:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 21:43 [PATCH 00/10] *** BaseTools: Tools change to support PI v1.5 Specification. *** Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 01/10] BaseTools: Tools change to support PI v1.5 Specification Supreeth Venkatesh
2017-06-05 21:43 ` Supreeth Venkatesh [this message]
2017-06-05 21:43 ` [PATCH 03/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 04/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 05/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 06/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 07/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 08/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 09/10] " Supreeth Venkatesh
2017-06-05 21:43 ` [PATCH 10/10] " Supreeth Venkatesh
2017-06-08  3:32 ` [PATCH 00/10] *** BaseTools: Tools change to support PI v1.5 Specification. *** Gao, Liming
2017-06-08 14:30   ` Supreeth Venkatesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496699034-4186-3-git-send-email-supreeth.venkatesh@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox