CryptoPkg/OpensslLib: Update process_files.pl to generate .h files

There are missing headers added into INF files at 8906f076de35b222a..
They are now manually added but not auto-generated. So we update the
perl script to enable this feature.
Meanwhile, update the order of the .h files in INF files, which are
auto-generated now.
https://bugzilla.tianocore.org/show_bug.cgi?id=2085

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
This commit is contained in:
Shenglei Zhang
2019-10-29 15:43:11 +00:00
committed by Jian J Wang
parent dc254af6a4
commit 9f4fbd56d4
3 changed files with 131 additions and 100 deletions

View File

@@ -144,6 +144,34 @@ foreach my $product ((@{$unified_info{libraries}},
}
}
#
# Update the perl script to generate the missing header files
#
my @dir_list = ();
for (keys %{$unified_info{dirinfo}}){
push @dir_list,$_;
}
my $dir = getcwd();
my @files = ();
my @headers = ();
chdir ("openssl");
foreach(@dir_list){
@files = glob($_."/*.h");
push @headers, @files;
}
chdir ($dir);
foreach (@headers){
if(/ssl/){
push @sslfilelist, ' $(OPENSSL_PATH)/' . $_ . "\r\n";
next;
}
push @cryptofilelist, ' $(OPENSSL_PATH)/' . $_ . "\r\n";
}
#
# Update OpensslLib.inf with autogenerated file list
#