]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/OpensslLib/process_files.pl
CryptoPkg/OpensslLib: Exclude unnecessary files in process_files.pl
[mirror_edk2.git] / CryptoPkg / Library / OpensslLib / process_files.pl
index 6c136cca092a836e90bd211f5180f70279eb5d02..e277108f0734f96210b13ee758a76e6e470ca1eb 100755 (executable)
@@ -127,6 +127,12 @@ foreach my $product ((@{$unified_info{libraries}},
         foreach my $s (@{$unified_info{sources}->{$o}}) {\r
             next if ($unified_info{generate}->{$s});\r
             next if $s =~ "crypto/bio/b_print.c";\r
+\r
+            # No need to add unused files in UEFI.\r
+            # So it can reduce porting time, compile time, library size.\r
+            next if $s =~ "crypto/rand/randfile.c";\r
+            next if $s =~ "crypto/store/";\r
+\r
             if ($product =~ "libssl") {\r
                 push @sslfilelist, '  $(OPENSSL_PATH)/' . $s . "\r\n";\r
                 next;\r