diff options
author | Abner Chang <abner.chang@amd.com> | 2023-10-11 11:08:03 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-11 04:42:54 +0000 |
commit | 95c9f470ca6eab23bfd016bd438f932d7263d395 (patch) | |
tree | 225edd51d3aa450ecedcd89dde154cd9fd63314b | |
parent | 137f799aaed91e592700e0488067292495b7ea7e (diff) | |
download | edk2-95c9f470ca6eab23bfd016bd438f932d7263d395.tar.gz |
RedfishPkg: Use base version SortLib for the specific modules
BZ #: 4566
Update Redfish modules to use the small footprint
version of base SortLib by the means of module scoped
subelement <LibraryClass>. With this the platform
level SortLib (full version) is not impacted if
Redfish.dsc.inc is included in platform DSC.
Signed-off-by: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nhi Pham <nhi@os.amperecomputing.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Reviewed-by: Nhi Pham <nhi@os.amperecomputing.com>
Tested-by: Nhi Pham <nhi@os.amperecomputing.com>
-rw-r--r-- | RedfishPkg/RedfishComponents.dsc.inc | 10 | ||||
-rw-r--r-- | RedfishPkg/RedfishLibs.dsc.inc | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/RedfishPkg/RedfishComponents.dsc.inc b/RedfishPkg/RedfishComponents.dsc.inc index 1c4284d3ec..464ffc8606 100644 --- a/RedfishPkg/RedfishComponents.dsc.inc +++ b/RedfishPkg/RedfishComponents.dsc.inc @@ -16,9 +16,15 @@ !if $(REDFISH_ENABLE) == TRUE
RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf
RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf
- RedfishPkg/RedfishRestExDxe/RedfishRestExDxe.inf
+ RedfishPkg/RedfishRestExDxe/RedfishRestExDxe.inf {
+ <LibraryClasses>
+ SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
+ }
RedfishPkg/RedfishCredentialDxe/RedfishCredentialDxe.inf
- RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.inf
+ RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.inf {
+ <LibraryClasses>
+ SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
+ }
RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.inf
RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.inf
MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
diff --git a/RedfishPkg/RedfishLibs.dsc.inc b/RedfishPkg/RedfishLibs.dsc.inc index 03b7ef6f32..5426957da8 100644 --- a/RedfishPkg/RedfishLibs.dsc.inc +++ b/RedfishPkg/RedfishLibs.dsc.inc @@ -14,7 +14,6 @@ !if $(REDFISH_ENABLE) == TRUE
RestExLib|RedfishPkg/Library/DxeRestExLib/DxeRestExLib.inf
Ucs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf
- SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
RedfishCrtLib|RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.inf
JsonLib|RedfishPkg/Library/JsonLib/JsonLib.inf
RedfishLib|RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.inf
|