When finding a library (*.a) in the list of objects go expand it, i.e.
get the list of library objects and append them.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
CryptoPkg/Library/OpensslLib/process_files.pl | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl b/CryptoPkg/Library/OpensslLib/process_files.pl
index b320ac9b59a6..6e2b98e4a9ae 100755
--- a/CryptoPkg/Library/OpensslLib/process_files.pl
+++ b/CryptoPkg/Library/OpensslLib/process_files.pl
@@ -248,7 +248,12 @@ my @asmfilelist = ();
my @asmbuild = ();
foreach my $product ((@{$unified_info{libraries}},
@{$unified_info{engines}})) {
- foreach my $o (@{$unified_info{sources}->{$product}}) {
+ my @objs = @{$unified_info{sources}->{$product}};
+ while (my $o = pop @objs) {
+ if ($o =~ m/\.a$/) {
+ push @objs, @{$unified_info{sources}->{$o}};
+ next;
+ }
foreach my $s (@{$unified_info{sources}->{$o}}) {
# No need to add unused files in UEFI.
# So it can reduce porting time, compile time, library size.
--
2.33.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84304): https://edk2.groups.io/g/devel/message/84304
Mute This Topic: https://groups.io/mt/87479918/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-