* [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules
@ 2023-10-11 3:41 Chang, Abner via groups.io
2023-10-11 3:49 ` Nickle Wang via groups.io
0 siblings, 1 reply; 4+ messages in thread
From: Chang, Abner via groups.io @ 2023-10-11 3:41 UTC (permalink / raw)
To: devel; +Cc: Nickle Wang, Igor Kulchytskyy, Nhi Pham
From: Abner Chang <abner.chang@amd.com>
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>
---
RedfishPkg/RedfishComponents.dsc.inc | 10 ++++++++--
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 1c4284d3ecf..464ffc86064 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 03b7ef6f328..5426957da87 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
--
2.37.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109512): https://edk2.groups.io/g/devel/message/109512
Mute This Topic: https://groups.io/mt/101890398/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules
2023-10-11 3:41 [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules Chang, Abner via groups.io
@ 2023-10-11 3:49 ` Nickle Wang via groups.io
2023-10-11 4:13 ` Nhi Pham via groups.io
0 siblings, 1 reply; 4+ messages in thread
From: Nickle Wang via groups.io @ 2023-10-11 3:49 UTC (permalink / raw)
To: abner.chang@amd.com, devel@edk2.groups.io; +Cc: Igor Kulchytskyy, Nhi Pham
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Regards,
Nickle
> -----Original Message-----
> From: abner.chang@amd.com <abner.chang@amd.com>
> Sent: Wednesday, October 11, 2023 11:41 AM
> To: devel@edk2.groups.io
> Cc: Nickle Wang <nicklew@nvidia.com>; Igor Kulchytskyy <igork@ami.com>; Nhi
> Pham <nhi@os.amperecomputing.com>
> Subject: [PATCH] RedfishPkg: Use base version SortLib for the specific modules
>
> External email: Use caution opening links or attachments
>
>
> From: Abner Chang <abner.chang@amd.com>
>
> 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>
> ---
> RedfishPkg/RedfishComponents.dsc.inc | 10 ++++++++--
> 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 1c4284d3ecf..464ffc86064 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
> 03b7ef6f328..5426957da87 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
> --
> 2.37.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109513): https://edk2.groups.io/g/devel/message/109513
Mute This Topic: https://groups.io/mt/101890398/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules
2023-10-11 3:49 ` Nickle Wang via groups.io
@ 2023-10-11 4:13 ` Nhi Pham via groups.io
2023-10-11 5:14 ` Chang, Abner via groups.io
0 siblings, 1 reply; 4+ messages in thread
From: Nhi Pham via groups.io @ 2023-10-11 4:13 UTC (permalink / raw)
To: Nickle Wang, abner.chang@amd.com, devel@edk2.groups.io; +Cc: Igor Kulchytskyy
Thanks for writing this patch.
Reviewed-by: Nhi Pham <nhi@os.amperecomputing.com>
Tested-by: Nhi Pham <nhi@os.amperecomputing.com>
Regards,
Nhi
On 10/11/2023 10:49 AM, Nickle Wang wrote:
>
> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
>
> Regards,
> Nickle
>
>> -----Original Message-----
>> From: abner.chang@amd.com <abner.chang@amd.com>
>> Sent: Wednesday, October 11, 2023 11:41 AM
>> To: devel@edk2.groups.io
>> Cc: Nickle Wang <nicklew@nvidia.com>; Igor Kulchytskyy <igork@ami.com>; Nhi
>> Pham <nhi@os.amperecomputing.com>
>> Subject: [PATCH] RedfishPkg: Use base version SortLib for the specific modules
>>
>> External email: Use caution opening links or attachments
>>
>>
>> From: Abner Chang <abner.chang@amd.com>
>>
>> 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>
>> ---
>> RedfishPkg/RedfishComponents.dsc.inc | 10 ++++++++--
>> 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 1c4284d3ecf..464ffc86064 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
>> 03b7ef6f328..5426957da87 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
>> --
>> 2.37.1.windows.1
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109514): https://edk2.groups.io/g/devel/message/109514
Mute This Topic: https://groups.io/mt/101890398/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules
2023-10-11 4:13 ` Nhi Pham via groups.io
@ 2023-10-11 5:14 ` Chang, Abner via groups.io
0 siblings, 0 replies; 4+ messages in thread
From: Chang, Abner via groups.io @ 2023-10-11 5:14 UTC (permalink / raw)
To: Nhi Pham, Nickle Wang, devel@edk2.groups.io; +Cc: Igor Kulchytskyy
[AMD Official Use Only - General]
https://github.com/tianocore/edk2/pull/4906 is merged.
Abner
> -----Original Message-----
> From: Nhi Pham <nhi@os.amperecomputing.com>
> Sent: Wednesday, October 11, 2023 12:14 PM
> To: Nickle Wang <nicklew@nvidia.com>; Chang, Abner
> <Abner.Chang@amd.com>; devel@edk2.groups.io
> Cc: Igor Kulchytskyy <igork@ami.com>
> Subject: Re: [PATCH] RedfishPkg: Use base version SortLib for the specific
> modules
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> Thanks for writing this patch.
>
> Reviewed-by: Nhi Pham <nhi@os.amperecomputing.com>
> Tested-by: Nhi Pham <nhi@os.amperecomputing.com>
>
> Regards,
> Nhi
>
> On 10/11/2023 10:49 AM, Nickle Wang wrote:
> >
> > Reviewed-by: Nickle Wang <nicklew@nvidia.com>
> >
> > Regards,
> > Nickle
> >
> >> -----Original Message-----
> >> From: abner.chang@amd.com <abner.chang@amd.com>
> >> Sent: Wednesday, October 11, 2023 11:41 AM
> >> To: devel@edk2.groups.io
> >> Cc: Nickle Wang <nicklew@nvidia.com>; Igor Kulchytskyy
> <igork@ami.com>; Nhi
> >> Pham <nhi@os.amperecomputing.com>
> >> Subject: [PATCH] RedfishPkg: Use base version SortLib for the specific
> modules
> >>
> >> External email: Use caution opening links or attachments
> >>
> >>
> >> From: Abner Chang <abner.chang@amd.com>
> >>
> >> 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>
> >> ---
> >> RedfishPkg/RedfishComponents.dsc.inc | 10 ++++++++--
> >> 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 1c4284d3ecf..464ffc86064 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
> >> 03b7ef6f328..5426957da87 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
> >> --
> >> 2.37.1.windows.1
> >
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109515): https://edk2.groups.io/g/devel/message/109515
Mute This Topic: https://groups.io/mt/101890398/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-11 5:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 3:41 [edk2-devel] [PATCH] RedfishPkg: Use base version SortLib for the specific modules Chang, Abner via groups.io
2023-10-11 3:49 ` Nickle Wang via groups.io
2023-10-11 4:13 ` Nhi Pham via groups.io
2023-10-11 5:14 ` Chang, Abner via groups.io
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox