Copy over provider include files.  First, because some of them are
generated too.  And second that seems to be the easiest way to make
gcc find them when '#include <prov/$file.h>' is used in the openssl
source files.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 CryptoPkg/Library/OpensslLib/process_files.pl | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl 
b/CryptoPkg/Library/OpensslLib/process_files.pl
index e903263a7582..7ac7d80b16ff 100755
--- a/CryptoPkg/Library/OpensslLib/process_files.pl
+++ b/CryptoPkg/Library/OpensslLib/process_files.pl
@@ -413,6 +413,17 @@ for my $file (map { s/\.in//; $_ } glob($OPENSSL_PATH . 
"/include/*/*.h.in")) {
        or die "Cannot copy $file !";
 }
 
+my @hdrs = ();
+push @hdrs, glob($OPENSSL_PATH . "/providers/common/include/prov/[a-z]*.h");
+push @hdrs, glob($OPENSSL_PATH . 
"/providers/implementations/include/prov/[a-z]*.h");
+for my $file (@hdrs) {
+    my $dest = $file;
+    $dest =~ s|.*/include/|../Include/|;
+    print "\n--> Duplicating $file into $dest ... ";
+    system("perl -pe 's/\\n/\\r\\n/' < $file > $dest") == 0
+       or die "Cannot copy $file !";
+}
+
 print "\nProcessing Files Done!\n";
 
 exit(0);
-- 
2.33.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84307): https://edk2.groups.io/g/devel/message/84307
Mute This Topic: https://groups.io/mt/87479935/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to