summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham M <gowthamm@ami.com>2025-08-05 19:38:28 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-09-05 13:50:50 +0000
commita46697f73532dbaa84babacc887cd5ccd8c4fdc2 (patch)
tree6d957edf710376e214dc3882e210634833834bdf
parent9898567e2b080f2086dcebb445986882dcf11134 (diff)
downloadedk2-a46697f73532dbaa84babacc887cd5ccd8c4fdc2.zip
edk2-a46697f73532dbaa84babacc887cd5ccd8c4fdc2.tar.gz
edk2-a46697f73532dbaa84babacc887cd5ccd8c4fdc2.tar.bz2
MdeModulePkg: Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUID
Adding to the previous commit deprecating EFI_UNICODE_COLLATION_PROTOCOL_GUID in MdeModulePkg. Cc: Sachin Ganesh <sachinganesh@ami.com> Signed-off-by: Gowtham M <gowthamm@ami.com>
-rw-r--r--MdeModulePkg/MdeModulePkg.dec6
-rw-r--r--MdeModulePkg/MdeModulePkg.uni6
-rw-r--r--MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf6
-rw-r--r--MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.uni6
-rw-r--r--MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c43
-rw-r--r--MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf1
-rw-r--r--MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemEntryPoint.c14
7 files changed, 13 insertions, 69 deletions
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 8820059..00c0bc7 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -802,12 +802,6 @@
# @Prompt Enable variable statistics collection.
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f
- ## Indicates if Unicode Collation Protocol will be installed.<BR><BR>
- # TRUE - Installs Unicode Collation Protocol.<BR>
- # FALSE - Does not install Unicode Collation Protocol.<BR>
- # @Prompt Enable Unicode Collation support.
- gEfiMdeModulePkgTokenSpaceGuid.PcdUnicodeCollationSupport|TRUE|BOOLEAN|0x00010040
-
## Indicates if Unicode Collation 2 Protocol will be installed.<BR><BR>
# TRUE - Installs Unicode Collation 2 Protocol.<BR>
# FALSE - Does not install Unicode Collation 2 Protocol.<BR>
diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni
index 7aa8322..cce8426 100644
--- a/MdeModulePkg/MdeModulePkg.uni
+++ b/MdeModulePkg/MdeModulePkg.uni
@@ -691,12 +691,6 @@
"TRUE - Statistics about variable usage will be collected.<BR>\n"
"FALSE - Statistics about variable usage will not be collected.<BR>"
-#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUnicodeCollationSupport_PROMPT #language en-US "Enable Unicode Collation support"
-
-#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUnicodeCollationSupport_HELP #language en-US "Indicates if Unicode Collation Protocol will be installed.<BR><BR>\n"
- "TRUE - Installs Unicode Collation Protocol.<BR>\n"
- "FALSE - Does not install Unicode Collation Protocol.<BR>"
-
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUnicodeCollation2Support_PROMPT #language en-US "Enable Unicode Collation 2 support"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdUnicodeCollation2Support_HELP #language en-US "Indicates if Unicode Collation 2 Protocol will be installed.<BR><BR>\n"
diff --git a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
index f97ffdb..758d724 100644
--- a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
+++ b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
@@ -2,8 +2,8 @@
# English module that provides Unicode Collation supports.
#
# This driver installs Unicode ISO 639-2 Collation and
-# RFC 4646 Unicode Collation 2 protocols based on feature flags
-# PcdUnicodeCollationSupport & PcdUnicodeCollation2Support respectively.
+# RFC 4646 Unicode Collation 2 protocols based on feature flag
+# PcdUnicodeCollation2Support.
# It allows code running in the boot services environment to perform lexical
# comparison functions on Unicode strings for English languages.
#
@@ -43,11 +43,9 @@
PcdLib
[FeaturePcd]
- gEfiMdeModulePkgTokenSpaceGuid.PcdUnicodeCollationSupport ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdUnicodeCollation2Support ## CONSUMES
[Protocols]
- gEfiUnicodeCollationProtocolGuid | gEfiMdeModulePkgTokenSpaceGuid.PcdUnicodeCollationSupport ## SOMETIMES_PRODUCES
gEfiUnicodeCollation2ProtocolGuid | gEfiMdeModulePkgTokenSpaceGuid.PcdUnicodeCollation2Support ## PRODUCES
[UserExtensions.TianoCore."ExtraFiles"]
diff --git a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.uni b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.uni
index 400d518..12f0cf9 100644
--- a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.uni
+++ b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.uni
@@ -2,8 +2,8 @@
// English module that provides Unicode Collation supports.
//
// This driver installs Unicode ISO 639-2 Collation and
-// RFC 4646 Unicode Collation 2 protocols based on feature flags
-// PcdUnicodeCollationSupport & PcdUnicodeCollation2Support respectively.
+// RFC 4646 Unicode Collation 2 protocols based on feature flag
+// PcdUnicodeCollation2Support respectively.
// It allows code running in the boot services environment to perform lexical
// comparison functions on Unicode strings for English languages.
//
@@ -16,5 +16,5 @@
#string STR_MODULE_ABSTRACT #language en-US "Provides Unicode Collation support"
-#string STR_MODULE_DESCRIPTION #language en-US "This driver installs Unicode ISO 639-2 Collation and RFC 4646 Unicode Collation 2 protocols based on feature flags PcdUnicodeCollationSupport & PcdUnicodeCollation2Support respectively. It allows code running in the boot services environment to perform lexical comparison functions on Unicode strings for English languages."
+#string STR_MODULE_DESCRIPTION #language en-US "This driver installs Unicode ISO 639-2 Collation and RFC 4646 Unicode Collation 2 protocols based on feature flag PcdUnicodeCollation2Support. It allows code running in the boot services environment to perform lexical comparison functions on Unicode strings for English languages."
diff --git a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c
index ada4825..3815902 100644
--- a/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c
+++ b/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c
@@ -120,42 +120,13 @@ InitializeUnicodeCollationEng (
}
if (FeaturePcdGet (PcdUnicodeCollation2Support)) {
- if (FeaturePcdGet (PcdUnicodeCollationSupport)) {
- Status = gBS->InstallMultipleProtocolInterfaces (
- &mHandle,
- &gEfiUnicodeCollationProtocolGuid,
- &UnicodeEng,
- &gEfiUnicodeCollation2ProtocolGuid,
- &Unicode2Eng,
- NULL
- );
- ASSERT_EFI_ERROR (Status);
- } else {
- Status = gBS->InstallMultipleProtocolInterfaces (
- &mHandle,
- &gEfiUnicodeCollation2ProtocolGuid,
- &Unicode2Eng,
- NULL
- );
- ASSERT_EFI_ERROR (Status);
- }
- } else {
- if (FeaturePcdGet (PcdUnicodeCollationSupport)) {
- Status = gBS->InstallMultipleProtocolInterfaces (
- &mHandle,
- &gEfiUnicodeCollationProtocolGuid,
- &UnicodeEng,
- NULL
- );
- ASSERT_EFI_ERROR (Status);
- } else {
- //
- // This module must support to produce at least one of Unicode Collation Protocol
- // and Unicode Collation 2 Protocol.
- //
- ASSERT (FALSE);
- Status = EFI_UNSUPPORTED;
- }
+ Status = gBS->InstallMultipleProtocolInterfaces (
+ &mHandle,
+ &gEfiUnicodeCollation2ProtocolGuid,
+ &Unicode2Eng,
+ NULL
+ );
+ ASSERT_EFI_ERROR (Status);
}
return Status;
diff --git a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
index 0379784..224685c 100644
--- a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
+++ b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
@@ -60,7 +60,6 @@
[Protocols]
gEfiDevicePathProtocolGuid ## TO_START
gEfiFirmwareVolume2ProtocolGuid ## TO_START
- gEfiUnicodeCollationProtocolGuid ## TO_START
gEfiUnicodeCollation2ProtocolGuid ## TO_START
gEfiSimpleFileSystemProtocolGuid ## BY_START
diff --git a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemEntryPoint.c b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemEntryPoint.c
index 5d7fdaa..1783107 100644
--- a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemEntryPoint.c
+++ b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemEntryPoint.c
@@ -271,7 +271,7 @@ InitializeUnicodeCollationSupportWorker (
return Status;
}
- Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollationProtocolGuid);
+ Iso639Language = (BOOLEAN)(ProtocolGuid == &gEfiUnicodeCollation2ProtocolGuid);
GetEfiGlobalVariable2 (VariableName, (VOID **)&Language, NULL);
ReturnStatus = EFI_UNSUPPORTED;
@@ -350,18 +350,6 @@ InitializeUnicodeCollationSupport (
L"PlatformLang",
(CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultPlatformLang)
);
- //
- // If the attempt to use Unicode Collation 2 Protocol fails, then we fall back
- // on the ISO 639-2 Unicode Collation Protocol.
- //
- if (EFI_ERROR (Status)) {
- Status = InitializeUnicodeCollationSupportWorker (
- AgentHandle,
- &gEfiUnicodeCollationProtocolGuid,
- L"Lang",
- (CONST CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultLang)
- );
- }
return Status;
}